public class JMXConfigurator extends ContextAwareBase implements JMXConfiguratorMBean, LoggerContextListener
Since this class implements JMXConfiguratorMBean
it has to be
named as JMXConfigurator}.
Constructor and Description |
---|
JMXConfigurator(LoggerContext loggerContext,
javax.management.MBeanServer mbs,
javax.management.ObjectName objectName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLoggerEffectiveLevel(java.lang.String loggerName) |
java.lang.String |
getLoggerLevel(java.lang.String loggerName) |
java.util.List<java.lang.String> |
getLoggerList() |
java.util.List<java.lang.String> |
getStatuses() |
boolean |
isResetResistant()
JMXConfigurator should not be removed subsequent to a LoggerContext reset.
|
void |
onLevelChange(Logger logger,
Level level) |
void |
onReset(LoggerContext context) |
void |
onStart(LoggerContext context) |
void |
onStop(LoggerContext context)
When the associated LoggerContext is stopped, this configurator must be
unregistered
|
void |
reloadByFileName(java.lang.String fileName) |
void |
reloadByURL(java.net.URL url) |
void |
reloadDefaultConfiguration() |
void |
setLoggerLevel(java.lang.String loggerName,
java.lang.String levelStr) |
java.lang.String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
public JMXConfigurator(LoggerContext loggerContext, javax.management.MBeanServer mbs, javax.management.ObjectName objectName)
public void reloadDefaultConfiguration() throws JoranException
reloadDefaultConfiguration
in interface JMXConfiguratorMBean
JoranException
public void reloadByFileName(java.lang.String fileName) throws JoranException, java.io.FileNotFoundException
reloadByFileName
in interface JMXConfiguratorMBean
JoranException
java.io.FileNotFoundException
public void reloadByURL(java.net.URL url) throws JoranException
reloadByURL
in interface JMXConfiguratorMBean
JoranException
public void setLoggerLevel(java.lang.String loggerName, java.lang.String levelStr)
setLoggerLevel
in interface JMXConfiguratorMBean
public java.lang.String getLoggerLevel(java.lang.String loggerName)
getLoggerLevel
in interface JMXConfiguratorMBean
public java.lang.String getLoggerEffectiveLevel(java.lang.String loggerName)
getLoggerEffectiveLevel
in interface JMXConfiguratorMBean
public java.util.List<java.lang.String> getLoggerList()
getLoggerList
in interface JMXConfiguratorMBean
public java.util.List<java.lang.String> getStatuses()
getStatuses
in interface JMXConfiguratorMBean
public void onStop(LoggerContext context)
onStop
in interface LoggerContextListener
public void onLevelChange(Logger logger, Level level)
onLevelChange
in interface LoggerContextListener
public void onReset(LoggerContext context)
onReset
in interface LoggerContextListener
public boolean isResetResistant()
isResetResistant
in interface LoggerContextListener
public void onStart(LoggerContext context)
onStart
in interface LoggerContextListener
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved