| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
Client()
Construct an IPC client with the default SocketFactory
|
Client(SocketFactory factory)
Construct an IPC client whose values are of the given
Writable class. |
| Modifier and Type | Method and Description |
|---|---|
IOReadableWritable |
call(IOReadableWritable param,
InetSocketAddress addr,
Class<?> protocol)
Make a call, passing
param, to the IPC server running at address which is servicing the
protocol protocol,
with the ticket credentials, returning the value. |
void |
stop()
Stop all threads related to this client.
|
public Client(SocketFactory factory)
Writable class.public Client()
valueClass - conf - public void stop()
public IOReadableWritable call(IOReadableWritable param, InetSocketAddress addr, Class<?> protocol) throws InterruptedException, IOException
param, to the IPC server running at address which is servicing the
protocol protocol,
with the ticket credentials, returning the value.
Throws exceptions if there are network problems or if the remote code
threw an exception.InterruptedExceptionIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.