java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
org.apache.hadoop.hdfs.server.federation.store.records.StateStoreVersion
All Implemented Interfaces:
Comparable<BaseRecord>
Direct Known Subclasses:
StateStoreVersionPBImpl

public abstract class StateStoreVersion extends BaseRecord
Entry to track the version of the State Store data stored in the State Store by a Router.
  • Constructor Details

    • StateStoreVersion

      public StateStoreVersion()
  • Method Details

    • newInstance

      public static StateStoreVersion newInstance()
    • newInstance

      public static StateStoreVersion newInstance(long membershipVersion, long mountTableVersion)
    • getMembershipVersion

      public abstract long getMembershipVersion()
    • setMembershipVersion

      public abstract void setMembershipVersion(long version)
    • getMountTableVersion

      public abstract long getMountTableVersion()
    • setMountTableVersion

      public abstract void setMountTableVersion(long version)
    • getPrimaryKeys

      public SortedMap<String,String> getPrimaryKeys()
      Description copied from class: BaseRecord
      Map of primary key names to values for the record. The primary key can be a combination of 1-n different State Store serialized values.
      Specified by:
      getPrimaryKeys in class BaseRecord
      Returns:
      Map of key/value pairs that constitute this object's primary key.
    • getExpirationMs

      public long getExpirationMs()
      Description copied from class: BaseRecord
      Get the expiration time for the record.
      Specified by:
      getExpirationMs in class BaseRecord
      Returns:
      Expiration time for the record.
    • setDateModified

      public void setDateModified(long time)
      Description copied from class: BaseRecord
      Set the modification time for the record.
      Specified by:
      setDateModified in class BaseRecord
      Parameters:
      time - Modification time of the record.
    • getDateModified

      public long getDateModified()
      Description copied from class: BaseRecord
      Get the modification time for the record.
      Specified by:
      getDateModified in class BaseRecord
      Returns:
      Modification time of the record.
    • setDateCreated

      public void setDateCreated(long time)
      Description copied from class: BaseRecord
      Set the creation time for the record.
      Specified by:
      setDateCreated in class BaseRecord
      Parameters:
      time - Creation time of the record.
    • getDateCreated

      public long getDateCreated()
      Description copied from class: BaseRecord
      Get the creation time for the record.
      Specified by:
      getDateCreated in class BaseRecord
      Returns:
      Creation time of the record
    • toString

      public String toString()
      Overrides:
      toString in class BaseRecord