|
|||||||||||
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.JDKLoggerMBean
Dynamic MBean that allows for dynamic, non persistent changes to JDK 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 | |
---|---|
protected static java.util.logging.LogManager |
manager
|
static java.lang.String |
OBJECT_NAME_BASE
|
Constructor Summary | |
---|---|
JDKLoggerMBean()
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 |
readConfiguration()
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
protected static java.util.logging.LogManager manager
Constructor Detail |
public JDKLoggerMBean()
Method Detail |
protected void setLoggerLevel(java.lang.String loggerName, java.lang.String levelStr) throws MgmtException, javax.management.InvalidAttributeValueException
loggerName
-
MgmtException
javax.management.InvalidAttributeValueException
protected java.util.ArrayList getLoggerNames()
public void readConfiguration() throws java.io.IOException
java.io.IOException
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 |