org.mortbay.jetty.plus.jmx
Class ServerMBean
- ComponentListener, EventListener, MBeanRegistration, ModelMBean
JettyPlus Server 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.
IMPACT_ACTION , IMPACT_ACTION_INFO , IMPACT_INFO , IMPACT_UNKOWN , INT , NO_PARAMS , OBJECT , ON_MBEAN , ON_OBJECT , READ_ONLY , READ_WRITE , STRING , _beanInfo |
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 |
ServerMBean
public ServerMBean()
throws MBeanException,
InstanceNotFoundException
Constructor.
ServerMBean
public ServerMBean(String configuration)
throws IOException,
MBeanException,
InstanceNotFoundException
Constructor.
configuration
- URL or File to jetty.xml style configuration file
ServerMBean
protected ServerMBean(Server jettyServer)
throws MBeanException,
InstanceNotFoundException
Constructor.
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.
- defineManagedResource in interface ServerMBean
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+":");
- newObjectName in interface ServerMBean
postDeregister
public void postDeregister()
Post Deregister.
This implementation destroys this MBean and it cannot be used again.
- postDeregister in interface ServerMBean
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.