|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.jmx.AsyncAppenderAdmin
public class AsyncAppenderAdmin
Implementation of the AsyncAppenderAdminMBean
interface.
Field Summary |
---|
Fields inherited from interface org.apache.logging.log4j.core.jmx.AsyncAppenderAdminMBean |
---|
PATTERN |
Constructor Summary | |
---|---|
AsyncAppenderAdmin(String contextName,
AsyncAppender appender)
Constructs a new AsyncAppenderAdmin with the specified contextName
and async appender. |
Method Summary | |
---|---|
String[] |
getAppenderRefs()
Returns a String array with the appender refs configured for the instrumented AsyncAppender . |
String |
getErrorHandler()
Returns the result of calling toString on the error handler of
this appender, or "null" if no error handler was set. |
String |
getErrorRef()
Returns the name of the appender that any errors are logged to or null . |
String |
getFilter()
Returns a string description of all filters configured for the instrumented AsyncAppender . |
String |
getLayout()
Returns the result of calling toString on the Layout
object of the instrumented AsyncAppender . |
String |
getName()
Returns the name of the instrumented AsyncAppender . |
ObjectName |
getObjectName()
Returns the ObjectName of this mbean. |
int |
getQueueCapacity()
|
int |
getQueueRemainingCapacity()
|
boolean |
isBlocking()
Returns true if this AsyncAppender will block when the queue is full,
or false if events are dropped when the queue is full. |
boolean |
isIgnoreExceptions()
Returns how exceptions thrown on the instrumented AsyncAppender
are handled. |
boolean |
isIncludeLocation()
Returns true if this AsyncAppender will take a snapshot of the stack with
every log event to determine the class and method where the logging call
was made. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncAppenderAdmin(String contextName, AsyncAppender appender)
AsyncAppenderAdmin
with the specified contextName
and async appender.
contextName
- used in the ObjectName
for this mbeanappender
- the instrumented objectMethod Detail |
---|
public ObjectName getObjectName()
ObjectName
of this mbean.
ObjectName
AppenderAdminMBean.PATTERN
public String getName()
AsyncAppenderAdminMBean
AsyncAppender
.
getName
in interface AsyncAppenderAdminMBean
public String getLayout()
AsyncAppenderAdminMBean
toString
on the Layout
object of the instrumented AsyncAppender
.
getLayout
in interface AsyncAppenderAdminMBean
Layout
of the instrumented AsyncAppender
as a
stringpublic boolean isIgnoreExceptions()
AsyncAppenderAdminMBean
AsyncAppender
are handled.
isIgnoreExceptions
in interface AsyncAppenderAdminMBean
true
if any exceptions thrown by the AsyncAppender will
be logged or false
if such exceptions are re-thrown.public String getErrorHandler()
AsyncAppenderAdminMBean
toString
on the error handler of
this appender, or "null"
if no error handler was set.
getErrorHandler
in interface AsyncAppenderAdminMBean
toString
on the error handler of this
appender, or "null"
public String getFilter()
AsyncAppenderAdminMBean
AsyncAppender
.
getFilter
in interface AsyncAppenderAdminMBean
public String[] getAppenderRefs()
AsyncAppenderAdminMBean
AsyncAppender
.
getAppenderRefs
in interface AsyncAppenderAdminMBean
AsyncAppender
.public boolean isIncludeLocation()
true
if this AsyncAppender will take a snapshot of the stack with
every log event to determine the class and method where the logging call
was made.
isIncludeLocation
in interface AsyncAppenderAdminMBean
true
if location is included with every event, false
otherwisepublic boolean isBlocking()
true
if this AsyncAppender will block when the queue is full,
or false
if events are dropped when the queue is full.
isBlocking
in interface AsyncAppenderAdminMBean
public String getErrorRef()
null
.
getErrorRef
in interface AsyncAppenderAdminMBean
null
public int getQueueCapacity()
getQueueCapacity
in interface AsyncAppenderAdminMBean
public int getQueueRemainingCapacity()
getQueueRemainingCapacity
in interface AsyncAppenderAdminMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.