|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextSelectorAdminMBean
The MBean interface for monitoring and managing the ContextSelector
.
Field Summary | |
---|---|
static String |
PATTERN
ObjectName pattern ("org.apache.logging.log4j2:type=%s,component=ContextSelector") for ContextSelectorAdmin MBeans. |
Method Summary | |
---|---|
String |
getImplementationClassName()
Returns the name of the class implementing the ContextSelector
interface. |
Field Detail |
---|
static final String PATTERN
You can find all registered ContextSelectorAdmin MBeans like this:
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); String pattern = String.format(ContextSelectorAdminMBean.PATTERN, "*"); Set<ObjectName> contextSelectorNames = mbs.queryNames(new ObjectName(pattern), null);
Some characters are not allowed in ObjectNames. The logger context name may be quoted. When ContextSelectorAdmin MBeans are registered, their ObjectNames are created using this pattern as follows:
String ctxName = Server.escape(loggerContext.getName()); String name = String.format(PATTERN, ctxName); ObjectName objectName = new ObjectName(name);
Server.escape(String)
,
Constant Field ValuesMethod Detail |
---|
String getImplementationClassName()
ContextSelector
interface.
ContextSelector
implementation class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 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.