|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.logging.log4j.jmx.gui.Client
public class Client
This class allows client-side code to perform operations on remote (server-side) MBeans via proxies.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 mbeans
MalformedObjectNameException - if a problem occurred identifying
one of the remote mbeans
IOException - if the connection failed
public 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 mbeans
MalformedObjectNameException - if a problem occurred identifying
one of the remote mbeans
IOException - if the connection failed| Method Detail |
|---|
public List<org.apache.logging.log4j.core.jmx.LoggerContextAdminMBean> getLoggerContextAdmins()
throws JMException,
IOException
LoggerContextAdminMBeans.
LoggerContextAdminMBeans
IOException - If an I/O error occurred
JMException - 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 key
MalformedObjectNameException - If an object name is malformed
IOException - 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
LoggerContextAdminMBean
ObjectName of the StatusLoggerAdminMBean
|
|||||||||
| 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.