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.
  • Constructor Details

    • CheckpointSignature

      public CheckpointSignature(StorageInfo info, String blockpoolID, long mostRecentCheckpointTxId, long curSegmentTxId)
  • Method Details

    • getClusterID

      public String getClusterID()
      Get the cluster id from CheckpointSignature
      Overrides:
      getClusterID in class StorageInfo
      Returns:
      the cluster id
    • getBlockpoolID

      public String getBlockpoolID()
      Get the block pool id from CheckpointSignature
      Returns:
      the block pool id
    • getMostRecentCheckpointTxId

      public long getMostRecentCheckpointTxId()
    • getCurSegmentTxId

      public long getCurSegmentTxId()
    • setBlockpoolID

      public void setBlockpoolID(String blockpoolID)
      Set the block pool id of CheckpointSignature.
      Parameters:
      blockpoolID - the new blockpool id
    • toString

      public String toString()
      Overrides:
      toString in class StorageInfo
    • compareTo

      public int compareTo(CheckpointSignature o)
      Specified by:
      compareTo in interface Comparable<CheckpointSignature>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object