Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.jetty.jmx
Class ServerMBean  view ServerMBean download ServerMBean.java

java.lang.Object
  extended byorg.mortbay.util.jmx.ModelMBeanImpl
      extended byorg.mortbay.util.jmx.LifeCycleMBean
          extended byorg.mortbay.http.jmx.HttpServerMBean
              extended byorg.mortbay.jetty.jmx.ServerMBean
All Implemented Interfaces:
javax.management.DynamicMBean, java.util.EventListener, org.mortbay.http.HttpServer.ComponentEventListener, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

public class ServerMBean
extends org.mortbay.http.jmx.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.6 $

Nested Class Summary
 
Nested classes inherited from class org.mortbay.http.jmx.HttpServerMBean
 
Field Summary
private  java.lang.String _configuration
           
private  org.mortbay.jetty.Server _jettyServer
           
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.mortbay.http.jmx.HttpServerMBean
 
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
  ServerMBean()
          Constructor.
protected ServerMBean(org.mortbay.jetty.Server jettyServer)
          Constructor.
  ServerMBean(java.lang.String configuration)
          Constructor.
 
Method Summary
protected  void defineManagedResource()
          Define the Managed Resource.
protected  javax.management.ObjectName newObjectName(javax.management.MBeanServer server)
          Create a new ObjectName.
 void postDeregister()
          Post Deregister.
 void postRegister(java.lang.Boolean ok)
          This method is called by the MBeanServer after registration takes place or when registration fails.
 
Methods inherited from class org.mortbay.http.jmx.HttpServerMBean
addComponent, getComponents, getVersion, removeComponent, setManagedResource
 
Methods inherited from class org.mortbay.util.jmx.ModelMBeanImpl
addAttributeChangeNotificationListener, addNotificationListener, defineAttribute, defineAttribute, defineAttribute, defineAttribute, defineOperation, defineOperation, defineOperation, getAttribute, getAttributes, getBaseObjectName, getComponentMBeans, getDefaultDomain, getManagedResource, getMBeanInfo, getMBeanServer, getNotificationInfo, getObjectName, invoke, load, mbeanFor, 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
 

Field Detail

log

private static org.apache.commons.logging.Log log

_jettyServer

private org.mortbay.jetty.Server _jettyServer

_configuration

private java.lang.String _configuration
Constructor Detail

ServerMBean

protected ServerMBean(org.mortbay.jetty.Server jettyServer)
               throws javax.management.MBeanException,
                      javax.management.InstanceNotFoundException
Constructor.


ServerMBean

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


ServerMBean

public ServerMBean(java.lang.String configuration)
            throws java.io.IOException,
                   javax.management.MBeanException,
                   javax.management.InstanceNotFoundException
Constructor.

Method Detail

newObjectName

protected javax.management.ObjectName newObjectName(javax.management.MBeanServer server)
Description copied from class: org.mortbay.util.jmx.ModelMBeanImpl
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+":");


defineManagedResource

protected void defineManagedResource()
Description copied from class: org.mortbay.util.jmx.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.


postRegister

public void postRegister(java.lang.Boolean ok)
Description copied from interface: javax.management.MBeanRegistration
This method is called by the MBeanServer after registration takes place or when registration fails.


postDeregister

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