Class GetSafeModeResponsePBImpl
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.protocol.GetSafeModeResponse
org.apache.hadoop.hdfs.server.federation.store.protocol.impl.pb.GetSafeModeResponsePBImpl
- All Implemented Interfaces:
PBRecord
Protobuf implementation of the state store API object
GetSafeModeResponse.
-
Constructor Summary
ConstructorsConstructorDescriptionGetSafeModeResponsePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeResponseProto proto) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeResponseProtogetProto()Get the protocol for the record.booleanvoidreadInstance(String base64String) Populate this record with serialized data.voidsetProto(org.apache.hadoop.thirdparty.protobuf.Message proto) Set the protocol for the record.voidsetSafeMode(boolean isInSafeMode) Methods inherited from class org.apache.hadoop.hdfs.server.federation.store.protocol.GetSafeModeResponse
newInstance, newInstance
-
Constructor Details
-
GetSafeModeResponsePBImpl
public GetSafeModeResponsePBImpl() -
GetSafeModeResponsePBImpl
public GetSafeModeResponsePBImpl(org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeResponseProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeResponseProto 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.
-
isInSafeMode
public boolean isInSafeMode()- Specified by:
isInSafeModein classGetSafeModeResponse
-
setSafeMode
public void setSafeMode(boolean isInSafeMode) - Specified by:
setSafeModein classGetSafeModeResponse
-