Class DatanodeVersionFile
java.lang.Object
org.apache.hadoop.ozone.container.common.helpers.DatanodeVersionFile
This is a utility class which helps to create the version file on datanode
and also validate the content of the version file.
-
Constructor Summary
ConstructorsConstructorDescriptionDatanodeVersionFile(String storageId, String clusterId, String datanodeUuid, long cTime, int layoutVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateVersionFile(File path) Creates a version File in specified path.static PropertiesCreates a property object from the specified file content.
-
Constructor Details
-
DatanodeVersionFile
-
-
Method Details
-
createVersionFile
Creates a version File in specified path.- Parameters:
path-- Throws:
IOException
-
readFrom
Creates a property object from the specified file content.- Parameters:
versionFile-- Returns:
- Properties
- Throws:
IOException
-