|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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. |
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 |
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)
setPort
in interface NamingServiceMBean
getPort()
public int getPort()
getPort
in interface NamingServiceMBean
setPort(int)
public boolean isRunning()
isRunning
in interface NamingServiceMBean
start()
public void start() throws java.rmi.RemoteException
start
in interface NamingServiceMBean
stop()
,
isRunning()
public void stop() throws java.rmi.NoSuchObjectException
stop
in interface NamingServiceMBean
start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |