|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.ipc.HBaseClient
public class HBaseClient
A client for an IPC service. IPC calls take a single Writable
as a
parameter, and return a Writable
as their value. A service runs on
a port and is defined by a parameter class and a value class.
This is the org.apache.hadoop.ipc.Client renamed as HBaseClient and moved into this package so can access package-private methods.
HBaseServer
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
HBaseClient(Class<? extends org.apache.hadoop.io.Writable> valueClass,
org.apache.hadoop.conf.Configuration conf)
Construct an IPC client with the default SocketFactory |
|
HBaseClient(Class<? extends org.apache.hadoop.io.Writable> valueClass,
org.apache.hadoop.conf.Configuration conf,
SocketFactory factory)
Construct an IPC client whose values are of the given Writable
class. |
Method Summary | |
---|---|
org.apache.hadoop.io.Writable[] |
call(org.apache.hadoop.io.Writable[] params,
InetSocketAddress[] addresses)
Makes a set of calls in parallel. |
org.apache.hadoop.io.Writable |
call(org.apache.hadoop.io.Writable param,
InetSocketAddress address)
Make a call, passing param , to the IPC server running at
address , returning the value. |
org.apache.hadoop.io.Writable |
call(org.apache.hadoop.io.Writable param,
InetSocketAddress addr,
org.apache.hadoop.security.UserGroupInformation ticket)
|
static void |
setPingInterval(org.apache.hadoop.conf.Configuration conf,
int pingInterval)
set the ping interval value in configuration |
void |
stop()
Stop all threads related to this client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public HBaseClient(Class<? extends org.apache.hadoop.io.Writable> valueClass, org.apache.hadoop.conf.Configuration conf, SocketFactory factory)
Writable
class.
public HBaseClient(Class<? extends org.apache.hadoop.io.Writable> valueClass, org.apache.hadoop.conf.Configuration conf)
valueClass
- conf
- Method Detail |
---|
public static final void setPingInterval(org.apache.hadoop.conf.Configuration conf, int pingInterval)
conf
- ConfigurationpingInterval
- the ping intervalpublic void stop()
public org.apache.hadoop.io.Writable call(org.apache.hadoop.io.Writable param, InetSocketAddress address) throws InterruptedException, IOException
param
, to the IPC server running at
address
, returning the value. Throws exceptions if there are
network problems or if the remote code threw an exception.
InterruptedException
IOException
public org.apache.hadoop.io.Writable call(org.apache.hadoop.io.Writable param, InetSocketAddress addr, org.apache.hadoop.security.UserGroupInformation ticket) throws InterruptedException, IOException
InterruptedException
IOException
public org.apache.hadoop.io.Writable[] call(org.apache.hadoop.io.Writable[] params, InetSocketAddress[] addresses) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |