|
|||||||||||
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.JDKHandlerMBean
MBean for making non persistent changes to the logging levels on JDK Logging Handlers
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 class name of the Handler
, and whose value is the Handler
's
level.
This MBean defines no operations
This MBean emits no Notification
s
Field Summary | |
---|---|
protected static java.util.logging.LogManager |
manager
|
static java.lang.String |
OBJECT_NAME_BASE
|
Constructor Summary | |
---|---|
JDKHandlerMBean()
Constructor |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributeNames)
|
protected java.util.logging.Handler |
getHandler(java.lang.String handlerName)
Obtains the Handler instance from the root logger based on
the supplied class name |
protected java.util.ArrayList |
getHandlerNames()
Returns an ArrayList of all current Handler s' classnames. |
javax.management.MBeanInfo |
getMBeanInfo()
|
java.lang.Object |
invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.String[] signature)
|
void |
setAttribute(javax.management.Attribute newAttribute)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attrs)
|
protected void |
setHandlerLevel(java.lang.String handlerName,
java.lang.String levelStr)
Sets the level of a Handler . |
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 JDKHandlerMBean()
Method Detail |
protected void setHandlerLevel(java.lang.String handlerName, java.lang.String levelStr) throws MgmtException, javax.management.InvalidAttributeValueException
Handler
.
handlerName
- Class name of the Handler
to change
MgmtException
- No Handler
matching the supplied class name, or a null or
invalid level was specified
javax.management.InvalidAttributeValueException
protected java.util.ArrayList getHandlerNames()
Handler
s' classnames.
Handler
s' classnames.protected java.util.logging.Handler getHandler(java.lang.String handlerName)
Handler
instance from the root logger based on
the supplied class name
handlerName
- Class name of the Handler
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 |