public class AsyncAppenderAdmin extends java.lang.Object implements AsyncAppenderAdminMBean
AsyncAppenderAdminMBean interface.| Modifier and Type | Field and Description |
|---|---|
private AsyncAppender |
asyncAppender |
private java.lang.String |
contextName |
private javax.management.ObjectName |
objectName |
PATTERN| Constructor and Description |
|---|
AsyncAppenderAdmin(java.lang.String contextName,
AsyncAppender appender)
Constructs a new
AsyncAppenderAdmin with the specified contextName
and async appender. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAppenderRefs()
Returns a String array with the appender refs configured for the
instrumented
AsyncAppender. |
java.lang.String |
getErrorHandler()
Returns the result of calling
toString on the error handler of
this appender, or "null" if no error handler was set. |
java.lang.String |
getErrorRef()
Returns the name of the appender that any errors are logged to or
null. |
java.lang.String |
getFilter()
Returns a string description of all filters configured for the
instrumented
AsyncAppender. |
java.lang.String |
getLayout()
Returns the result of calling
toString on the Layout
object of the instrumented AsyncAppender. |
java.lang.String |
getName()
Returns the name of the instrumented
AsyncAppender. |
javax.management.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. |
private final java.lang.String contextName
private final AsyncAppender asyncAppender
private final javax.management.ObjectName objectName
public AsyncAppenderAdmin(java.lang.String contextName,
AsyncAppender appender)
AsyncAppenderAdmin with the specified contextName
and async appender.contextName - used in the ObjectName for this mbeanappender - the instrumented objectpublic javax.management.ObjectName getObjectName()
ObjectName of this mbean.ObjectNameAppenderAdminMBean.PATTERNpublic java.lang.String getName()
AsyncAppenderAdminMBeanAsyncAppender.getName in interface AsyncAppenderAdminMBeanpublic java.lang.String getLayout()
AsyncAppenderAdminMBeantoString on the Layout
object of the instrumented AsyncAppender.getLayout in interface AsyncAppenderAdminMBeanLayout of the instrumented AsyncAppender as a
stringpublic boolean isIgnoreExceptions()
AsyncAppenderAdminMBeanAsyncAppender
are handled.isIgnoreExceptions in interface AsyncAppenderAdminMBeantrue if any exceptions thrown by the AsyncAppender will
be logged or false if such exceptions are re-thrown.public java.lang.String getErrorHandler()
AsyncAppenderAdminMBeantoString on the error handler of
this appender, or "null" if no error handler was set.getErrorHandler in interface AsyncAppenderAdminMBeantoString on the error handler of this
appender, or "null"public java.lang.String getFilter()
AsyncAppenderAdminMBeanAsyncAppender.getFilter in interface AsyncAppenderAdminMBeanpublic java.lang.String[] getAppenderRefs()
AsyncAppenderAdminMBeanAsyncAppender.getAppenderRefs in interface AsyncAppenderAdminMBeanAsyncAppender.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 AsyncAppenderAdminMBeantrue 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 AsyncAppenderAdminMBeanpublic java.lang.String getErrorRef()
null.getErrorRef in interface AsyncAppenderAdminMBeannullpublic int getQueueCapacity()
getQueueCapacity in interface AsyncAppenderAdminMBeanpublic int getQueueRemainingCapacity()
getQueueRemainingCapacity in interface AsyncAppenderAdminMBean