private long[] getProtocolVersionForRpcKind(RPC.RpcKind rpcKind, String protocol) throws ClassNotFoundException { Class<?> protocolClass = Class.forName(protocol); String protocolName = RPC.getProtocolName(protocolClass); VerProtocolImpl[] vers = server.getSupportedProtocolVersions(rpcKind, protocolName); if (vers == null) { return null; } long [] versions = new long[vers.length]; for (int i=0; i<versions.length; i++) { versions[i] = vers[i].version; } return versions; } }
private long[] getProtocolVersionForRpcKind(RPC.RpcKind rpcKind, String protocol) throws ClassNotFoundException { Class<?> protocolClass = Class.forName(protocol); String protocolName = RPC.getProtocolName(protocolClass); VerProtocolImpl[] vers = server.getSupportedProtocolVersions(rpcKind, protocolName); if (vers == null) { return null; } long [] versions = new long[vers.length]; for (int i=0; i<versions.length; i++) { versions[i] = vers[i].version; } return versions; } }
private long[] getProtocolVersionForRpcKind(RPC.RpcKind rpcKind, String protocol) throws ClassNotFoundException { Class<?> protocolClass = Class.forName(protocol); String protocolName = RPC.getProtocolName(protocolClass); VerProtocolImpl[] vers = server.getSupportedProtocolVersions(rpcKind, protocolName); if (vers == null) { return null; } long [] versions = new long[vers.length]; for (int i=0; i<versions.length; i++) { versions[i] = vers[i].version; } return versions; } }
private long[] getProtocolVersionForRpcKind(RPC.RpcKind rpcKind, String protocol) throws ClassNotFoundException { Class<?> protocolClass = Class.forName(protocol); String protocolName = RPC.getProtocolName(protocolClass); VerProtocolImpl[] vers = server.getSupportedProtocolVersions(rpcKind, protocolName); if (vers == null) { return null; } long [] versions = new long[vers.length]; for (int i=0; i<versions.length; i++) { versions[i] = vers[i].version; } return versions; } }
private long[] getProtocolVersionForRpcKind(RPC.RpcKind rpcKind, String protocol) throws ClassNotFoundException { Class<?> protocolClass = Class.forName(protocol); String protocolName = RPC.getProtocolName(protocolClass); VerProtocolImpl[] vers = server.getSupportedProtocolVersions(rpcKind, protocolName); if (vers == null) { return null; } long [] versions = new long[vers.length]; for (int i=0; i<versions.length; i++) { versions[i] = vers[i].version; } return versions; } }