| Constructor and Description |
|---|
Client(JMXConnector connector)
Constructs a new
Client object and creates proxies for all known
remote MBeans. |
Client(MBeanServerConnection mBeanServerConnection)
Constructs a new
Client object and creates proxies for all known
remote MBeans. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the client connection to its server.
|
MBeanServerConnection |
getConnection()
Returns the MBean server connection through which to communicate with the
remote mbeans.
|
org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean |
getLoggerContextAdmin(ObjectName name) |
List<org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean> |
getLoggerContextAdmins()
Returns a list of proxies that allow operations to be performed on the
remote
LoggerContextAdminMBeans. |
org.apache.logging.log4j.core.jmx.StatusLoggerAdminMBean |
getStatusLoggerAdmin(String contextName)
Returns the
StatusLoggerAdminMBean associated with the specified
context name, or null. |
ObjectName |
getStatusLoggerObjectName(ObjectName loggerContextObjName)
Returns the
ObjectName of the StatusLoggerAdminMBean
associated with the specified LoggerContextAdminMBean. |
boolean |
isLoggerContext(ObjectName mbeanName)
Returns
true if the specified ObjectName is for a
LoggerContextAdminMBean, false otherwise. |
public Client(JMXConnector connector) throws MalformedObjectNameException, IOException
Client object and creates proxies for all known
remote MBeans.connector - used to create the MBean server connection through which
to communicate with the remote mbeansMalformedObjectNameException - if a problem occurred identifying
one of the remote mbeansIOException - if the connection failedpublic Client(MBeanServerConnection mBeanServerConnection) throws MalformedObjectNameException, IOException
Client object and creates proxies for all known
remote MBeans.mBeanServerConnection - the MBean server connection through which to
communicate with the remote mbeansMalformedObjectNameException - if a problem occurred identifying
one of the remote mbeansIOException - if the connection failedpublic List<org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean> getLoggerContextAdmins() throws JMException, IOException
LoggerContextAdminMBeans.LoggerContextAdminMBeansIOException - If an I/O error occurredJMException - If a management error occurredpublic org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean getLoggerContextAdmin(ObjectName name)
public void close()
public MBeanServerConnection getConnection()
public org.apache.logging.log4j.core.jmx.StatusLoggerAdminMBean getStatusLoggerAdmin(String contextName) throws MalformedObjectNameException, IOException
StatusLoggerAdminMBean associated with the specified
context name, or null.contextName - search keyMalformedObjectNameException - If an object name is malformedIOException - If an I/O error occurredpublic boolean isLoggerContext(ObjectName mbeanName)
true if the specified ObjectName is for a
LoggerContextAdminMBean, false otherwise.mbeanName - the ObjectName to check.true if the specified ObjectName is for a
LoggerContextAdminMBean, false otherwisepublic ObjectName getStatusLoggerObjectName(ObjectName loggerContextObjName)
ObjectName of the StatusLoggerAdminMBean
associated with the specified LoggerContextAdminMBean.loggerContextObjName - the ObjectName of a
LoggerContextAdminMBeanObjectName of the StatusLoggerAdminMBeanCopyright © 1999-1969 The 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.