Package org.apache.naming
Class NamingService
- java.lang.Object
-
- javax.management.NotificationBroadcasterSupport
-
- 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: 1.3 $
- Author:
- Remy Maucherat
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.naming.NamingServiceMBean
NamingServiceMBean.State
-
-
Field Summary
-
Fields inherited from interface org.apache.naming.NamingServiceMBean
NAME, OBJECT_NAME
-
-
Constructor Summary
Constructors Constructor Description NamingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy servlet container (if any is running).StringgetName()Retruns the Catalina component name.NamingServiceMBean.StategetState()Returns the state.voidpostDeregister()voidpostRegister(Boolean registrationDone)voidpreDeregister()ObjectNamepreRegister(MBeanServer server, ObjectName name)voidstart()Start the servlet container.voidstop()Stop the servlet container.-
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
-
-
-
Method Detail
-
preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
- Specified by:
preRegisterin interfaceMBeanRegistration- Throws:
Exception
-
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegisterin interfaceMBeanRegistration
-
preDeregister
public void preDeregister() throws Exception- Specified by:
preDeregisterin interfaceMBeanRegistration- Throws:
Exception
-
postDeregister
public void postDeregister()
- Specified by:
postDeregisterin interfaceMBeanRegistration
-
getName
public String getName()
Retruns the Catalina component name.- Specified by:
getNamein interfaceNamingServiceMBean
-
getState
public NamingServiceMBean.State getState()
Returns the state.- Specified by:
getStatein interfaceNamingServiceMBean
-
start
public void start() throws ExceptionStart the servlet container.- Specified by:
startin interfaceNamingServiceMBean- Throws:
Exception
-
stop
public void stop()
Stop the servlet container.- Specified by:
stopin interfaceNamingServiceMBean
-
destroy
public void destroy()
Destroy servlet container (if any is running).- Specified by:
destroyin interfaceNamingServiceMBean
-
-