@InterfaceAudience.Private @InterfaceStability.Stable public class ZKFCProtocolServerSideTranslatorPB extends Object implements ZKFCProtocolPB
| Constructor and Description |
|---|
ZKFCProtocolServerSideTranslatorPB(ZKFCProtocol server) |
| Modifier and Type | Method and Description |
|---|---|
ZKFCProtocolProtos.CedeActiveResponseProto |
cedeActive(com.google.protobuf.RpcController controller,
ZKFCProtocolProtos.CedeActiveRequestProto request) |
ProtocolSignature |
getProtocolSignature(String protocol,
long clientVersion,
int clientMethodsHash)
Return protocol version corresponding to protocol interface.
|
long |
getProtocolVersion(String protocol,
long clientVersion)
Return protocol version corresponding to protocol interface.
|
ZKFCProtocolProtos.GracefulFailoverResponseProto |
gracefulFailover(com.google.protobuf.RpcController controller,
ZKFCProtocolProtos.GracefulFailoverRequestProto request) |
public ZKFCProtocolServerSideTranslatorPB(ZKFCProtocol server)
public ZKFCProtocolProtos.CedeActiveResponseProto cedeActive(com.google.protobuf.RpcController controller, ZKFCProtocolProtos.CedeActiveRequestProto request) throws com.google.protobuf.ServiceException
cedeActive in interface ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterfacecom.google.protobuf.ServiceExceptionpublic ZKFCProtocolProtos.GracefulFailoverResponseProto gracefulFailover(com.google.protobuf.RpcController controller, ZKFCProtocolProtos.GracefulFailoverRequestProto request) throws com.google.protobuf.ServiceException
gracefulFailover in interface ZKFCProtocolProtos.ZKFCProtocolService.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.