Class StateStoreVersionPBImpl
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
org.apache.hadoop.hdfs.server.federation.store.records.StateStoreVersion
org.apache.hadoop.hdfs.server.federation.store.records.impl.pb.StateStoreVersionPBImpl
- All Implemented Interfaces:
Comparable<BaseRecord>,PBRecord
Protobuf implementation of the StateStoreVersion record.
-
Field Summary
Fields inherited from class org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
ERROR_MSG_CREATION_TIME_NEGATIVE, ERROR_MSG_MODIFICATION_TIME_NEGATIVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongorg.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.StateStoreVersionRecordProtogetProto()Get the protocol for the record.voidreadInstance(String base64String) Populate this record with serialized data.voidsetMembershipVersion(long version) voidsetMountTableVersion(long version) voidsetProto(org.apache.hadoop.thirdparty.protobuf.Message proto) Set the protocol for the record.Methods inherited from class org.apache.hadoop.hdfs.server.federation.store.records.StateStoreVersion
getDateCreated, getDateModified, getExpirationMs, getPrimaryKeys, newInstance, newInstance, setDateCreated, setDateModified, toStringMethods inherited from class org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
checkExpired, compareTo, equals, generateMashupKey, getDeletionMs, getPrimaryKey, hashCode, hasOtherFields, init, isExpired, like, shouldBeDeleted, validate
-
Constructor Details
-
StateStoreVersionPBImpl
public StateStoreVersionPBImpl()
-
-
Method Details
-
getProto
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.StateStoreVersionRecordProto getProto()Description copied from interface:PBRecordGet the protocol for the record. -
setProto
public void setProto(org.apache.hadoop.thirdparty.protobuf.Message proto) Description copied from interface:PBRecordSet the protocol for the record. -
readInstance
Description copied from interface:PBRecordPopulate this record with serialized data.- Specified by:
readInstancein interfacePBRecord- Parameters:
base64String- Serialized data in base64.- Throws:
IOException- If it cannot read the data.
-
getMembershipVersion
public long getMembershipVersion()- Specified by:
getMembershipVersionin classStateStoreVersion
-
setMembershipVersion
public void setMembershipVersion(long version) - Specified by:
setMembershipVersionin classStateStoreVersion
-
getMountTableVersion
public long getMountTableVersion()- Specified by:
getMountTableVersionin classStateStoreVersion
-
setMountTableVersion
public void setMountTableVersion(long version) - Specified by:
setMountTableVersionin classStateStoreVersion
-