public class AppenderAdmin extends java.lang.Object implements AppenderAdminMBean
AppenderAdminMBean
interface.Modifier and Type | Field and Description |
---|---|
private Appender |
appender |
private java.lang.String |
contextName |
private javax.management.ObjectName |
objectName |
PATTERN
Constructor and Description |
---|
AppenderAdmin(java.lang.String contextName,
Appender appender)
Constructs a new
AppenderAdmin with the specified contextName
and appender. |
Modifier and Type | Method and Description |
---|---|
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 |
getFilter()
Returns a string description of all filters configured for the
instrumented
Appender . |
java.lang.String |
getLayout()
Returns the result of calling
toString on the Layout
object of the instrumented Appender . |
java.lang.String |
getName()
Returns the name of the instrumented
Appender . |
javax.management.ObjectName |
getObjectName()
Returns the
ObjectName of this mbean. |
boolean |
isIgnoreExceptions()
Returns how exceptions thrown on the instrumented
Appender are
handled. |
private final java.lang.String contextName
private final Appender appender
private final javax.management.ObjectName objectName
public AppenderAdmin(java.lang.String contextName, Appender appender)
AppenderAdmin
with the specified contextName
and appender.contextName
- used in the ObjectName
for this mbeanappender
- the instrumented objectpublic javax.management.ObjectName getObjectName()
ObjectName
of this mbean.ObjectName
AppenderAdminMBean.PATTERN
public java.lang.String getName()
AppenderAdminMBean
Appender
.getName
in interface AppenderAdminMBean
public java.lang.String getLayout()
AppenderAdminMBean
toString
on the Layout
object of the instrumented Appender
.getLayout
in interface AppenderAdminMBean
Layout
of the instrumented Appender
as a
stringpublic boolean isIgnoreExceptions()
AppenderAdminMBean
Appender
are
handled.isIgnoreExceptions
in interface AppenderAdminMBean
true
if any exceptions thrown by the Appender will be
logged or false
if such exceptions are re-thrown.public java.lang.String getErrorHandler()
AppenderAdminMBean
toString
on the error handler of
this appender, or "null"
if no error handler was set.getErrorHandler
in interface AppenderAdminMBean
toString
on the error handler of this
appender, or "null"
public java.lang.String getFilter()
AppenderAdminMBean
Appender
.getFilter
in interface AppenderAdminMBean