Class ImmutableVolumeSet
java.lang.Object
org.apache.hadoop.ozone.container.common.volume.ImmutableVolumeSet
- All Implemented Interfaces:
VolumeSet,org.apache.hadoop.ozone.lock.ReadWriteLockable
Fixed list of volumes.
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableVolumeSet(Collection<? extends StorageVolume> volumes) ImmutableVolumeSet(StorageVolume... volumes) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAllVolumes(StorageVolumeChecker checker) voidreadLock()voidvoidvoid
-
Constructor Details
-
ImmutableVolumeSet
-
ImmutableVolumeSet
-
-
Method Details
-
getVolumesList
- Specified by:
getVolumesListin interfaceVolumeSet
-
checkAllVolumes
- Specified by:
checkAllVolumesin interfaceVolumeSet- Throws:
IOException
-
readLock
public void readLock()- Specified by:
readLockin interfaceorg.apache.hadoop.ozone.lock.ReadWriteLockable
-
readUnlock
public void readUnlock()- Specified by:
readUnlockin interfaceorg.apache.hadoop.ozone.lock.ReadWriteLockable
-
writeLock
public void writeLock()- Specified by:
writeLockin interfaceorg.apache.hadoop.ozone.lock.ReadWriteLockable
-
writeUnlock
public void writeUnlock()- Specified by:
writeUnlockin interfaceorg.apache.hadoop.ozone.lock.ReadWriteLockable
-