Class GetRouterRegistrationsResponsePBImpl
java.lang.Object
org.apache.hadoop.hdfs.server.federation.store.protocol.GetRouterRegistrationsResponse
org.apache.hadoop.hdfs.server.federation.store.protocol.impl.pb.GetRouterRegistrationsResponsePBImpl
- All Implemented Interfaces:
PBRecord
public class GetRouterRegistrationsResponsePBImpl
extends GetRouterRegistrationsResponse
implements PBRecord
Protobuf implementation of the state store API object
GetRouterRegistrationsResponse.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetRouterRegistrationsResponseProtogetProto()Get the protocol for the record.longvoidreadInstance(String base64String) Populate this record with serialized data.voidsetProto(org.apache.hadoop.thirdparty.protobuf.Message proto) Set the protocol for the record.voidsetRouters(List<RouterState> records) voidsetTimestamp(long time) Methods inherited from class org.apache.hadoop.hdfs.server.federation.store.protocol.GetRouterRegistrationsResponse
newInstance
-
Constructor Details
-
GetRouterRegistrationsResponsePBImpl
public GetRouterRegistrationsResponsePBImpl()
-
-
Method Details
-
getProto
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetRouterRegistrationsResponseProto 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.
-
getRouters
- Specified by:
getRoutersin classGetRouterRegistrationsResponse- Throws:
IOException
-
setRouters
- Specified by:
setRoutersin classGetRouterRegistrationsResponse- Throws:
IOException
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestampin classGetRouterRegistrationsResponse
-
setTimestamp
public void setTimestamp(long time) - Specified by:
setTimestampin classGetRouterRegistrationsResponse
-