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

Quick Search    Search Deep

org.mortbay.util.jmx
Class LogMBean  view LogMBean download LogMBean.java

java.lang.Object
  extended byorg.mortbay.util.jmx.ModelMBeanImpl
      extended byorg.mortbay.util.jmx.LogMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

public class LogMBean
extends ModelMBeanImpl


Field Summary
(package private)  org.mortbay.util.Log _log
           
 
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
LogMBean()
          Constructor.
LogMBean(org.mortbay.util.Log log)
          Constructor.
 
Method Summary
protected  void defineManagedResource()
          Define the Managed Resource.
 javax.management.ObjectName[] getLogSinks()
           
 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.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, newObjectName, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setBaseObjectName, setDefaultDomain, setManagedResource, 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

org.mortbay.util.Log _log
Constructor Detail

LogMBean

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


LogMBean

public LogMBean(org.mortbay.util.Log log)
         throws javax.management.MBeanException,
                javax.management.InstanceNotFoundException
Constructor.

Method Detail

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 ModelMBeanImpl

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.

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

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

getLogSinks

public javax.management.ObjectName[] getLogSinks()