|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.ipc.HbaseRPC
public class HbaseRPC
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 like using our own version of ObjectWritable. Class has been renamed to avoid confusing it w/ hadoop versions.
A protocol is a Java interface. All parameters and return types must be one of:
boolean
, byte
,
char
, short
, int
, long
,
float
, double
, or void
; orString
; orWritable
; or
Nested Class Summary | |
---|---|
static class |
HbaseRPC.Server
An RPC Server. |
static class |
HbaseRPC.VersionMismatch
A version mismatch for the RPC protocol. |
Method Summary | |
---|---|
static Object[] |
call(Method method,
Object[][] params,
InetSocketAddress[] addrs,
org.apache.hadoop.conf.Configuration conf)
Expert: Make multiple, parallel calls to a set of servers. |
static org.apache.hadoop.ipc.VersionedProtocol |
getProxy(Class<?> protocol,
long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf)
Construct a client-side proxy object with the default SocketFactory |
static org.apache.hadoop.ipc.VersionedProtocol |
getProxy(Class<?> protocol,
long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf,
SocketFactory factory)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
static org.apache.hadoop.ipc.VersionedProtocol |
getProxy(Class<?> protocol,
long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.security.UserGroupInformation ticket,
org.apache.hadoop.conf.Configuration conf,
SocketFactory factory)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
static HbaseRPC.Server |
getServer(Object instance,
String bindAddress,
int port,
org.apache.hadoop.conf.Configuration conf)
Construct a server for a protocol implementation instance listening on a port and address. |
static HbaseRPC.Server |
getServer(Object instance,
String bindAddress,
int port,
int numHandlers,
boolean verbose,
org.apache.hadoop.conf.Configuration conf)
Construct a server for a protocol implementation instance listening on a port and address. |
static void |
stopProxy(org.apache.hadoop.ipc.VersionedProtocol proxy)
Stop this proxy and release its invoker's resource |
static org.apache.hadoop.ipc.VersionedProtocol |
waitForProxy(Class protocol,
long clientVersion,
InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf,
int maxAttempts)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static org.apache.hadoop.ipc.VersionedProtocol waitForProxy(Class protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf, int maxAttempts) throws IOException
IOException
public static org.apache.hadoop.ipc.VersionedProtocol getProxy(Class<?> protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf, SocketFactory factory) throws IOException
IOException
public static org.apache.hadoop.ipc.VersionedProtocol getProxy(Class<?> protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.security.UserGroupInformation ticket, org.apache.hadoop.conf.Configuration conf, SocketFactory factory) throws IOException
IOException
public static org.apache.hadoop.ipc.VersionedProtocol getProxy(Class<?> protocol, long clientVersion, InetSocketAddress addr, org.apache.hadoop.conf.Configuration conf) throws IOException
protocol
- clientVersion
- addr
- conf
-
IOException
public static void stopProxy(org.apache.hadoop.ipc.VersionedProtocol proxy)
proxy
- the proxy to be stoppedpublic static Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static HbaseRPC.Server getServer(Object instance, String bindAddress, int port, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static HbaseRPC.Server getServer(Object instance, String bindAddress, int port, int numHandlers, boolean verbose, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |