Package com.github.ambry.clustermap
Interface DiskId
-
- All Superinterfaces:
Resource
public interface DiskId extends Resource
A DiskId storesReplicaId
s. Each DiskId is hosted on one specificDataNodeId
. Each DiskId is uniquely identified by its DataNodeId and mount path (the path to this Disk's device on its DataNode).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataNodeId
getDataNodeId()
Gets the data node of this disk.java.lang.String
getMountPath()
Gets the absolute path to the mounted devicelong
getRawCapacityInBytes()
Gets the raw capacity in bytes for this DiskId.HardwareState
getState()
Gets the state of the DiskId.-
Methods inherited from interface com.github.ambry.clustermap.Resource
getSnapshot
-
-
-
-
Method Detail
-
getMountPath
java.lang.String getMountPath()
Gets the absolute path to the mounted device- Returns:
- absolute mount path.
-
getState
HardwareState getState()
Gets the state of the DiskId.- Returns:
- state of the DiskId.
-
getRawCapacityInBytes
long getRawCapacityInBytes()
Gets the raw capacity in bytes for this DiskId.- Returns:
- the raw capacity in bytes
-
getDataNodeId
DataNodeId getDataNodeId()
Gets the data node of this disk.- Returns:
DataNodeId
hosting this disk.
-
-