Class AmbryReplica

  • All Implemented Interfaces:
    com.github.ambry.clustermap.ReplicaId, com.github.ambry.clustermap.Resource

    public abstract class AmbryReplica
    extends java.lang.Object
    implements com.github.ambry.clustermap.ReplicaId
    ReplicaId implementation to use within dynamic cluster managers.
    • Method Detail

      • getDataNodeId

        public abstract com.github.ambry.clustermap.AmbryDataNode getDataNodeId()
        Specified by:
        getDataNodeId in interface com.github.ambry.clustermap.ReplicaId
      • getDiskId

        public abstract com.github.ambry.clustermap.AmbryDisk getDiskId()
        Specified by:
        getDiskId in interface com.github.ambry.clustermap.ReplicaId
      • getPartitionId

        public AmbryPartition getPartitionId()
        Specified by:
        getPartitionId in interface com.github.ambry.clustermap.ReplicaId
      • getPeerReplicaIds

        public java.util.List<AmbryReplica> getPeerReplicaIds()
        Specified by:
        getPeerReplicaIds in interface com.github.ambry.clustermap.ReplicaId
      • getCapacityInBytes

        public long getCapacityInBytes()
        Specified by:
        getCapacityInBytes in interface com.github.ambry.clustermap.ReplicaId
      • isSealed

        public boolean isSealed()
        Specified by:
        isSealed in interface com.github.ambry.clustermap.ReplicaId
      • isDown

        public boolean isDown()
        Specified by:
        isDown in interface com.github.ambry.clustermap.ReplicaId