public interface NamingServiceMBean
Modifier and Type | Method and Description |
---|---|
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 |
void setPort(int port)
running
.getPort()
int getPort()
setPort(int)
boolean isRunning()
start()
void start() throws java.rmi.RemoteException
java.rmi.RemoteException
stop()
,
isRunning()
void stop() throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException
start()
java.lang.String[] list() throws java.rmi.RemoteException
java.rmi.RemoteException
Registry.list()
void unbind(java.lang.String name) throws java.rmi.RemoteException, java.rmi.NotBoundException
name
in the rmiregistryjava.rmi.RemoteException
java.rmi.NotBoundException
Registry.unbind(String)