|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.acplt.oncrpc.server.OncRpcServerStub org.acplt.oncrpc.apps.jportmap.jportmap org.acplt.oncrpc.apps.jportmap.OncRpcEmbeddedPortmap.embeddedjportmap
class OncRpcEmbeddedPortmap.embeddedjportmap
Extend the portmap service so that it automatically takes itself out of service when the last ONC/RPC programs is deregistered.
Field Summary | |
---|---|
protected java.lang.Thread |
serviceThread
Thread running the embedded portmap service. |
Fields inherited from class org.acplt.oncrpc.apps.jportmap.jportmap |
---|
locals, PMAP_PORT, PMAP_PROGRAM, PMAP_VERSION, servers |
Fields inherited from class org.acplt.oncrpc.server.OncRpcServerStub |
---|
info, shutdownSignal, transports |
Constructor Summary | |
---|---|
OncRpcEmbeddedPortmap.embeddedjportmap()
Creates a new instance of an embeddable portmap service. |
Method Summary | |
---|---|
(package private) XdrBoolean |
unsetPort(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, setPort |
Methods inherited from class org.acplt.oncrpc.server.OncRpcServerStub |
---|
close, getCharacterEncoding, register, run, run, setCharacterEncoding, stopRpcProcessing, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Thread serviceThread
Constructor Detail |
---|
public OncRpcEmbeddedPortmap.embeddedjportmap() throws java.io.IOException, OncRpcException
java.io.IOException
OncRpcException
Method Detail |
---|
XdrBoolean unsetPort(OncRpcServerIdent params)
jrpcgen
superclass,
but checks whether there are other ONC/RPC programs registered. If
not, it signals itself to shut down the portmap service.
unsetPort
in class jportmap
params
- (program, version) to deregister. The protocol and port
fields are not used.
true
if deregistration succeeded.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |