|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.acplt.oncrpc.OncRpcClientStub
public abstract class OncRpcClientStub
The abstract OncRpcClientStub
class is the base class to
build ONC/RPC-program specific clients upon. This class is typically
only used by jrpcgen generated clients, which provide a particular
set of remote procedures as defined in a x-file.
When you do not need the client proxy object any longer, you should
return the resources it occupies to the system. Use the close()
method for this.
client.close(); client = null; // Hint to the garbage (wo)man
OncRpcTcpClient
,
OncRpcUdpClient
Field Summary | |
---|---|
protected OncRpcClient |
client
The real ONC/RPC client which is responsible for handling a particular IP protocol. |
Constructor Summary | |
---|---|
OncRpcClientStub(java.net.InetAddress host,
int program,
int version,
int port,
int protocol)
Construct a new OncRpcClientStub for communication with
a remote ONC/RPC server. |
|
OncRpcClientStub(OncRpcClient client)
Construct a new OncRpcClientStub which uses the given
client proxy object for communication with a remote ONC/RPC server. |
Method Summary | |
---|---|
void |
close()
Close the connection to an ONC/RPC server and free all network-related resources. |
OncRpcClient |
getClient()
Returns ONC/RPC client proxy object used for communication with a remote ONC/RPC server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OncRpcClient client
Constructor Detail |
---|
public OncRpcClientStub(java.net.InetAddress host, int program, int version, int port, int protocol) throws OncRpcException, java.io.IOException
OncRpcClientStub
for communication with
a remote ONC/RPC server.
host
- Host address where the desired ONC/RPC server resides.program
- Program number of the desired ONC/RPC server.version
- Version number of the desired ONC/RPC server.protocol
- Protocol
to be used for
ONC/RPC calls. This information is necessary, so port lookups through
the portmapper can be done.
OncRpcException
- if an ONC/RPC error occurs.
java.io.IOException
- if an I/O error occurs.public OncRpcClientStub(OncRpcClient client) throws OncRpcException, java.io.IOException
OncRpcClientStub
which uses the given
client proxy object for communication with a remote ONC/RPC server.
client
- ONC/RPC client proxy object implementing a particular
IP protocol.
OncRpcException
java.io.IOException
Method Detail |
---|
public void close() throws OncRpcException
OncRpcException
- if an ONC/RPC error occurs.public OncRpcClient getClient()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |