org.rhq.plugins.jmx
Class JavaUtilLoggingResourceComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent
      extended by org.rhq.plugins.jmx.JavaUtilLoggingResourceComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, ResourceComponent, MeasurementFacet, OperationFacet, JMXComponent

public class JavaUtilLoggingResourceComponent
extends MBeanResourceComponent

Author:
Greg Hinkle

Field Summary
 
Fields inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
bean, log, OBJECT_NAME_PROP, PROPERTY_TRANSFORM, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
JavaUtilLoggingResourceComponent()
           
 
Method Summary
 String getLoggerLevel(LoggingMXBean logging, String name)
           
 org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
          This default setup of configuration properties can map to mbean attributes
 void updateResourceConfiguration(ConfigurationUpdateReport report)
          Note, this only supports editing existing appenders; adding or removing appenders is not supported, since the underlying JVM mBean (LoggingMXBean) does not support it.
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeName, getAttributeProperty, getAvailability, getBeanProperties, getEmsBean, getEmsConnection, getPropertyValueAsType, getResourceContext, getValues, getValues, invokeOperation, invokeOperation, loadBean, loadBean, lookupAttributeProperty, setEmsBean, setResourceContext, start, stop, transformBeanName, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaUtilLoggingResourceComponent

public JavaUtilLoggingResourceComponent()
Method Detail

loadResourceConfiguration

public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
Description copied from class: MBeanResourceComponent
This default setup of configuration properties can map to mbean attributes

Specified by:
loadResourceConfiguration in interface ConfigurationFacet
Overrides:
loadResourceConfiguration in class MBeanResourceComponent
Returns:
the configuration of the component

getLoggerLevel

public String getLoggerLevel(LoggingMXBean logging,
                             String name)

updateResourceConfiguration

public void updateResourceConfiguration(ConfigurationUpdateReport report)
Note, this only supports editing existing appenders; adding or removing appenders is not supported, since the underlying JVM mBean (LoggingMXBean) does not support it.

Specified by:
updateResourceConfiguration in interface ConfigurationFacet
Overrides:
updateResourceConfiguration in class MBeanResourceComponent
Parameters:
report - the report which will contain the results of the requested update


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.