|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.si.mgmt.logging.Log4JLoggerMBean
Dynamic MBean that allows for dynamic, non persistent changes to Log4J Logger logging levels.
The ObjectName
of this MBean includes the following attributes, in addition to the SIF
attribute of DeviceID
:
This management interface has a dynamic list of attributes, each of which is
the name of the Logger
, and whose value is the Logger
's
level.
The following operations are included in this management interface. These are described in more detail in the corresponding method documentation.
This MBean emits no Notification
s
Field Summary | |
---|---|
static java.lang.String |
OBJECT_NAME_BASE
|
Constructor Summary | |
---|---|
Log4JLoggerMBean()
Constructor |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributeNames)
|
protected java.util.ArrayList |
getLoggerNames()
Returns an ArrayList of the current logger names. |
javax.management.MBeanInfo |
getMBeanInfo()
|
java.lang.Object |
invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.String[] signature)
|
void |
resetConfiguration()
Reload the configuration file for logger properties |
void |
setAttribute(javax.management.Attribute newAttribute)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attrs)
|
protected void |
setLoggerLevel(java.lang.String loggerName,
java.lang.String levelStr)
Sets the level of a logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String OBJECT_NAME_BASE
Constructor Detail |
public Log4JLoggerMBean()
Method Detail |
protected void setLoggerLevel(java.lang.String loggerName, java.lang.String levelStr) throws MgmtException
loggerName
- Name of logger to set level for
MgmtException
protected java.util.ArrayList getLoggerNames()
public void resetConfiguration()
public java.lang.Object getAttribute(java.lang.String attributeName) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
DynamicMBean.getAttribute(java.lang.String)
public javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
getAttributes
in interface javax.management.DynamicMBean
DynamicMBean.getAttributes(java.lang.String[])
public java.lang.Object invoke(java.lang.String operation, java.lang.Object[] params, java.lang.String[] signature)
invoke
in interface javax.management.DynamicMBean
DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[])
public void setAttribute(javax.management.Attribute newAttribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
DynamicMBean.setAttribute(javax.management.Attribute)
public javax.management.AttributeList setAttributes(javax.management.AttributeList attrs)
setAttributes
in interface javax.management.DynamicMBean
DynamicMBean.setAttributes(javax.management.AttributeList)
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |