@Override public ProtocolSignature getProtocolSignature( String protocol, long version, int clientMethodsHashCode) throws IOException { if (HMasterInterface.class.getName().equals(protocol)) { return new ProtocolSignature(HMasterInterface.VERSION, null); } else if (HMasterRegionInterface.class.getName().equals(protocol)) { return new ProtocolSignature(HMasterRegionInterface.VERSION, null); } throw new IOException("Unknown protocol: " + protocol); }
@Override public ProtocolSignature getProtocolSignature( String protocol, long version, int clientMethodsHashCode) throws IOException { if (AggregateProtocol.class.getName().equals(protocol)) { return new ProtocolSignature(AggregateProtocol.VERSION, null); } throw new IOException("Unknown protocol: " + protocol); }
@Override @QosPriority(priority = HConstants.HIGH_QOS) public ProtocolSignature getProtocolSignature(String protocol, long version, int clientMethodsHashCode) throws IOException { if (protocol.equals(HRegionInterface.class.getName())) { return new ProtocolSignature(HRegionInterface.VERSION, null); } throw new IOException("Unknown protocol: " + protocol); }
@Override public ProtocolSignature getProtocolSignature(String protocol, long clientVersion, int clientMethodsHash) throws IOException { if (AccessControllerProtocol.class.getName().equals(protocol)) { return new ProtocolSignature(PROTOCOL_VERSION, null); } throw new HBaseRPC.UnknownProtocolException( "Unexpected protocol requested: "+protocol); }
@Override @QosPriority(priority=HConstants.HIGH_QOS) public ProtocolSignature getProtocolSignature( String protocol, long version, int clientMethodsHashCode) throws IOException { if (protocol.equals(HRegionInterface.class.getName())) { return new ProtocolSignature(HRegionInterface.VERSION, null); } throw new IOException("Unknown protocol: " + protocol); }
@Override @QosPriority(priority=HIGH_QOS) public ProtocolSignature getProtocolSignature( String protocol, long version, int clientMethodsHashCode) throws IOException { if (protocol.equals(HRegionInterface.class.getName())) { return new ProtocolSignature(HRegionInterface.VERSION, null); } throw new IOException("Unknown protocol: " + protocol); }
@Override public ProtocolSignature getProtocolSignature( String protocol, long version, int clientMethodsHashCode) throws IOException { return new ProtocolSignature(VERSION, null); }