public class Client extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
Client()
Construct an IPC client with the default SocketFactory
|
Client(SocketFactory factory) |
| 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)
public Client()
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 © 2015 The Apache Software Foundation. All rights reserved.