@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.BlockingInterface
com.google.protobuf.ServiceException
public ZKFCProtocolProtos.GracefulFailoverResponseProto gracefulFailover(com.google.protobuf.RpcController controller, ZKFCProtocolProtos.GracefulFailoverRequestProto request) throws com.google.protobuf.ServiceException
gracefulFailover
in interface ZKFCProtocolProtos.ZKFCProtocolService.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.