|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acplt.oncrpc.server.OncRpcServerStub
The abstract OncRpcServerStub
class is the base class to
build ONC/RPC-program specific servers upon. This class is typically
only used by jrpcgen generated servers, which provide a particular
set of remote procedures as defined in a x-file.
Field Summary | |
OncRpcServerTransportRegistrationInfo[] |
info
Array containing program and version numbers tuples this server is willing to handle. |
protected java.lang.Object |
shutdownSignal
Notification flag for signalling the server to stop processing incomming remote procedure calls and to shut down. |
OncRpcServerTransport[] |
transports
Array containing ONC/RPC server transport objects which describe what transports an ONC/RPC server offers for handling ONC/RPC calls. |
Constructor Summary | |
OncRpcServerStub()
|
Method Summary | |
void |
close(OncRpcServerTransport[] transports)
Close all transports listed in a set of server transports. |
void |
register(OncRpcServerTransport[] transports)
Register a set of server transports with the local portmapper. |
void |
run()
All inclusive convenience method: register server transports with portmapper, then run the call dispatcher until the server is signalled to shut down, and finally deregister the transports. |
void |
run(OncRpcServerTransport[] transports)
Process incomming remote procedure call requests from all specified transports. |
void |
stopRpcProcessing()
Notify the RPC server to stop processing of remote procedure call requests as soon as possible. |
void |
unregister(OncRpcServerTransport[] transports)
Unregister a set of server transports from the local portmapper. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public OncRpcServerTransport[] transports
public OncRpcServerTransportRegistrationInfo[] info
protected java.lang.Object shutdownSignal
Constructor Detail |
public OncRpcServerStub()
Method Detail |
public void run() throws OncRpcException, java.io.IOException
public void register(OncRpcServerTransport[] transports) throws OncRpcException
transports
- Array of server transport objects to register,
which will later handle incomming remote procedure call requests.public void run(OncRpcServerTransport[] transports)
shutdownSignal
object. Note that the thread on which
run()
is called will ignore any interruptions and
will silently swallow them.transports
- Array of server transport objects for which
processing of remote procedure call requests should be done.public void stopRpcProcessing()
close(org.acplt.oncrpc.server.OncRpcServerTransport[])
method of the server.public void unregister(OncRpcServerTransport[] transports) throws OncRpcException
transports
- Array of server transport objects to unregister.public void close(OncRpcServerTransport[] transports)
transports
- Array of server transport objects to close.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |