@InterfaceAudience.Private @InterfaceStability.Stable public class HAServiceProtocolServerSideTranslatorPB extends Object implements HAServiceProtocolPB
HAServiceProtocolPB.
This class translates the PB data types
to the native data types used inside the NN as specified in the generic
ClientProtocol.| Constructor and Description |
|---|
HAServiceProtocolServerSideTranslatorPB(HAServiceProtocol server) |
public HAServiceProtocolServerSideTranslatorPB(HAServiceProtocol server)
public HAServiceProtocolProtos.MonitorHealthResponseProto monitorHealth(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.MonitorHealthRequestProto request) throws com.google.protobuf.ServiceException
monitorHealth in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic HAServiceProtocolProtos.TransitionToActiveResponseProto transitionToActive(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.TransitionToActiveRequestProto request) throws com.google.protobuf.ServiceException
transitionToActive in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic HAServiceProtocolProtos.TransitionToStandbyResponseProto transitionToStandby(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.TransitionToStandbyRequestProto request) throws com.google.protobuf.ServiceException
transitionToStandby in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic HAServiceProtocolProtos.GetServiceStatusResponseProto getServiceStatus(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.GetServiceStatusRequestProto request) throws com.google.protobuf.ServiceException
getServiceStatus in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic long getProtocolVersion(String protocol, long clientVersion) throws IOException
VersionedProtocolgetProtocolVersion in interface VersionedProtocolprotocol - The classname of the protocol interfaceclientVersion - The version of the protocol that the client speaksIOException - if any IO error occurspublic ProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException
VersionedProtocolgetProtocolSignature in interface VersionedProtocolprotocol - The classname of the protocol interfaceclientVersion - The version of the protocol that the client speaksclientMethodsHash - the hashcode of client protocol methodsIOExceptionfor a default implementationCopyright © 2013 Apache Software Foundation. All rights reserved.