public abstract class RpcClient extends Object
Provides either a socket or datagram connection to an RPC server.
| Modifier | Constructor and Description |
|---|---|
protected |
RpcClient(InetAddress addr,
int port,
int proto,
int maxRpcSize)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
closeConnection()
Close the connection to the remote RPC server
|
int |
getMaximumRpcSize()
Return the maximum RPC size
|
InetAddress |
getServerAddress()
Return the server address
|
int |
getServerPort()
Return the server port
|
int |
isProtocol()
Return the protocol type
|
abstract RpcPacket |
sendRPC(RpcPacket rpc,
RpcPacket rxRpc)
Send an RPC request to the server
|
String |
toString()
Return the RPC connection details as a string
|
protected RpcClient(InetAddress addr, int port, int proto, int maxRpcSize) throws IOException, SocketException
addr - InetAddressport - intproto - intmaxRpcSize - intIOExceptionSocketExceptionpublic final int getMaximumRpcSize()
public final InetAddress getServerAddress()
public final int getServerPort()
public final int isProtocol()
public abstract RpcPacket sendRPC(RpcPacket rpc, RpcPacket rxRpc) throws IOException
rpc - RpcPacketrxRpc - RpcPacketIOExceptionpublic abstract void closeConnection()
Copyright © 2005–2014 Alfresco Software. All rights reserved.