|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmx4j.tools.naming.CosNamingService
An MBean that wraps tnameserv.
Calling start()
will start tnameserv in a separate process via
Runtime.exec(String command)
.
Constructor Summary | |
CosNamingService()
Creates a new instance of CosNamingService with the default port (900). |
|
CosNamingService(int port)
Creates a new instance of CosNamingService with the specified port. |
Method Summary | |
long |
getDelay()
Returns the delay (in milliseconds) that the start() and stop() methods waits before returning. |
int |
getPort()
Returns the port on which tnameserv listens for incoming connections |
boolean |
isRunning()
Returns whether this MBean has been started and not yet stopped. |
void |
setDelay(long delay)
Sets the delay (in milliseconds) that the start() and stop() methods waits before returning. |
void |
setPort(int port)
Sets the port on which tnameserv listens for incoming connections. |
void |
start()
Starts this MBean: tnameserv can now accept incoming calls |
void |
stop()
Stops this MBean: tnameserv cannot accept anymore incoming calls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CosNamingService()
public CosNamingService(int port)
Method Detail |
public void setPort(int port)
setPort
in interface CosNamingServiceMBean
getPort()
public int getPort()
getPort
in interface CosNamingServiceMBean
setPort(int)
public boolean isRunning()
isRunning
in interface CosNamingServiceMBean
start()
public void setDelay(long delay)
start()
and stop()
methods waits before returning.
This is needed to allow the tnameserv process to really start and stop.
setDelay
in interface CosNamingServiceMBean
getDelay()
public long getDelay()
start()
and stop()
methods waits before returning.
getDelay
in interface CosNamingServiceMBean
setDelay(long)
public void start()
start
in interface CosNamingServiceMBean
stop()
,
isRunning()
public void stop()
stop
in interface CosNamingServiceMBean
start()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |