public class NetMgr
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
dropConnection(java.net.InetSocketAddress key)
Remove a dropped connection from the map.
|
org.jboss.netty.channel.ChannelFactory |
getFactory()
Getter method for Factory access.
|
static NetMgr |
getInstance() |
Xdr |
sendAndWait(java.lang.String serverIP,
int port,
boolean usePrivilegedPort,
Xdr xdrRequest,
int timeout)
Basic RPC call functionality only.
|
void |
shutdown()
Called when the application is being shut down.
|
public static NetMgr getInstance()
public Xdr sendAndWait(java.lang.String serverIP, int port, boolean usePrivilegedPort, Xdr xdrRequest, int timeout) throws RpcException
serverIP - The endpoint of the server being called.port - The remote host port being called for this operation.usePrivilegedPort - true, use a privileged local port (below
1024) for RPC communication.false, use any non-privileged local port
for RPC communication.xdrRequest - The Xdr data for the request.timeout - The timeout in seconds.RpcExceptionpublic void dropConnection(java.net.InetSocketAddress key)
key - The keypublic void shutdown()
public org.jboss.netty.channel.ChannelFactory getFactory()