com.nhncorp.neptune.common.ipc
Interface NVersionedProtocol

All Known Subinterfaces:
AsyncCallProtocol, ChangeLogServerIF, ChangeLogServerIF, DataServiceProtocol, FileChangeLogServerIF, NeptuneMasterIF, TableManagerProtocol, TabletManagerProtocol, TabletMasterProtocol, TabletServerIF
All Known Implementing Classes:
ChangeLogServer, FileChangeLogServer, NeptuneMaster, TabletServer

public interface NVersionedProtocol

Superclass of all protocols that use Hadoop RPC. Subclasses of this interface are also supposed to have a static final long versionID field.

Author:
milindb

Method Summary
 long getProtocolVersion(java.lang.String protocol, long clientVersion)
          Return protocol version corresponding to protocol interface.
 

Method Detail

getProtocolVersion

long getProtocolVersion(java.lang.String protocol,
                        long clientVersion)
                        throws java.io.IOException
Return protocol version corresponding to protocol interface.

Parameters:
protocol - The classname of the protocol interface
clientVersion - The version of the protocol that the client speaks
Returns:
the version that the server will speak
Throws:
java.io.IOException