com.extrememessaging.ResponseMaster.monitor
Class CLoggerMBean

java.lang.Object
  extended by com.extrememessaging.ResponseMaster.monitor.CMonitorBase
      extended by com.extrememessaging.ResponseMaster.monitor.CLogger
          extended by com.extrememessaging.ResponseMaster.monitor.CLoggerMBean
All Implemented Interfaces:
IConfigurableItem, IMonitor, RollingCount.IRollListener, javax.management.DynamicMBean

public class CLoggerMBean
extends CLogger
implements javax.management.DynamicMBean

Derived from Logger, just adds some management functions through JMX


Constructor Summary
CLoggerMBean()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute_name)
          Allows the value of the specified attribute of the Dynamic MBean to be obtained.
 javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
           
 javax.management.MBeanInfo getMBeanInfo()
          This method provides the exposed attributes and operations of the Dynamic MBean.
 void Initialize(java.lang.String parameter)
          Initialize using the parameter from the config file.
 java.lang.Object invoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
          Allows an operation to be invoked on the Dynamic MBean.
 void setAttribute(javax.management.Attribute attribute)
          Normally, sets the value of the specified attribute of the Dynamic MBean.
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
           
 void Shutdown()
          Cleanup any resources you allocated during construction or operation.
 
Methods inherited from class com.extrememessaging.ResponseMaster.monitor.CLogger
LogError, LogError, LogSystem, LogTrace, LogTrace, LogWarning, LogWarning, PostRoll
 
Methods inherited from class com.extrememessaging.ResponseMaster.monitor.CMonitorBase
CategoryDefinitionsLoaded, LoggingLevelFromString, LoggingLevelNameFromValue, MailboxEmpty, MailboxInitializationBegun, MailboxInitializationFinished, MailboxShutdownBegun, MailboxShutdownFinished, MessageCategorized, MessageProcessed, MessageSkipped, ThreadKilled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLoggerMBean

public CLoggerMBean()
Method Detail

Initialize

public void Initialize(java.lang.String parameter)
                throws ResponseMasterException
Description copied from interface: IConfigurableItem
Initialize using the parameter from the config file. Frequently, the parameter will be a file name

Specified by:
Initialize in interface IConfigurableItem
Overrides:
Initialize in class CLogger
Throws:
ResponseMasterException

Shutdown

public void Shutdown()
Description copied from interface: IConfigurableItem
Cleanup any resources you allocated during construction or operation. After this is called, nothing else will be called, unless Initialize is called again. Note: Shutdown may be called more than once on the same object New in build 595.

Specified by:
Shutdown in interface IConfigurableItem
Overrides:
Shutdown in class CLogger

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
Specified by:
getAttributes in interface javax.management.DynamicMBean

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Specified by:
setAttributes in interface javax.management.DynamicMBean

getAttribute

public java.lang.Object getAttribute(java.lang.String attribute_name)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException
Allows the value of the specified attribute of the Dynamic MBean to be obtained.

Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Normally, sets the value of the specified attribute of the Dynamic MBean. In this case, always throws because everything is readonly.

Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

invoke

public java.lang.Object invoke(java.lang.String operationName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Allows an operation to be invoked on the Dynamic MBean.

Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
This method provides the exposed attributes and operations of the Dynamic MBean. It provides this information using an MBeanInfo object.

Specified by:
getMBeanInfo in interface javax.management.DynamicMBean