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.IOException
java.net.SocketException
public 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.IOException
public abstract void closeConnection()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.