|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.perf4j.log4j.JmxAttributeStatisticsAppender
public class JmxAttributeStatisticsAppender
This appender is designed to be attached to an AsyncCoalescingStatisticsAppender
. It takes the incoming
GroupedTimingStatistics log messages and uses this data to update the value of a JMX MBean. The attributes on this
MBean can then be monitored by external tools.
Field Summary |
---|
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
JmxAttributeStatisticsAppender()
|
Method Summary | |
---|---|
void |
activateOptions()
|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
|
void |
close()
|
java.lang.String |
getMBeanName()
The MBeanName option is used to specify the ObjectName under which the StatisticsExposingMBean in the MBeanServer. |
protected javax.management.MBeanServer |
getMBeanServer()
Gets the MBeanServer that should be used to register the StatisticsExposingMBean. |
java.lang.String |
getTagNamesToExpose()
The TagNamesToExpose option is a comma-separated list of the tag names whose statistics values (e.g. |
boolean |
requiresLayout()
|
void |
setMBeanName(java.lang.String mBeanName)
Sets the value of the MBeanName option. |
void |
setTagNamesToExpose(java.lang.String tagNamesToExpose)
Sets the value of the TagNamesToExpose option. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
---|
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmxAttributeStatisticsAppender()
Method Detail |
---|
public java.lang.String getMBeanName()
public void setMBeanName(java.lang.String mBeanName)
mBeanName
- The new value for the MBeanName option.public java.lang.String getTagNamesToExpose()
StatisticsExposingMBean
for more details.
public void setTagNamesToExpose(java.lang.String tagNamesToExpose)
tagNamesToExpose
- The new value for the TagNamesToExpose option.public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
protected void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
requiresLayout
in class org.apache.log4j.AppenderSkeleton
public void close()
close
in interface org.apache.log4j.Appender
close
in class org.apache.log4j.AppenderSkeleton
protected javax.management.MBeanServer getMBeanServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |