Class CheckpointSignature
java.lang.Object
org.apache.hadoop.hdfs.server.common.StorageInfo
org.apache.hadoop.hdfs.server.namenode.CheckpointSignature
- All Implemented Interfaces:
Comparable<CheckpointSignature>
@Private
public class CheckpointSignature
extends StorageInfo
implements Comparable<CheckpointSignature>
A unique signature intended to identify checkpoint transactions.
-
Field Summary
Fields inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
clusterID, cTime, layoutVersion, namespaceID, STORAGE_FILE_VERSION, storageType -
Constructor Summary
ConstructorsConstructorDescriptionCheckpointSignature(StorageInfo info, String blockpoolID, long mostRecentCheckpointTxId, long curSegmentTxId) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGet the block pool id from CheckpointSignatureGet the cluster id from CheckpointSignaturelonglonginthashCode()voidsetBlockpoolID(String blockpoolID) Set the block pool id of CheckpointSignature.toString()Methods inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
checkStorageType, getClusterIdFromColonSeparatedString, getCTime, getLayoutVersion, getNamespaceID, getNsIdFromColonSeparatedString, getProperty, getServiceLayoutFeatureMap, getServiceLayoutVersion, readPreviousVersionProperties, readProperties, readPropertiesFile, setClusterId, setcTime, setFieldsFromProperties, setLayoutVersion, setNamespaceID, setServiceLayoutVersion, setStorageInfo, toColonSeparatedString, toMapString, versionSupportsFederation
-
Constructor Details
-
CheckpointSignature
public CheckpointSignature(StorageInfo info, String blockpoolID, long mostRecentCheckpointTxId, long curSegmentTxId)
-
-
Method Details
-
getClusterID
Get the cluster id from CheckpointSignature- Overrides:
getClusterIDin classStorageInfo- Returns:
- the cluster id
-
getBlockpoolID
Get the block pool id from CheckpointSignature- Returns:
- the block pool id
-
getMostRecentCheckpointTxId
public long getMostRecentCheckpointTxId() -
getCurSegmentTxId
public long getCurSegmentTxId() -
setBlockpoolID
Set the block pool id of CheckpointSignature.- Parameters:
blockpoolID- the new blockpool id
-
toString
- Overrides:
toStringin classStorageInfo
-
compareTo
- Specified by:
compareToin interfaceComparable<CheckpointSignature>
-
equals
-
hashCode
public int hashCode()
-