mx4j.tools.naming

Interface NamingServiceMBean

public interface NamingServiceMBean

Management interface for the NamingService MBean.

Version: $Revision: 1.7 $

Method Summary
intgetPort()
Returns the port on which rmiregistry listens for incoming connections
booleanisRunning()
Returns whether this MBean has been started and not yet stopped.
String[]list()
Returns an array of the names bound in the rmiregistry
voidsetPort(int port)
Sets the port on which rmiregistry listens for incoming connections.
voidstart()
Starts this MBean: rmiregistry can now accept incoming calls
voidstop()
Stops this MBean: rmiregistry cannot accept anymore incoming calls
voidunbind(String name)
Removes the binding for the specified name in the rmiregistry

Method Detail

getPort

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

See Also: NamingServiceMBean

isRunning

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

See Also: NamingServiceMBean

list

public String[] list()
Returns an array of the names bound in the rmiregistry

See Also: java.rmi.registry.Registry#list()

setPort

public void setPort(int port)
Sets the port on which rmiregistry listens for incoming connections. Can be called only if this service is not running.

See Also: NamingServiceMBean

start

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

See Also: NamingServiceMBean NamingServiceMBean

stop

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

See Also: NamingServiceMBean

unbind

public void unbind(String name)
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.