Package org.acplt.oncrpc.apps.jportmap
Class OncRpcEmbeddedPortmap.embeddedjportmap
java.lang.Object
org.acplt.oncrpc.server.OncRpcServerStub
org.acplt.oncrpc.apps.jportmap.jportmap
org.acplt.oncrpc.apps.jportmap.OncRpcEmbeddedPortmap.embeddedjportmap
- All Implemented Interfaces:
OncRpcDispatchable
- Enclosing class:
- OncRpcEmbeddedPortmap
Extend the portmap service so that it automatically takes itself out
of service when the last ONC/RPC programs is deregistered.
-
Field Summary
FieldsFields inherited from class org.acplt.oncrpc.apps.jportmap.jportmap
locals, PMAP_PORT, PMAP_PROGRAM, PMAP_VERSION, serversFields inherited from class org.acplt.oncrpc.server.OncRpcServerStub
info, shutdownSignal, transports -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) XdrBooleanunsetPort(OncRpcServerIdent params) Deregister all port settings for a particular (program, version) for all transports (TCP, UDP, ...).Methods inherited from class org.acplt.oncrpc.apps.jportmap.jportmap
dispatchOncRpcCall, getPort, isLocalAddress, listServers, main, setPortMethods inherited from class org.acplt.oncrpc.server.OncRpcServerStub
close, getCharacterEncoding, register, run, run, setCharacterEncoding, stopRpcProcessing, unregister
-
Field Details
-
serviceThread
Thread running the embedded portmap service.
-
-
Constructor Details
-
embeddedjportmap
Creates a new instance of an embeddable portmap service.- Throws:
IOExceptionOncRpcException
-
-
Method Details
-
unsetPort
Deregister all port settings for a particular (program, version) for all transports (TCP, UDP, ...). This method basically falls back to the implementation provided by thejrpcgensuperclass, but checks whether there are other ONC/RPC programs registered. If not, it signals itself to shut down the portmap service.
-