Class HddsVolumeFactory
java.lang.Object
org.apache.hadoop.ozone.container.common.volume.StorageVolumeFactory
org.apache.hadoop.ozone.container.common.volume.HddsVolumeFactory
A factory class for HddsVolume.
-
Constructor Summary
ConstructorsConstructorDescriptionHddsVolumeFactory(org.apache.hadoop.hdds.conf.ConfigurationSource conf, org.apache.hadoop.hdds.fs.SpaceUsageCheckFactory usageCheckFactory, MutableVolumeSet volumeSet, String datanodeUuid, String clusterID) -
Method Summary
Modifier and TypeMethodDescriptioncreateFailedVolume(String locationString) createVolume(String locationString, org.apache.hadoop.fs.StorageType storageType) Methods inherited from class org.apache.hadoop.ozone.container.common.volume.StorageVolumeFactory
checkAndSetClusterID, getClusterID, getConf, getDatanodeUuid, getUsageCheckFactory, getVolumeSet
-
Constructor Details
-
HddsVolumeFactory
public HddsVolumeFactory(org.apache.hadoop.hdds.conf.ConfigurationSource conf, org.apache.hadoop.hdds.fs.SpaceUsageCheckFactory usageCheckFactory, MutableVolumeSet volumeSet, String datanodeUuid, String clusterID)
-
-
Method Details
-
createVolume
public StorageVolume createVolume(String locationString, org.apache.hadoop.fs.StorageType storageType) throws IOException - Throws:
IOException
-
createFailedVolume
- Throws:
IOException
-