org.apache.naming

Class NamingService

Implemented Interfaces:
MBeanRegistration, NamingServiceMBean

public final class NamingService
extends NotificationBroadcasterSupport
implements NamingServiceMBean, MBeanRegistration

Implementation of the NamingService JMX MBean.

Version:
$Revision: 1.2.2.1 $

Author:
Remy Maucherat

Fields inherited from interface org.apache.naming.NamingServiceMBean

NAME, OBJECT_NAME, STARTED, STARTING, STOPPED, STOPPING, states

Method Summary

void
destroy()
Destroy servlet container (if any is running).
String
getName()
Retruns the Catalina component name.
int
getState()
Returns the state.
String
getStateString()
Returns a String representation of the state.
void
postDeregister()
void
postRegister(Boolean registrationDone)
void
preDeregister()
ObjectName
preRegister(MBeanServer server, ObjectName name)
void
start()
Start the servlet container.
void
stop()
Stop the servlet container.

Method Details

destroy

public void destroy()
Destroy servlet container (if any is running).
Specified by:
destroy in interface NamingServiceMBean


getName

public String getName()
Retruns the Catalina component name.
Specified by:
getName in interface NamingServiceMBean


getState

public int getState()
Returns the state.
Specified by:
getState in interface NamingServiceMBean


getStateString

public String getStateString()
Returns a String representation of the state.
Specified by:
getStateString in interface NamingServiceMBean


postDeregister

public void postDeregister()


postRegister

public void postRegister(Boolean registrationDone)


preDeregister

public void preDeregister()
            throws Exception


preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
            throws Exception


start

public void start()
            throws Exception
Start the servlet container.
Specified by:
start in interface NamingServiceMBean


stop

public void stop()
Stop the servlet container.
Specified by:
stop in interface NamingServiceMBean


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.