org.mortbay.jetty.jmx

Class ServerMBean

Implemented Interfaces:
ComponentListener, EventListener, MBeanRegistration, ModelMBean
Known Direct Subclasses:
ServerMBean

public class ServerMBean
extends HttpServerMBean

JettyServer 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.12 $
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

ServerMBean()
Constructor.
ServerMBean(String configuration)
Constructor.
ServerMBean(Server jettyServer)
Constructor.

Method Summary

protected void
defineManagedResource()
protected ObjectName
newObjectName(MBeanServer server)
void
postDeregister()
void
postRegister(Boolean ok)

Methods inherited from class org.mortbay.http.jmx.HttpServerMBean

addComponent, defineManagedResource, getComponents, getVersion, postDeregister, postRegister, removeComponent, setManagedResource

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

ServerMBean

public ServerMBean()
            throws MBeanException,
                   InstanceNotFoundException
Constructor.

ServerMBean

public ServerMBean(String configuration)
            throws IOException,
                   MBeanException,
                   InstanceNotFoundException
Constructor.
Parameters:
configuration - URL or File to jetty.xml style configuration file

ServerMBean

public ServerMBean(Server jettyServer)
            throws MBeanException,
                   InstanceNotFoundException
Constructor.

Method Details

defineManagedResource

protected void defineManagedResource()
Overrides:
defineManagedResource in interface HttpServerMBean

newObjectName

protected ObjectName newObjectName(MBeanServer server)
Overrides:
newObjectName in interface ModelMBeanImpl

postDeregister

public void postDeregister()
Overrides:
postDeregister in interface HttpServerMBean

postRegister

public void postRegister(Boolean ok)
Overrides:
postRegister in interface HttpServerMBean
Parameters:
ok -

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