mx4j.tools.naming
Interface NamingServiceMBean

All Known Implementing Classes:
NamingService

public interface NamingServiceMBean

Management interface for the Naming MBean

Version:
$Revision: 1.2 $
Author:
Simone Bordet

Field Summary
static java.lang.String OBJECT_NAME
          The default object name for this MBean
 
Method Summary
 int getPort()
          Returns the port on which the rmiregistry is running
 boolean isRunning()
          Returns whether this MBean has been started and not yet stopped.
 void setPort(int port)
          Sets the port on which the rmiregistry will run.
 void start()
          Starts the rmiregistry, that now can accept incoming calls
 void stop()
          Stops the rmiregistry, that now cannot accept anymore incoming calls
 

Field Detail

OBJECT_NAME

public static final java.lang.String OBJECT_NAME
The default object name for this MBean
Method Detail

getPort

public int getPort()
Returns the port on which the rmiregistry is running

setPort

public void setPort(int port)
Sets the port on which the rmiregistry will run.

start

public void start()
           throws java.rmi.RemoteException
Starts the rmiregistry, that now can accept incoming calls
See Also:
stop()

stop

public void stop()
          throws java.rmi.NoSuchObjectException
Stops the rmiregistry, that now cannot accept anymore incoming calls
See Also:
start()

isRunning

public boolean isRunning()
Returns whether this MBean has been started and not yet stopped.
See Also:
start()