public abstract class JEMBean extends java.lang.Object implements EnvironmentImpl.MBeanRegistrar
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
className |
protected java.lang.Class<?> |
currentClass |
protected java.lang.String |
DESCRIPTION |
protected Environment |
env |
protected javax.management.ObjectName |
jeName |
protected java.util.ArrayList<javax.management.MBeanOperationInfo> |
operationList |
protected javax.management.MBeanServer |
server |
static javax.management.MBeanParameterInfo[] |
statParams |
Modifier | Constructor and Description |
---|---|
|
JEMBean() |
protected |
JEMBean(Environment env) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addOperations()
Add MBean operations into the list.
|
void |
doRegister(Environment env)
For EnvironmentImpl.MBeanRegistrar interface.
|
protected abstract void |
doRegisterMBean(Environment env) |
void |
doUnregister()
For EnvironmentImpl.MBeanRegistrar interface.
|
protected abstract javax.management.MBeanAttributeInfo[] |
getAttributeList()
Get attribute metadata for this MBean.
|
protected javax.management.MBeanConstructorInfo[] |
getConstructors()
Get constructor metadata for this MBean.
|
javax.management.MBeanInfo |
getMBeanInfo() |
protected javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Get notification metadata for this MBean.
|
protected StatsConfig |
getStatsConfig(java.lang.Object[] params)
Helper for creating a StatsConfig object to use as an operation
parameter.
|
protected abstract void |
initClassFields() |
protected void |
resetMBeanInfo()
Create the available management interface for this environment.
|
public static final javax.management.MBeanParameterInfo[] statParams
protected javax.management.MBeanServer server
protected javax.management.ObjectName jeName
protected java.lang.String className
protected java.lang.String DESCRIPTION
protected java.lang.Class<?> currentClass
protected Environment env
protected java.util.ArrayList<javax.management.MBeanOperationInfo> operationList
protected JEMBean(Environment env)
public JEMBean()
protected abstract void initClassFields()
protected void resetMBeanInfo()
protected abstract javax.management.MBeanAttributeInfo[] getAttributeList()
protected abstract void addOperations()
protected javax.management.MBeanConstructorInfo[] getConstructors()
protected javax.management.MBeanNotificationInfo[] getNotificationInfo()
public void doRegister(Environment env) throws java.lang.Exception
doRegister
in interface EnvironmentImpl.MBeanRegistrar
java.lang.Exception
protected abstract void doRegisterMBean(Environment env) throws java.lang.Exception
java.lang.Exception
public void doUnregister() throws java.lang.Exception
doUnregister
in interface EnvironmentImpl.MBeanRegistrar
java.lang.Exception
public javax.management.MBeanInfo getMBeanInfo()
Implement the getMBeanInfo method of DynamicMBean.
protected StatsConfig getStatsConfig(java.lang.Object[] params)
Copyright (c) 2004-2012 Oracle. All rights reserved.