|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggerContextAdminMBean
The MBean interface for monitoring and managing a LoggerContext
.
Field Summary | |
---|---|
static String |
NOTIF_TYPE_RECONFIGURED
Notification that the Configuration of the instrumented
LoggerContext has been reconfigured. |
static String |
PATTERN
ObjectName pattern for LoggerContextAdmin MBeans. |
Method Summary | |
---|---|
String |
getConfigClassName()
Returns the class name of the Configuration of the instrumented
LoggerContext. |
String |
getConfigFilter()
Returns a string description of all Filters configured in the Configuration of the instrumented LoggerContext. |
String |
getConfigLocationURI()
Returns the configuration location URI as a String. |
String |
getConfigMonitorClassName()
Returns the class name of the object that is monitoring the configuration file for modifications. |
String |
getConfigName()
Returns the name of the Configuration of the instrumented LoggerContext. |
Map<String,String> |
getConfigProperties()
Returns a map with configured properties. |
String |
getConfigText()
Returns the configuration text, which may be the contents of the configuration file or the text that was last set with a call to setConfigText . |
String |
getName()
Returns the name of the instrumented LoggerContext . |
String |
getStatus()
Returns the status of the instrumented LoggerContext . |
void |
setConfigLocationURI(String configLocation)
Sets the configuration location to the specified URI. |
void |
setConfigText(String configText,
String charsetName)
Sets the configuration text. |
Field Detail |
---|
static final String PATTERN
static final String NOTIF_TYPE_RECONFIGURED
Configuration
of the instrumented
LoggerContext
has been reconfigured. Notifications of this type
do not carry a message or user data.
Method Detail |
---|
String getStatus()
LoggerContext
.
String getName()
LoggerContext
.
LoggerContext
.String getConfigLocationURI()
void setConfigLocationURI(String configLocation) throws URISyntaxException, IOException
LoggerContext
to reconfigure.
configLocationURI
- location of the configuration file in
URI
format.
URISyntaxException
- if the format of the specified
configLocationURI is incorrect
IOException
- if an error occurred reading the specified locationString getConfigText() throws IOException
setConfigText
.
IOException
void setConfigText(String configText, String charsetName)
LoggerContext
to be reconfigured with the specified text.
configText
- the configuration text in XML or JSON formatcharsetName
- name of the Charset
used to convert the
specified configText to bytes
IllegalArgumentException
- if a problem occurs configuring from the
specified textString getConfigName()
String getConfigClassName()
Configuration
of the instrumented
LoggerContext.
Configuration
.String getConfigFilter()
Configuration
of the instrumented LoggerContext.
String getConfigMonitorClassName()
Map<String,String> getConfigProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 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.