@InterfaceStability.Unstable @InterfaceAudience.Public public class BlockStorageLocation extends BlockLocation
BlockLocation that also adds VolumeId volume
location information for each replica.| Constructor and Description |
|---|
BlockStorageLocation(BlockLocation loc,
VolumeId[] volumeIds) |
| Modifier and Type | Method and Description |
|---|---|
VolumeId[] |
getVolumeIds()
Gets the list of
VolumeId corresponding to the block's replicas. |
getCachedHosts, getHosts, getLength, getNames, getOffset, getTopologyPaths, isCorrupt, setCachedHosts, setCorrupt, setHosts, setLength, setNames, setOffset, setTopologyPaths, toStringpublic BlockStorageLocation(BlockLocation loc, VolumeId[] volumeIds) throws IOException
IOExceptionpublic VolumeId[] getVolumeIds()
VolumeId corresponding to the block's replicas.Copyright © 2015 Apache Software Foundation. All Rights Reserved.