Class SegmentReplicaCount
java.lang.Object
org.apache.druid.server.coordinator.loading.SegmentReplicaCount
Counts the number of replicas of a segment in different states (loading, loaded, etc)
in a tier or the whole cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintrequired()Required number of replicas of the segment as dictated by load rules.intRequired number of replicas of the segment as dictated by load rules.intNumber of replicas loaded on all servers.
-
Constructor Details
-
SegmentReplicaCount
public SegmentReplicaCount()
-
-
Method Details
-
required
public int required()Required number of replicas of the segment as dictated by load rules. This includes replicas that may be in excess of the cluster capacity. -
requiredAndLoadable
public int requiredAndLoadable()Required number of replicas of the segment as dictated by load rules. This does not include replicas that are in excess of the cluster capacity. -
totalLoaded
public int totalLoaded()Number of replicas loaded on all servers. This includes replicas that are currently being dropped.
-