|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mx4j.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)
NamingServiceMBean
running
.
setPort
in interface NamingServiceMBean
NamingServiceMBean.getPort()
public int getPort()
NamingServiceMBean
getPort
in interface NamingServiceMBean
NamingServiceMBean.setPort(int)
public boolean isRunning()
NamingServiceMBean
isRunning
in interface NamingServiceMBean
NamingServiceMBean.start()
public void start() throws java.rmi.RemoteException
NamingServiceMBean
start
in interface NamingServiceMBean
java.rmi.RemoteException
NamingServiceMBean.stop()
,
NamingServiceMBean.isRunning()
public void stop() throws java.rmi.NoSuchObjectException
NamingServiceMBean
stop
in interface NamingServiceMBean
java.rmi.NoSuchObjectException
NamingServiceMBean.start()
public java.lang.String[] list() throws java.rmi.RemoteException
NamingServiceMBean
list
in interface NamingServiceMBean
java.rmi.RemoteException
Registry.list()
public void unbind(java.lang.String name) throws java.rmi.RemoteException, java.rmi.NotBoundException
NamingServiceMBean
name
in the rmiregistry
unbind
in interface NamingServiceMBean
java.rmi.RemoteException
java.rmi.NotBoundException
Registry.unbind(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |