|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.jmx.JEMBeanHelper
com.sleepycat.je.jmx.JEMonitor and the example program jmx.JEApplicationMBean are two MBean implementations which provide support different application use cases. See those classes for examples of how to use JEMBeanHelper.
public class JEMBeanHelper
Field Summary | |
---|---|
static String |
ATT_CACHE_PERCENT
Deprecated. |
static String |
ATT_CACHE_SIZE
Deprecated. |
static String |
ATT_ENV_HOME
Deprecated. |
static String |
ATT_IS_READ_ONLY
Deprecated. |
static String |
ATT_IS_SERIALIZABLE
Deprecated. |
static String |
ATT_IS_TRANSACTIONAL
Deprecated. |
static String |
ATT_LOCK_TIMEOUT
Deprecated. |
static String |
ATT_OPEN
Deprecated. |
static String |
ATT_SET_READ_ONLY
Deprecated. |
static String |
ATT_SET_SERIALIZABLE
Deprecated. |
static String |
ATT_SET_TRANSACTIONAL
Deprecated. |
static String |
ATT_TXN_TIMEOUT
Deprecated. |
Constructor Summary | |
---|---|
JEMBeanHelper(File environmentHome,
boolean canConfigure)
Deprecated. Instantiate a helper, specifying environment home and open capabilities. |
Method Summary | |
---|---|
Object |
getAttribute(Environment targetEnv,
String attributeName)
Deprecated. Get an attribute value for the given environment. |
List<MBeanAttributeInfo> |
getAttributeList(Environment targetEnv)
Deprecated. Get MBean attribute metadata for this environment. |
File |
getEnvironmentHome()
Deprecated. Return the target environment directory. |
Environment |
getEnvironmentIfOpen()
Deprecated. Return an Environment only if the environment has already been opened in this process. |
EnvironmentConfig |
getEnvironmentOpenConfig()
Deprecated. If the helper was instantiated with canConfigure==true, it shows environment configuration attributes. |
boolean |
getNeedReset()
Deprecated. Tell the MBean if the available set of functionality has changed. |
MBeanNotificationInfo[] |
getNotificationInfo(Environment targetEnv)
Deprecated. No notifications are supported. |
List<MBeanOperationInfo> |
getOperationList(Environment targetEnv)
Deprecated. Get mbean operation metadata for this environment. |
Object |
invoke(Environment targetEnv,
String actionName,
Object[] params,
String[] signature)
Deprecated. Invoke an operation for the given environment. |
void |
setAttribute(Environment targetEnv,
Attribute attribute)
Deprecated. Set an attribute value for the given environment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATT_ENV_HOME
public static final String ATT_OPEN
public static final String ATT_IS_READ_ONLY
public static final String ATT_IS_TRANSACTIONAL
public static final String ATT_CACHE_SIZE
public static final String ATT_CACHE_PERCENT
public static final String ATT_LOCK_TIMEOUT
public static final String ATT_IS_SERIALIZABLE
public static final String ATT_TXN_TIMEOUT
public static final String ATT_SET_READ_ONLY
public static final String ATT_SET_TRANSACTIONAL
public static final String ATT_SET_SERIALIZABLE
Constructor Detail |
---|
public JEMBeanHelper(File environmentHome, boolean canConfigure)
environmentHome
- home directory of the target JE environment.canConfigure
- If true, the helper will show environment
configuration attributes.Method Detail |
---|
public File getEnvironmentHome()
public EnvironmentConfig getEnvironmentOpenConfig()
public Environment getEnvironmentIfOpen()
public boolean getNeedReset()
public List<MBeanAttributeInfo> getAttributeList(Environment targetEnv)
targetEnv
- The target JE environment. May be null if the
environment is not open.
public Object getAttribute(Environment targetEnv, String attributeName) throws AttributeNotFoundException, MBeanException
targetEnv
- The target JE environment. May be null if the
environment is not open.attributeName
- attribute name.
AttributeNotFoundException
MBeanException
public void setAttribute(Environment targetEnv, Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException
targetEnv
- The target JE environment. May be null if the
environment is not open.attribute
- name/value pair
AttributeNotFoundException
InvalidAttributeValueException
public List<MBeanOperationInfo> getOperationList(Environment targetEnv)
targetEnv
- The target JE environment. May be null if the
environment is not open.
public Object invoke(Environment targetEnv, String actionName, Object[] params, String[] signature) throws MBeanException
targetEnv
- The target JE environment. May be null if the
environment is not open.actionName
- operation name.params
- operation parameters. May be null.signature
- operation signature. May be null.
MBeanException
public MBeanNotificationInfo[] getNotificationInfo(Environment targetEnv)
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |