org.mortbay.http.jmx
Class HttpServerMBean

java.lang.Object
  extended by org.mortbay.util.jmx.ModelMBeanImpl
      extended by org.mortbay.util.jmx.LifeCycleMBean
          extended by org.mortbay.http.jmx.HttpServerMBean
All Implemented Interfaces:
java.util.EventListener, javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean, ComponentListener
Direct Known Subclasses:
ServerMBean

public class HttpServerMBean
extends LifeCycleMBean
implements ComponentListener

HttpServer MBean. This Model MBean class provides the mapping for HttpServer management methods. It also registers itself as a membership listener of the HttpServer, so it can create and destroy MBean wrappers for listeners and contexts.

Version:
$Revision: 1.16 $
Author:
Greg Wilkins (gregw)

Field Summary
 
Fields inherited from class org.mortbay.util.jmx.ModelMBeanImpl
_beanInfo, IMPACT_ACTION, IMPACT_ACTION_INFO, IMPACT_INFO, IMPACT_UNKOWN, INT, NO_PARAMS, OBJECT, ON_MBEAN, ON_OBJECT, READ_ONLY, READ_WRITE, STRING
 
Constructor Summary
  HttpServerMBean()
          Constructor.
protected HttpServerMBean(HttpServer httpServer)
          Constructor.
 
Method Summary
 void addComponent(ComponentEvent event)
           
protected  void defineManagedResource()
          Define the Managed Resource.
 javax.management.ObjectName[] getComponents()
           
 java.lang.String getVersion()
           
 void postDeregister()
          Post Deregister.
 void postRegister(java.lang.Boolean ok)
           
 void removeComponent(ComponentEvent event)
           
 void setManagedResource(java.lang.Object o, java.lang.String s)
           
 
Methods inherited from class org.mortbay.util.jmx.ModelMBeanImpl
addAttributeChangeNotificationListener, addNotificationListener, defineAttribute, defineAttribute, defineAttribute, defineAttribute, defineOperation, defineOperation, defineOperation, defineOperation, destroyComponentMBeans, getAttribute, getAttributes, getBaseObjectName, getComponentMBeans, getDefaultDomain, getManagedResource, getMBeanInfo, getMBeanServer, getNotificationInfo, getObjectName, invoke, load, mbeanFor, newObjectName, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setBaseObjectName, setDefaultDomain, setModelMBeanInfo, store, uniqueObjectName, uniqueObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerMBean

protected HttpServerMBean(HttpServer httpServer)
                   throws javax.management.MBeanException,
                          javax.management.InstanceNotFoundException
Constructor.

Throws:
javax.management.MBeanException
javax.management.InstanceNotFoundException

HttpServerMBean

public HttpServerMBean()
                throws javax.management.MBeanException,
                       javax.management.InstanceNotFoundException
Constructor.

Throws:
javax.management.MBeanException
javax.management.InstanceNotFoundException
Method Detail

setManagedResource

public void setManagedResource(java.lang.Object o,
                               java.lang.String s)
                        throws javax.management.MBeanException,
                               javax.management.InstanceNotFoundException,
                               javax.management.modelmbean.InvalidTargetObjectTypeException
Specified by:
setManagedResource in interface javax.management.modelmbean.ModelMBean
Overrides:
setManagedResource in class ModelMBeanImpl
Throws:
javax.management.MBeanException
javax.management.InstanceNotFoundException
javax.management.modelmbean.InvalidTargetObjectTypeException

defineManagedResource

protected void defineManagedResource()
Description copied from class: ModelMBeanImpl
Define the Managed Resource. This method is called the first time setManagedResource is called with a non-null object. It should be implemented by a derived ModelMBean to define the attributes and operations after an initial object has been set.

Overrides:
defineManagedResource in class LifeCycleMBean

addComponent

public void addComponent(ComponentEvent event)
Specified by:
addComponent in interface ComponentListener

getVersion

public java.lang.String getVersion()

getComponents

public javax.management.ObjectName[] getComponents()

removeComponent

public void removeComponent(ComponentEvent event)
Specified by:
removeComponent in interface ComponentListener

postRegister

public void postRegister(java.lang.Boolean ok)
Specified by:
postRegister in interface javax.management.MBeanRegistration
Overrides:
postRegister in class ModelMBeanImpl
Parameters:
ok -

postDeregister

public void postDeregister()
Description copied from class: ModelMBeanImpl
Post Deregister. This implementation destroys this MBean and it cannot be used again.

Specified by:
postDeregister in interface javax.management.MBeanRegistration
Overrides:
postDeregister in class ModelMBeanImpl


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.