Class RouterStatePBImpl
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
org.apache.hadoop.hdfs.server.federation.store.records.RouterState
org.apache.hadoop.hdfs.server.federation.store.records.impl.pb.RouterStatePBImpl
- All Implemented Interfaces:
Comparable<BaseRecord>,PBRecord
Protobuf implementation of the RouterState 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
ConstructorsConstructorDescriptionRouterStatePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RouterRecordProto proto) -
Method Summary
Modifier and TypeMethodDescriptionlongGet the creation time for the record.longGet the modification time for the record.longorg.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RouterRecordProtogetProto()Get the protocol for the record.voidreadInstance(String base64String) Populate this record with serialized data.voidsetAddress(String address) voidsetAdminAddress(String adminAddress) voidsetCompileInfo(String info) voidsetDateCreated(long time) Set the creation time for the record.voidsetDateModified(long time) Set the modification time for the record.voidsetDateStarted(long dateStarted) voidsetProto(org.apache.hadoop.thirdparty.protobuf.Message proto) Set the protocol for the record.voidsetStateStoreVersion(StateStoreVersion version) voidsetStatus(RouterServiceState newStatus) voidsetVersion(String version) Methods inherited from class org.apache.hadoop.hdfs.server.federation.store.records.RouterState
checkExpired, compareTo, getDeletionMs, getExpirationMs, getPrimaryKeys, getRouterId, isExpired, like, newInstance, newInstance, setDeletionMs, setExpirationMs, toString, validateMethods inherited from class org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
equals, generateMashupKey, getPrimaryKey, hashCode, hasOtherFields, init, shouldBeDeleted
-
Constructor Details
-
RouterStatePBImpl
public RouterStatePBImpl() -
RouterStatePBImpl
public RouterStatePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RouterRecordProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RouterRecordProto 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.
-
setAddress
- Specified by:
setAddressin classRouterState
-
getAddress
- Specified by:
getAddressin classRouterState
-
setStateStoreVersion
- Specified by:
setStateStoreVersionin classRouterState
-
getStateStoreVersion
- Specified by:
getStateStoreVersionin classRouterState- Throws:
IOException
-
getStatus
- Specified by:
getStatusin classRouterState
-
setStatus
- Specified by:
setStatusin classRouterState
-
getVersion
- Specified by:
getVersionin classRouterState
-
setVersion
- Specified by:
setVersionin classRouterState
-
getCompileInfo
- Specified by:
getCompileInfoin classRouterState
-
setCompileInfo
- Specified by:
setCompileInfoin classRouterState
-
setDateStarted
public void setDateStarted(long dateStarted) - Specified by:
setDateStartedin classRouterState
-
getDateStarted
public long getDateStarted()- Specified by:
getDateStartedin classRouterState
-
setDateModified
public void setDateModified(long time) Description copied from class:BaseRecordSet the modification time for the record.- Specified by:
setDateModifiedin classBaseRecord- Parameters:
time- Modification time of the record.
-
getDateModified
public long getDateModified()Description copied from class:BaseRecordGet the modification time for the record.- Specified by:
getDateModifiedin classBaseRecord- Returns:
- Modification time of the record.
-
setDateCreated
public void setDateCreated(long time) Description copied from class:BaseRecordSet the creation time for the record.- Specified by:
setDateCreatedin classBaseRecord- Parameters:
time- Creation time of the record.
-
getDateCreated
public long getDateCreated()Description copied from class:BaseRecordGet the creation time for the record.- Specified by:
getDateCreatedin classBaseRecord- Returns:
- Creation time of the record
-
setAdminAddress
- Specified by:
setAdminAddressin classRouterState
-
getAdminAddress
- Specified by:
getAdminAddressin classRouterState
-