|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmx4j.tools.naming.NamingService
An MBean that wraps rmiregistry.
Calling start() will launch rmiregistry in the same JVM; this way
rmiregistry will have in its classpath the same classes the JVM has.
| Constructor Summary | |
NamingService()
Creates a new instance of NamingService with the default rmiregistry port (1099). |
|
NamingService(int port)
Creates a new instance of NamingService with the specified port. |
|
| Method Summary | |
int |
getPort()
Returns the port on which rmiregistry listens for incoming connections |
boolean |
isRunning()
Returns whether this MBean has been started and not yet stopped. |
java.lang.String[] |
list()
Returns an array of the names bound in the rmiregistry |
void |
setPort(int port)
Sets the port on which rmiregistry listens for incoming connections. |
void |
start()
Starts this MBean: rmiregistry can now accept incoming calls |
void |
stop()
Stops this MBean: rmiregistry cannot accept anymore incoming calls |
void |
unbind(java.lang.String name)
Removes the binding for the specified name in the rmiregistry |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NamingService()
public NamingService(int port)
| Method Detail |
public void setPort(int port)
NamingServiceMBeanrunning.
setPort in interface NamingServiceMBeanNamingServiceMBean.getPort()public int getPort()
NamingServiceMBean
getPort in interface NamingServiceMBeanNamingServiceMBean.setPort(int)public boolean isRunning()
NamingServiceMBean
isRunning in interface NamingServiceMBeanNamingServiceMBean.start()
public void start()
throws java.rmi.RemoteException
NamingServiceMBean
start in interface NamingServiceMBeanjava.rmi.RemoteExceptionNamingServiceMBean.stop(),
NamingServiceMBean.isRunning()
public void stop()
throws java.rmi.NoSuchObjectException
NamingServiceMBean
stop in interface NamingServiceMBeanjava.rmi.NoSuchObjectExceptionNamingServiceMBean.start()
public java.lang.String[] list()
throws java.rmi.RemoteException
NamingServiceMBean
list in interface NamingServiceMBeanjava.rmi.RemoteExceptionRegistry.list()
public void unbind(java.lang.String name)
throws java.rmi.RemoteException,
java.rmi.NotBoundException
NamingServiceMBeanname in the rmiregistry
unbind in interface NamingServiceMBeanjava.rmi.RemoteException
java.rmi.NotBoundExceptionRegistry.unbind(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||