public class TcpRpcClient extends RpcClient
Constructor and Description |
---|
TcpRpcClient(java.net.InetAddress addr,
int port,
java.net.InetAddress fromAddr,
int fromPort,
int maxRpcSize)
Class constructor
|
TcpRpcClient(java.net.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(java.net.InetAddress addr, int port, int maxRpcSize) throws java.io.IOException
addr
- InetAddressport
- intmaxRpcSize
- intjava.io.IOException
public TcpRpcClient(java.net.InetAddress addr, int port, java.net.InetAddress fromAddr, int fromPort, int maxRpcSize) throws java.io.IOException
addr
- InetAddressport
- intfromAddr
- InetAddressfromPort
- intmaxRpcSize
- intjava.io.IOException
public RpcPacket sendRPC(RpcPacket rpc, RpcPacket rxRpc) throws java.io.IOException
public void closeConnection()
closeConnection
in class RpcClient
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.