public interface ConfigMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
LEGACY_OBJECT_NAME |
static String |
OBJECT_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
debugInfo()
Get latest debug information if debugging is switched on.
|
int |
getHistoryMaxEntries()
Number of global limit for history entries.
|
int |
getHistorySize()
Get the size in bytes which the history mechanism requires in total if serialized.
|
int |
getMaxDebugEntries()
Number of debug entries to remember
|
boolean |
isDebug()
Check, whether debugging is switched on
|
void |
resetDebugInfo()
Reset all debug information stored internally
|
void |
resetHistoryEntries()
Remove all history entries and switch off history tracking globally.
|
void |
setDebug(boolean pSwitch)
Set debugging to given state
|
void |
setHistoryEntriesForAttribute(String pMBean,
String pAttribute,
String pPath,
String pTarget,
int pMaxEntries)
|
void |
setHistoryEntriesForOperation(String pMBean,
String pOperation,
String pTarget,
int pMaxEntries)
Deprecated.
|
void |
setHistoryLimitForAttribute(String pMBean,
String pAttribute,
String pPath,
String pTarget,
int pMaxEntries,
long pMaxDuration)
Switch on history tracking for a specific attribute.
|
void |
setHistoryLimitForOperation(String pMBean,
String pOperation,
String pTarget,
int pMaxEntries,
long pMaxDuration)
Switch on history tracking for an operation.
|
void |
setHistoryMaxEntries(int pLimit)
Set the global history limit
|
void |
setMaxDebugEntries(int pNumber)
Set the number of debugging info to remember
|
static final String OBJECT_NAME
static final String LEGACY_OBJECT_NAME
void setHistoryEntriesForAttribute(String pMBean, String pAttribute, String pPath, String pTarget, int pMaxEntries) throws MalformedObjectNameException
setHistoryLimitForAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, long) insteadpMaxEntries is 0
history tracking is switched off.pMBean - MBean object namepAttribute - attribute namepPath - inner path (optional)pTarget - remote target or null for a local mbeanpMaxEntries - max last entries to remember, if 0 history tracking is switched off.MalformedObjectNameException - if the given name is not proper object namevoid setHistoryLimitForAttribute(String pMBean, String pAttribute, String pPath, String pTarget, int pMaxEntries, long pMaxDuration) throws MalformedObjectNameException
pMaxEntries and pMaxDuration is
0 then history tracking is switched off.
If either pMaxEntries or pMaxDuration 0, then the given limit applies. If both are != 0,
then both limits are applied simultaneously.pMBean - MBean object namepAttribute - attribute namepPath - inner path (optional)pTarget - remote target or null for a local mbeanpMaxEntries - max last entries to remember, if 0 history tracking is switched off.pMaxDuration - maximum duration the maximum duration for how long to keep a value (in seconds)MalformedObjectNameException - if the given name is not proper object namevoid setHistoryEntriesForOperation(String pMBean, String pOperation, String pTarget, int pMaxEntries) throws MalformedObjectNameException
setHistoryLimitForOperation(java.lang.String, java.lang.String, java.lang.String, int, long) insteadpMaxEntries is 0
history tracking is switched off. The return value of the operation will be tracked.pMBean - MBean object namepOperation - operation to trackpTarget - remote target or null for a loal mbeanpMaxEntries - max last entries to remember, if 0 history tracking is switched off.MalformedObjectNameExceptionvoid setHistoryLimitForOperation(String pMBean, String pOperation, String pTarget, int pMaxEntries, long pMaxDuration) throws MalformedObjectNameException
pMaxEntries and pMaxDuration is 0
history tracking is switched off. The return value of the operation will be tracked.
If either pMaxEntries or pMaxDuration 0, then the given limit applies. If both are != 0,
then both limits are applied simultaneously.pMBean - MBean object namepOperation - operation to trackpTarget - remote target or null for a loal mbeanpMaxEntries - max last entries to remember, if 0 history tracking is switched off.pMaxDuration - maximum duration the maximum duration for how long to keep a value (in seconds)MalformedObjectNameExceptionvoid resetHistoryEntries()
String debugInfo()
getMaxDebugEntries() lines.void resetDebugInfo()
int getHistorySize()
throws IOException
IOException - if serialization (which is required for the size determination) fails.int getHistoryMaxEntries()
setHistoryLimitForAttribute(String, String, String, String, int, long)
the pMaxEntries is set larger than this limit, the global limit will be taken}void setHistoryMaxEntries(int pLimit)
pLimit - limit to setboolean isDebug()
void setDebug(boolean pSwitch)
pSwitch - true, if debugging should be switched on, false otherwiseint getMaxDebugEntries()
void setMaxDebugEntries(int pNumber)
pNumber - entries to setCopyright © 2019. All rights reserved.