public interface VersionedProtocol
| Modifier and Type | Method and Description |
|---|---|
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.
|
long getProtocolVersion(String protocol, long clientVersion) throws IOException
protocol - The classname of the protocol interfaceclientVersion - The version of the protocol that the client speaksIOException - if any IO error occursProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException
protocol - 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.