|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodContextMonitorMBean
Monitors Windchill method server method contexts.
Supported API: true
Extendable: true
| Field Summary | |
|---|---|
static String |
MAX_ACTIVE_CONTEXTS_NOTIF_TYPE
Type of notification produced when MaxAverageActiveContextsThreshold is exceeded Supported API: true |
| Method Summary | |
|---|---|
long |
captureActiveContext(String contextId)
Creates a set of MBeans containing only the context with the specified id, if it is active, and returns the set's id; if no such context is active, -1 is returned Supported API: true |
long |
captureActiveContexts()
Creates a set of MBeans representing all contexts currently being processed and returns its id Supported API: true |
AttributeList[] |
getActiveContextAttributes(String[] attributeNames)
Returns array of AttributeLists, one for each active context. |
int |
getActiveContexts()
Number of contexts currently being processed Supported API: true |
String |
getContextLoggerFormatString()
Low-level (java.util.Formatter) context log format string; if specified, overrides ContextLoggerUseShortFormat and ContextLoggerSeparatorString Supported API: true |
String |
getContextLoggerLevel()
Context logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified) Supported API: true |
String |
getContextLoggerName()
Name of context logger Supported API: true |
String |
getContextLoggerOutputAttributes()
List of ContextMBean attributes to be output to context log Supported API: true |
String[] |
getContextLoggerOutputAttributesSupported()
List of attributes supported for use in ContextLoggerOutputAttributes Supported API: true |
String |
getContextLoggerSeparatorString()
Item separator string used in context log format Supported API: true |
int |
getDatabaseConnections()
Number of database connections open Supported API: true |
int |
getMaxAverageActiveContextsThreshold()
Maximum average context concurrency before log messages become warnings and notifications are sent when this statistic is maintained for a summary interval; threshold disabled when zero or megative Supported API: true |
CompositeData |
getObjectCounterData()
Data about WTObject allocation (no data will be collected unless ObjectCounterEnabled is true) Supported API: true |
boolean |
getObjectCounterEnabled()
Whether WTObject allocation counting is enabled Supported API: true |
void |
interrupt(String contextId)
If specified context exists and is not completed, interrupts its thread. |
boolean |
isContextLoggerUseShortFormat()
Whether short format (which contains only attribute values, not names) is used for context logging Supported API: true |
boolean |
isContextRegistrationEnabled()
Whether contexts are automatically registered and deregistered as JMX MBeans as they are received and completed; enabling this can adversely affect performance Supported API: true |
boolean |
isProcessCpuTimeMonitoringEnabled()
Whether monitoring of overall process CPU time is enabled for this MBean; if not, then MethodContextMBean's ProcessPercentageOfTotalCpuTime and PercentageOfProcessCpuTime attributes will not have meaningful values, but this monitoring has somewhat substantive overhead Supported API: true |
void |
releaseCapturedContexts()
Releases all ContextSets and the context MBeans they contain Supported API: true |
void |
releaseCapturedContextSet(long captureSetId)
Releases a set of MBeans previously captured with captureActiveContexts() Supported API: true |
void |
setContextLoggerFormatString(String contextLoggerFormatString)
Low-level (java.util.Formatter) context log format string; if specified, overrides ContextLoggerUseShortFormat and ContextLoggerSeparatorString Supported API: true |
void |
setContextLoggerLevel(String level)
Context logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified) Supported API: true |
void |
setContextLoggerOutputAttributes(String contextLoggerOutputAttributes)
List of ContextMBean attributes to be output to context log Supported API: true |
void |
setContextLoggerSeparatorString(String contextLoggerSeparatorString)
Item separator string used in context log format Supported API: true |
void |
setContextLoggerUseShortFormat(boolean contextLoggerUseShortFormat)
Whether short format (which contains only attribute values, not names) is used for context logging Supported API: true |
void |
setContextRegistrationEnabled(boolean contextRegistrationEnabled)
Whether contexts are automatically registered and deregistered as JMX MBeans as they are received and completed; enabling this can adversely affect performance Supported API: true |
void |
setMaxAverageActiveContextsThreshold(int maxAverageActiveContextThreshold)
Maximum average context concurrency before log messages become warnings and notifications are sent when this statistic is maintained for a summary interval; threshold disabled when zero or megative Supported API: true |
void |
setObjectCounterEnabled(boolean objectCounterEnabled)
Whether WTObject allocation counting is enabled Supported API: true |
void |
setProcessCpuTimeMonitoringEnabled(boolean processCpuTimeMonitoringEnabled)
Whether monitoring of overall process CPU time is enabled for this MBean; if not, then MethodContextMBean's ProcessPercentageOfTotalCpuTime and PercentageOfProcessCpuTime attributes will not have meaningful values, but this monitoring has somewhat substantive overhead Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Methods inherited from interface wt.jmx.core.mbeans.RawStatisticsProviderMBean |
|---|
getRawStatistics |
| Field Detail |
|---|
static final String MAX_ACTIVE_CONTEXTS_NOTIF_TYPE
| Method Detail |
|---|
int getActiveContexts()
int getDatabaseConnections()
int getMaxAverageActiveContextsThreshold()
void setMaxAverageActiveContextsThreshold(int maxAverageActiveContextThreshold)
String getContextLoggerName()
String getContextLoggerLevel()
void setContextLoggerLevel(String level)
String getContextLoggerOutputAttributes()
void setContextLoggerOutputAttributes(String contextLoggerOutputAttributes)
String[] getContextLoggerOutputAttributesSupported()
boolean isContextLoggerUseShortFormat()
void setContextLoggerUseShortFormat(boolean contextLoggerUseShortFormat)
String getContextLoggerSeparatorString()
void setContextLoggerSeparatorString(String contextLoggerSeparatorString)
String getContextLoggerFormatString()
void setContextLoggerFormatString(String contextLoggerFormatString)
boolean isContextRegistrationEnabled()
void setContextRegistrationEnabled(boolean contextRegistrationEnabled)
boolean getObjectCounterEnabled()
void setObjectCounterEnabled(boolean objectCounterEnabled)
CompositeData getObjectCounterData()
throws OpenDataException
OpenDataExceptionboolean isProcessCpuTimeMonitoringEnabled()
void setProcessCpuTimeMonitoringEnabled(boolean processCpuTimeMonitoringEnabled)
void interrupt(String contextId)
contextId - Id of context to interruptlong captureActiveContext(String contextId)
contextId - Id of context to capturelong captureActiveContexts()
void releaseCapturedContexts()
void releaseCapturedContextSet(long captureSetId)
captureSetId - Id of set of contexts to release (as returned by captureActiveContexts())AttributeList[] getActiveContextAttributes(String[] attributeNames)
attributeNames - Names of JMX attributes (of wt.method.MethodContextMBean) to retrieve; null implies all attributes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||