Class SegmentReplicaCount
- java.lang.Object
-
- org.apache.druid.server.coordinator.loading.SegmentReplicaCount
-
public class SegmentReplicaCount extends Object
Counts the number of replicas of a segment in different states (loading, loaded, etc) in a tier or the whole cluster.
-
-
Constructor Summary
Constructors Constructor Description SegmentReplicaCount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intrequired()Required number of replicas of the segment as dictated by load rules.intrequiredAndLoadable()Required number of replicas of the segment as dictated by load rules.inttotalLoaded()Number of replicas loaded on all servers.
-
-
-
Method Detail
-
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.
-
-