mx4j.tools.naming

Interface NamingServiceMBean

Known Implementing Classes:
NamingService

public interface NamingServiceMBean

Management interface for the NamingService MBean.
Version:
$Revision: 1.7 $

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.
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(String name)
Removes the binding for the specified name in the rmiregistry

Method Details

getPort

public int getPort()
Returns the port on which rmiregistry listens for incoming connections

isRunning

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

list

public String[] list()
            throws RemoteException
Returns an array of the names bound in the rmiregistry
See Also:
java.rmi.registry.Registry.list()

setPort

public void setPort(int port)
See Also:
getPort()

start

public void start()
            throws RemoteException
Starts this MBean: rmiregistry can now accept incoming calls

stop

public void stop()
            throws NoSuchObjectException
Stops this MBean: rmiregistry cannot accept anymore incoming calls

unbind

public void unbind(String name)
            throws RemoteException,
                   NotBoundException
Removes the binding for the specified name in the rmiregistry
See Also:
java.rmi.registry.Registry.unbind(String)

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.