org.mortbay.http.jmx

Class HttpContextMBean

Implemented Interfaces:
MBeanRegistration, ModelMBean
Known Direct Subclasses:
ServletHttpContextMBean

public class HttpContextMBean
extends LifeCycleMBean

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

Field Summary

Fields inherited from class org.mortbay.util.jmx.ModelMBeanImpl

IMPACT_ACTION, IMPACT_ACTION_INFO, IMPACT_INFO, IMPACT_UNKOWN, INT, NO_PARAMS, OBJECT, ON_MBEAN, ON_OBJECT, READ_ONLY, READ_WRITE, STRING, _beanInfo

Constructor Summary

HttpContextMBean()
Constructor.

Method Summary

protected void
defineManagedResource()
Define the Managed Resource.
void
destroyHandlers()
ObjectName[]
getHandlers()
ObjectName
getRequestLog()
protected ObjectName
newObjectName(MBeanServer server)
Create a new ObjectName.
void
postDeregister()
Post Deregister.
void
postRegister(Boolean ok)

Methods inherited from class org.mortbay.util.jmx.LifeCycleMBean

defineManagedResource

Methods inherited from class org.mortbay.util.jmx.ModelMBeanImpl

addAttributeChangeNotificationListener, addNotificationListener, defineAttribute, defineAttribute, defineAttribute, defineAttribute, defineManagedResource, defineOperation, defineOperation, defineOperation, defineOperation, destroyComponentMBeans, getAttribute, getAttributes, getBaseObjectName, getComponentMBeans, getDefaultDomain, getMBeanInfo, getMBeanServer, getManagedResource, getNotificationInfo, getObjectName, invoke, load, mbeanFor, newObjectName, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setBaseObjectName, setDefaultDomain, setManagedResource, setModelMBeanInfo, store, uniqueObjectName, uniqueObjectName

Constructor Details

HttpContextMBean

public HttpContextMBean()
            throws MBeanException
Constructor.

Method Details

defineManagedResource

protected void defineManagedResource()
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 interface LifeCycleMBean

destroyHandlers

public void destroyHandlers()

getHandlers

public ObjectName[] getHandlers()

getRequestLog

public ObjectName getRequestLog()

newObjectName

protected ObjectName newObjectName(MBeanServer server)
Create a new ObjectName. Return a new object name. The default implementation is the results of uniqueObjectName(baseObjectName), if baseObjectName is not set, then the results of uniqueObjectName(defaultDomain+":");
Overrides:
newObjectName in interface ModelMBeanImpl
Returns:
The Object name

postDeregister

public void postDeregister()
Post Deregister. This implementation destroys this MBean and it cannot be used again.
Overrides:
postDeregister in interface ModelMBeanImpl

postRegister

public void postRegister(Boolean ok)
Overrides:
postRegister in interface ModelMBeanImpl

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