Class DisabledNameservicePBImpl
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
org.apache.hadoop.hdfs.server.federation.store.records.DisabledNameservice
org.apache.hadoop.hdfs.server.federation.store.records.impl.pb.DisabledNameservicePBImpl
- All Implemented Interfaces:
Comparable<BaseRecord>,PBRecord
Protobuf implementation of the
DisabledNameservice 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
ConstructorsConstructorDescriptionDisabledNameservicePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisabledNameserviceRecordProto proto) -
Method Summary
Modifier and TypeMethodDescriptionlongGet the creation time for the record.longGet the modification time for the record.Get the identifier of the name service to disable.org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisabledNameserviceRecordProtogetProto()Get the protocol for the record.voidreadInstance(String base64String) Populate this record with serialized data.voidsetDateCreated(long time) Set the creation time for the record.voidsetDateModified(long time) Set the modification time for the record.voidsetNameserviceId(String nameServiceId) Set the identifier of the name service to disable.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.DisabledNameservice
getExpirationMs, getPrimaryKeys, hasOtherFields, newInstance, newInstanceMethods inherited from class org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
checkExpired, compareTo, equals, generateMashupKey, getDeletionMs, getPrimaryKey, hashCode, init, isExpired, like, shouldBeDeleted, toString, validate
-
Constructor Details
-
DisabledNameservicePBImpl
public DisabledNameservicePBImpl() -
DisabledNameservicePBImpl
public DisabledNameservicePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisabledNameserviceRecordProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisabledNameserviceRecordProto 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.
-
getNameserviceId
Description copied from class:DisabledNameserviceGet the identifier of the name service to disable.- Specified by:
getNameserviceIdin classDisabledNameservice- Returns:
- Identifier of the name service to disable.
-
setNameserviceId
Description copied from class:DisabledNameserviceSet the identifier of the name service to disable.- Specified by:
setNameserviceIdin classDisabledNameservice- Parameters:
nameServiceId- Identifier of the name service to disable.
-
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
-