复制/** * Superclass of all protocols that use Hadoop RPC. * Subclasses of this interface are also supposed to have * a static final long versionID field. * Hadoop RPC所有协议的信C析基类,源码下载返回协议版本号 */ publicinterface VersionedProtocol { /** * Return protocol version corresponding to protocol interface. * @param protocol The classname of the protocol interface * @param clientVersion The version of the protocol that the client speaks * @return the version that the server will speak */ publiclong getProtocolVersion(String protocol,户端 long clientVersion) throws IOException; } 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.IT技术网