public class JEMonitor extends JEMBean implements javax.management.DynamicMBean
JEMonitor is a JMX MBean which makes statistics and basic administrative operations available. The MBean is registered and enabled when the system property JEMonitor is set. It only works on an active JE Environment, and an Environment can only register one instance of JEMonitor.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATT_CACHE_PERCENT |
static java.lang.String |
ATT_CACHE_SIZE |
static java.lang.String |
ATT_ENV_HOME |
static java.lang.String |
ATT_IS_READ_ONLY |
static java.lang.String |
ATT_IS_SERIALIZABLE |
static java.lang.String |
ATT_IS_TRANSACTIONAL |
static java.lang.String |
ATT_LOCK_TIMEOUT |
static java.lang.String |
ATT_TXN_TIMEOUT |
className, currentClass, DESCRIPTION, env, jeName, operationList, server, statParams| Modifier | Constructor and Description |
|---|---|
|
JEMonitor() |
protected |
JEMonitor(Environment env) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOperations()
Add MBean operations into the list.
|
protected void |
doRegisterMBean(Environment env) |
java.lang.Object |
getAttribute(java.lang.String attributeName) |
protected javax.management.MBeanAttributeInfo[] |
getAttributeList()
Get attribute metadata for this MBean.
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
protected void |
initClassFields() |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
doRegister, doUnregister, getConstructors, getMBeanInfo, getNotificationInfo, getStatsConfig, resetMBeanInfopublic static final java.lang.String ATT_ENV_HOME
public static final java.lang.String ATT_IS_READ_ONLY
public static final java.lang.String ATT_IS_TRANSACTIONAL
public static final java.lang.String ATT_CACHE_SIZE
public static final java.lang.String ATT_CACHE_PERCENT
public static final java.lang.String ATT_LOCK_TIMEOUT
public static final java.lang.String ATT_IS_SERIALIZABLE
public static final java.lang.String ATT_TXN_TIMEOUT
protected JEMonitor(Environment env)
public JEMonitor()
protected void initClassFields()
initClassFields in class JEMBeanpublic java.lang.Object getAttribute(java.lang.String attributeName)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException
getAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionDynamicMBean.getAttribute(java.lang.String)public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException
setAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.InvalidAttributeValueExceptionjavax.management.MBeanExceptionDynamicMBean.setAttribute(javax.management.Attribute)public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes in interface javax.management.DynamicMBeanDynamicMBean.getAttributes(java.lang.String[])public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBeanDynamicMBean.setAttributes(javax.management.AttributeList)public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException
invoke in interface javax.management.DynamicMBeanjavax.management.MBeanExceptionDynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[])protected void doRegisterMBean(Environment env) throws java.lang.Exception
doRegisterMBean in class JEMBeanjava.lang.Exceptionprotected javax.management.MBeanAttributeInfo[] getAttributeList()
JEMBeangetAttributeList in class JEMBeanprotected void addOperations()
JEMBeanaddOperations in class JEMBeanCopyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.