public class TcpRpcClient extends RpcClient
Constructor and Description |
---|
TcpRpcClient(InetAddress addr,
int port,
InetAddress fromAddr,
int fromPort,
int maxRpcSize)
Class constructor
|
TcpRpcClient(InetAddress addr,
int port,
int maxRpcSize)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeConnection()
Close the connection to the remote RPC server
|
RpcPacket |
sendRPC(RpcPacket rpc,
RpcPacket rxRpc)
Send an RPC request using the socket connection, and receive a response
|
getMaximumRpcSize, getServerAddress, getServerPort, isProtocol, toString
public TcpRpcClient(InetAddress addr, int port, int maxRpcSize) throws IOException
addr
- InetAddressport
- intmaxRpcSize
- intIOException
public TcpRpcClient(InetAddress addr, int port, InetAddress fromAddr, int fromPort, int maxRpcSize) throws IOException
addr
- InetAddressport
- intfromAddr
- InetAddressfromPort
- intmaxRpcSize
- intIOException
public RpcPacket sendRPC(RpcPacket rpc, RpcPacket rxRpc) throws IOException
sendRPC
in class RpcClient
rpc
- RpcPacketrxRpc
- RpcPacketIOException
public void closeConnection()
closeConnection
in class RpcClient
Copyright © 2005–2018 Alfresco Software. All rights reserved.