org.apache.hadoop.ipc
Interface VersionedProtocol
public interface VersionedProtocol
Superclass of all protocols that use Hadoop RPC.
 Subclasses of this interface are also supposed to have
 a static final long versionID field.
| 
Method Summary | 
 long | 
getProtocolVersion(String protocol,
                   long clientVersion)
 
          Return protocol version corresponding to protocol interface. | 
 
getProtocolVersion
long getProtocolVersion(String protocol,
                        long clientVersion)
                        throws IOException
- Return protocol version corresponding to protocol interface.
- Parameters:
 protocol - The classname of the protocol interfaceclientVersion - The version of the protocol that the client speaks
- Returns:
 - the version that the server will speak
 - Throws:
 IOException
 
 
Copyright © 2008 The Apache Software Foundation