org.apache.hadoop.hbase.ipc
Class HBaseServerRPC
java.lang.Object
org.apache.hadoop.hbase.ipc.HBaseServerRPC
@InterfaceAudience.Private
public class HBaseServerRPC
- extends Object
A simple RPC mechanism.
This is a local hbase copy of the hadoop RPC so we can do things like
address HADOOP-414 for hbase-only and try other hbase-specific
optimizations. Class has been renamed to avoid confusing it w/ hadoop
versions.
A protocol is a Java interface. All parameters and return types must
be Protobuf objects.
All methods in the protocol should throw only IOException. No field data of
the protocol instance is transmitted.
This class provides the server side implementation.
Field Summary |
protected static org.apache.commons.logging.Log |
LOG
|
static String |
RPC_ENGINE_PROP
Configuration key for the RpcServerEngine implementation to
load to handle connection protocols. |
Method Summary |
static RpcServer |
getServer(Class<? extends IpcProtocol> protocol,
Object instance,
Class<?>[] ifaces,
String bindAddress,
int port,
int numHandlers,
int metaHandlerCount,
boolean verbose,
org.apache.hadoop.conf.Configuration conf,
int highPriorityLevel)
Construct a server for a protocol implementation instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
RPC_ENGINE_PROP
public static final String RPC_ENGINE_PROP
- Configuration key for the
RpcServerEngine
implementation to
load to handle connection protocols. Handlers for individual protocols can be
configured using "hbase.rpc.server.engine." + protocol.class.name
.
- See Also:
- Constant Field Values
getServer
public static RpcServer getServer(Class<? extends IpcProtocol> protocol,
Object instance,
Class<?>[] ifaces,
String bindAddress,
int port,
int numHandlers,
int metaHandlerCount,
boolean verbose,
org.apache.hadoop.conf.Configuration conf,
int highPriorityLevel)
throws IOException
- Construct a server for a protocol implementation instance.
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.