@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.BlockingInterface
com.google.protobuf.ServiceException
public HAServiceProtocolProtos.TransitionToActiveResponseProto transitionToActive(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.TransitionToActiveRequestProto request) throws com.google.protobuf.ServiceException
transitionToActive
in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface
com.google.protobuf.ServiceException
public HAServiceProtocolProtos.TransitionToStandbyResponseProto transitionToStandby(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.TransitionToStandbyRequestProto request) throws com.google.protobuf.ServiceException
transitionToStandby
in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface
com.google.protobuf.ServiceException
public HAServiceProtocolProtos.GetServiceStatusResponseProto getServiceStatus(com.google.protobuf.RpcController controller, HAServiceProtocolProtos.GetServiceStatusRequestProto request) throws com.google.protobuf.ServiceException
getServiceStatus
in interface HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface
com.google.protobuf.ServiceException
public long getProtocolVersion(String protocol, long clientVersion) throws IOException
VersionedProtocol
getProtocolVersion
in interface VersionedProtocol
protocol
- 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
VersionedProtocol
getProtocolSignature
in interface VersionedProtocol
protocol
- The classname of the protocol interfaceclientVersion
- The version of the protocol that the client speaksclientMethodsHash
- the hashcode of client protocol methodsIOException
for a default implementation
Copyright © 2013 Apache Software Foundation. All rights reserved.