public class CosNamingService extends java.lang.Object implements CosNamingServiceMBean
Calling start() will start tnameserv in a separate process via
Runtime.exec(String command).
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
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
|
public CosNamingService()
public CosNamingService(int port)
public void setPort(int port)
setPort in interface CosNamingServiceMBeangetPort()public int getPort()
getPort in interface CosNamingServiceMBeansetPort(int)public boolean isRunning()
isRunning in interface CosNamingServiceMBeanstart()public void start()
throws java.lang.Exception
start in interface CosNamingServiceMBeanjava.lang.Exceptionstop(),
isRunning()public void stop()
stop in interface CosNamingServiceMBeanstart()