Package com.github.ambry.clustermap
Class AmbryReplica
- java.lang.Object
-
- com.github.ambry.clustermap.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 Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
getCapacityInBytes()
abstract com.github.ambry.clustermap.AmbryDataNode
getDataNodeId()
abstract com.github.ambry.clustermap.AmbryDisk
getDiskId()
AmbryPartition
getPartitionId()
java.util.List<AmbryReplica>
getPeerReplicaIds()
boolean
isDown()
boolean
isSealed()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getDataNodeId
public abstract com.github.ambry.clustermap.AmbryDataNode getDataNodeId()
- Specified by:
getDataNodeId
in interfacecom.github.ambry.clustermap.ReplicaId
-
getDiskId
public abstract com.github.ambry.clustermap.AmbryDisk getDiskId()
- Specified by:
getDiskId
in interfacecom.github.ambry.clustermap.ReplicaId
-
getPartitionId
public AmbryPartition getPartitionId()
- Specified by:
getPartitionId
in interfacecom.github.ambry.clustermap.ReplicaId
-
getPeerReplicaIds
public java.util.List<AmbryReplica> getPeerReplicaIds()
- Specified by:
getPeerReplicaIds
in interfacecom.github.ambry.clustermap.ReplicaId
-
getCapacityInBytes
public long getCapacityInBytes()
- Specified by:
getCapacityInBytes
in interfacecom.github.ambry.clustermap.ReplicaId
-
isSealed
public boolean isSealed()
- Specified by:
isSealed
in interfacecom.github.ambry.clustermap.ReplicaId
-
isDown
public boolean isDown()
- Specified by:
isDown
in interfacecom.github.ambry.clustermap.ReplicaId
-
-