Apache Tomcat 7.0.4

org.apache.naming
Class NamingService

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.apache.naming.NamingService
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, NamingServiceMBean

public final class NamingService
extends NotificationBroadcasterSupport
implements NamingServiceMBean, MBeanRegistration

Implementation of the NamingService JMX MBean.

Version:
$Revision: 1001938 $
Author:
Remy Maucherat

Field Summary
 
Fields inherited from interface org.apache.naming.NamingServiceMBean
NAME, OBJECT_NAME, STARTED, STARTING, states, STOPPED, STOPPING
 
Constructor Summary
NamingService()
           
 
Method Summary
 void destroy()
          Destroy servlet container (if any is running).
 String getName()
          Returns 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.
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamingService

public NamingService()
Method Detail

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration

getName

public String getName()
Returns 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

start

public void start()
           throws Exception
Start the servlet container.

Specified by:
start in interface NamingServiceMBean
Throws:
Exception

stop

public void stop()
Stop the servlet container.

Specified by:
stop in interface NamingServiceMBean

destroy

public void destroy()
Destroy servlet container (if any is running).

Specified by:
destroy in interface NamingServiceMBean

Apache Tomcat 7.0.4

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.