Package org.apache.accumulo.monitor.util
Class AccumuloMonitorAppender
- java.lang.Object
-
- org.apache.log4j.AppenderSkeleton
-
- org.apache.log4j.AsyncAppender
-
- org.apache.accumulo.monitor.util.AccumuloMonitorAppender
-
- All Implemented Interfaces:
AutoCloseable,org.apache.log4j.Appender,org.apache.log4j.spi.AppenderAttachable,org.apache.log4j.spi.OptionHandler
public class AccumuloMonitorAppender extends org.apache.log4j.AsyncAppender implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description AccumuloMonitorAppender()A Log4j Appender which follows the registered location of the active Accumulo monitor service, and forwards log messages to it
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateOptions()voidclose()intgetFrequency()voidsetFrequency(int millis)-
Methods inherited from class org.apache.log4j.AsyncAppender
addAppender, append, getAllAppenders, getAppender, getBlocking, getBufferSize, getLocationInfo, isAttached, removeAllAppenders, removeAppender, removeAppender, requiresLayout, setBlocking, setBufferSize, setLocationInfo
-
-
-
-
Method Detail
-
setFrequency
public void setFrequency(int millis)
-
getFrequency
public int getFrequency()
-
activateOptions
public void activateOptions()
- Specified by:
activateOptionsin interfaceorg.apache.log4j.spi.OptionHandler- Overrides:
activateOptionsin classorg.apache.log4j.AppenderSkeleton
-
close
public void close()
- Specified by:
closein interfaceorg.apache.log4j.Appender- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classorg.apache.log4j.AsyncAppender
-
-