public abstract class RpcClient
extends java.lang.Object
Provides either a socket or datagram connection to an RPC server.
| Modifier | Constructor and Description |
|---|---|
protected |
RpcClient(java.net.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
|
java.net.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
|
java.lang.String |
toString()
Return the RPC connection details as a string
|
protected RpcClient(java.net.InetAddress addr,
int port,
int proto,
int maxRpcSize)
throws java.io.IOException,
java.net.SocketException
addr - InetAddressport - intproto - intmaxRpcSize - intjava.io.IOExceptionjava.net.SocketExceptionpublic final int getMaximumRpcSize()
public final java.net.InetAddress getServerAddress()
public final int getServerPort()
public final int isProtocol()
public abstract RpcPacket sendRPC(RpcPacket rpc, RpcPacket rxRpc) throws java.io.IOException
rpc - RpcPacketrxRpc - RpcPacketjava.io.IOExceptionpublic abstract void closeConnection()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.