Package wt.method
Interface MethodContextMBean
public interface MethodContextMBean
Detailed information related to a method server request context.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionString[]Returns detailed information on the thread running this context (returns null after request has completed)
Supported API: truevoidemailStackTrace(String addressesOrEmailList, String subject) E-mails detailed information on the thread running this context (only functions until context is completed)
Supported API: trueExtra detail on method context beyond target class and method (e.g.String[]getArgs()Arguments provided to TargetMethod
Supported API: trueString[]Types of arguments associated with TargetMethod
Supported API: truedoubleAverage contexts active during lifespan of this context
Supported API: truelongNumber of times context thread was in BLOCKED state
Supported API: truedoubleApproximate time context thread was in BLOCKED state; 0 unless thread contention monitoring is enabled
Supported API: trueInformation on call (to another server process, for example) that this context is currently waiting upon, when the call has been specifically instrumented to register this (which is most often not the case)
Supported API: truelongEstimated number of bytes allocated within the method context; -1 when this information is not available
Supported API: trueHost from which RMI request came in the case of a RMI request
Supported API: truelongNumber of CORBA calls invoked.JDBC database session ID currently in being used.doubleTotal time spent (in seconds) to process CORBA calls.doubleTime spent executing in method context
Supported API: truedoubleTotal time spent (in seconds) to process JBC calls.doubleTotal time spent (in seconds) to process JNDI calls.doubleTime spent marshaling results (RMI case only)
Supported API: truedoubleTotal time spent (in seconds) performing remote cache calls.doubleOverall CPU time spent in context
Supported API: truedoubleTotal time spent in context
Supported API: truedoubleUser CPU time spent in context
Supported API: truedoubleTime spent (in seconds) unmarshaling arguments (RMI case only)
Supported API: trueClass name of exception thrown by context
Supported API: trueMessage of exception thrown by context
Supported API: trueString[]Stack trace of exception thrown by context
Supported API: truePhase of execution method context is currently in
Supported API: truegetId()Id of method context
Supported API: trueId of the most recently associated IeContext, if one exists; -1 otherwise
Supported API: trueString[]Array of associated IeContext Ids, if they exists
Supported API: truedoubleTime spent (in seconds) waiting to acquire a JDBC connection.String[]List of JDBC database session IDs used.longTotal number of JDBC query calls.longNumber of JNDI calls invoked.Data about WTObject allocation associated with this context; no data will be collected unless MethodContextMonitorMBean's ObjectCounterEnabled attribute is true
Supported API: trueId of parent method context
Supported API: truedoublePercentage of total time spent processing CORBA calls.doublePercentage of total time spent processing JDBC calls.doublePercentage of total time spent waiting to acquire a JDBC connection.doublePercentage of total time spent processing JNDI calls.doublePercentage of total time spent performing remote cache calls.doubleRequest CPU time as a percent of method server process during lifespan of this context; only meaningful if MethodContextMonitorMBean's ProcessCpuTimeMonitoringEnabled attribute is true
Supported API: truedoubleContext CPU time as a percent of overall during lifespan of this context
Supported API: truedoubleMethod server process CPU time as a percent of overall during lifespan of this context; only meaningful if MethodContextMonitorMBean's ProcessCpuTimeMonitoringEnabled attribute is true
Supported API: trueintNumber of times context has been redirected
Supported API: trueIP address of remote client, if known
Supported API: trueInformation on remote cache server calls made within this context; only available if DetailedRemoteCacheCallTracking is true on MethodContextMonitor MBean
Supported API: trueString[]Information on remote cache server calls made within this context; only available if DetailedRemoteCacheCallTracking is true on MethodContextMonitor MBean
Supported API: truelongNumber of remote cache calls invoked.Classname of result
Supported API: trueId of associated servlet request, if known
Supported API: trueId of SessionContext associated with method context
Supported API: trueString[]Detailed information on the thread running this context (returns null after request has completed)
Supported API: trueTime method context started
Supported API: trueCombination of target class and method, where available, and AccessLogDetail
Supported API: trueTarget class of method context
Supported API: trueTarget method of method context
Supported API: truelongId of thread last associated with method context
Supported API: trueName of thread last associated with method context
Supported API: trueName of user method context is operating on behalf of
Supported API: truelongNumber of times context thread was in WAITING or TIMED_WAITING state
Supported API: truedoubleApproximate time context thread was in WAITING or TIMED_WAITING state; 0 unless thread contention monitoring is enabled
Supported API: truelongCount of WTObjects created by this context; no data will be collected unless MethodContextMonitorMBean's ObjectCounterEnabled attribute is true and if there is no data this attribute's value will be -1
Supported API: truelongCount of WTObjects created by this context which have been finalized; no data will be collected unless MethodContextMonitorMBean's ObjectCounterEnabled attribute is true and if there is no data this attribute's value will be -1
Supported API: truevoidIf the method context is not completed, interrupts its thread
Supported API: truebooleanWhether method context has completed
Supported API: truebooleanisError()Whether an exception (other than an AuthenticationException) occurred in this context
Supported API: truebooleanWhether method context has been (or is being) redirected
Supported API: truebooleanWhether method context is directly due to an RMI call
Supported API: true
-
Method Details
-
getId
String getId()Id of method context
Supported API: true -
getParentId
String getParentId()Id of parent method context
Supported API: true -
getThreadId
long getThreadId()Id of thread last associated with method context
Supported API: true -
getThreadName
String getThreadName()Name of thread last associated with method context
Supported API: true -
getSessionId
String getSessionId()Id of SessionContext associated with method context
Supported API: true -
getUserName
String getUserName()Name of user method context is operating on behalf of
Supported API: true -
getTargetClass
String getTargetClass()Target class of method context
Supported API: true -
getTargetMethod
String getTargetMethod()Target method of method context
Supported API: true -
getResultClass
String getResultClass()Classname of result
Supported API: true -
getSynopsis
String getSynopsis()Combination of target class and method, where available, and AccessLogDetail
Supported API: true -
getAccessLogDetail
String getAccessLogDetail()Extra detail on method context beyond target class and method (e.g. path info, command delegate, or the like)
Supported API: true -
getRedirects
int getRedirects()Number of times context has been redirected
Supported API: true -
isRMICall
boolean isRMICall()Whether method context is directly due to an RMI call
Supported API: true -
getArgTypes
String[] getArgTypes()Types of arguments associated with TargetMethod
Supported API: true -
getArgs
String[] getArgs()Arguments provided to TargetMethod
Supported API: true -
getIeContextId
String getIeContextId()Id of the most recently associated IeContext, if one exists; -1 otherwise
Supported API: true -
getIeContextIds
String[] getIeContextIds()Array of associated IeContext Ids, if they exists
Supported API: true -
getServletRequestId
String getServletRequestId()Id of associated servlet request, if known
Supported API: true -
getRemoteAddr
String getRemoteAddr()IP address of remote client, if known
Supported API: true -
getClientHost
String getClientHost()Host from which RMI request came in the case of a RMI request
Supported API: true -
getStartTime
Timestamp getStartTime()Time method context started
Supported API: true -
isCompleted
boolean isCompleted()Whether method context has completed
Supported API: true -
isRedirected
boolean isRedirected()Whether method context has been (or is being) redirected
Supported API: true -
getExecutionPhase
String getExecutionPhase()Phase of execution method context is currently in
Supported API: true -
getElapsedUnmarshalSeconds
double getElapsedUnmarshalSeconds()Time spent (in seconds) unmarshaling arguments (RMI case only)
Supported API: true -
getElapsedExecutionSeconds
double getElapsedExecutionSeconds()Time spent executing in method context
Supported API: true -
getElapsedMarshalSeconds
double getElapsedMarshalSeconds()Time spent marshaling results (RMI case only)
Supported API: true -
getElapsedTotalSeconds
double getElapsedTotalSeconds()Total time spent in context
Supported API: true -
getElapsedTotalCpuSeconds
double getElapsedTotalCpuSeconds()Overall CPU time spent in context
Supported API: true -
getElapsedTotalUserSeconds
double getElapsedTotalUserSeconds()User CPU time spent in context
Supported API: true -
getBlockedCount
long getBlockedCount()Number of times context thread was in BLOCKED state
Supported API: true -
getBlockedSeconds
double getBlockedSeconds()Approximate time context thread was in BLOCKED state; 0 unless thread contention monitoring is enabled
Supported API: true -
getWaitedCount
long getWaitedCount()Number of times context thread was in WAITING or TIMED_WAITING state
Supported API: true -
getWaitedSeconds
double getWaitedSeconds()Approximate time context thread was in WAITING or TIMED_WAITING state; 0 unless thread contention monitoring is enabled
Supported API: true -
getBytesAllocated
long getBytesAllocated()Estimated number of bytes allocated within the method context; -1 when this information is not available
Supported API: true -
getPercentageOfTotalCpuTime
double getPercentageOfTotalCpuTime()Context CPU time as a percent of overall during lifespan of this context
Supported API: true -
getProcessPercentageOfTotalCpuTime
double getProcessPercentageOfTotalCpuTime()Method server process CPU time as a percent of overall during lifespan of this context; only meaningful if MethodContextMonitorMBean's ProcessCpuTimeMonitoringEnabled attribute is true
Supported API: true -
getPercentageOfProcessCpuTime
double getPercentageOfProcessCpuTime()Request CPU time as a percent of method server process during lifespan of this context; only meaningful if MethodContextMonitorMBean's ProcessCpuTimeMonitoringEnabled attribute is true
Supported API: true -
getAverageActiveContexts
double getAverageActiveContexts()Average contexts active during lifespan of this context
Supported API: true -
getRemoteCacheCalls
long getRemoteCacheCalls()Number of remote cache calls invoked.
Supported API: true -
getElapsedRemoteCacheSeconds
double getElapsedRemoteCacheSeconds()Total time spent (in seconds) performing remote cache calls.
Supported API: true -
getPercentageOfElapsedTimeInRemoteCaching
double getPercentageOfElapsedTimeInRemoteCaching()Percentage of total time spent performing remote cache calls.
Supported API: true -
getJNDICalls
long getJNDICalls()Number of JNDI calls invoked.
Supported API: true -
getElapsedJNDISeconds
double getElapsedJNDISeconds()Total time spent (in seconds) to process JNDI calls.
Supported API: true -
getPercentageOfElapsedTimeInJNDI
double getPercentageOfElapsedTimeInJNDI()Percentage of total time spent processing JNDI calls.
Supported API: true -
getJDBCQueryCalls
long getJDBCQueryCalls()Total number of JDBC query calls.
Supported API: true -
getElapsedJDBCSeconds
double getElapsedJDBCSeconds()Total time spent (in seconds) to process JBC calls.
Supported API: true -
getPercentageOfElapsedTimeInJDBC
double getPercentageOfElapsedTimeInJDBC()Percentage of total time spent processing JDBC calls.
Supported API: true -
getJDBCConnectionWaitTimeSeconds
double getJDBCConnectionWaitTimeSeconds()Time spent (in seconds) waiting to acquire a JDBC connection.
Supported API: true -
getPercentageOfElapsedTimeInJDBCConnWait
double getPercentageOfElapsedTimeInJDBCConnWait()Percentage of total time spent waiting to acquire a JDBC connection.
Supported API: true -
getJDBCDatabaseSessionIds
String[] getJDBCDatabaseSessionIds()List of JDBC database session IDs used.
Supported API: true -
getCurrentJDBCDatabaseSessionId
String getCurrentJDBCDatabaseSessionId()JDBC database session ID currently in being used.
Supported API: true -
getCORBACalls
long getCORBACalls()Number of CORBA calls invoked.
Supported API: true -
getElapsedCORBASeconds
double getElapsedCORBASeconds()Total time spent (in seconds) to process CORBA calls.
Supported API: true -
getPercentageOfElapsedTimeInCORBA
double getPercentageOfElapsedTimeInCORBA()Percentage of total time spent processing CORBA calls.
Supported API: true -
isError
boolean isError()Whether an exception (other than an AuthenticationException) occurred in this context
Supported API: true -
getExceptionClass
String getExceptionClass()Class name of exception thrown by context
Supported API: true -
getExceptionMessage
String getExceptionMessage()Message of exception thrown by context
Supported API: true -
getExceptionStackTrace
String[] getExceptionStackTrace()Stack trace of exception thrown by context
Supported API: true -
getWTObjectsConstructed
long getWTObjectsConstructed()Count of WTObjects created by this context; no data will be collected unless MethodContextMonitorMBean's ObjectCounterEnabled attribute is true and if there is no data this attribute's value will be -1
Supported API: true -
getWTObjectsFinalized
long getWTObjectsFinalized()Count of WTObjects created by this context which have been finalized; no data will be collected unless MethodContextMonitorMBean's ObjectCounterEnabled attribute is true and if there is no data this attribute's value will be -1
Supported API: true -
getObjectCounterData
Data about WTObject allocation associated with this context; no data will be collected unless MethodContextMonitorMBean's ObjectCounterEnabled attribute is true
Supported API: true- Throws:
OpenDataException
-
getBlockingCallInfo
Information on call (to another server process, for example) that this context is currently waiting upon, when the call has been specifically instrumented to register this (which is most often not the case)
Supported API: true- Throws:
OpenDataException
-
getStackTrace
String[] getStackTrace()Detailed information on the thread running this context (returns null after request has completed)
Supported API: true -
getRemoteCacheCallReport
String[] getRemoteCacheCallReport()Information on remote cache server calls made within this context; only available if DetailedRemoteCacheCallTracking is true on MethodContextMonitor MBean
Supported API: true -
getRemoteCacheCallData
Information on remote cache server calls made within this context; only available if DetailedRemoteCacheCallTracking is true on MethodContextMonitor MBean
Supported API: true- Throws:
OpenDataException
-
dumpStackTrace
Returns detailed information on the thread running this context (returns null after request has completed)
Supported API: true -
emailStackTrace
@MBeanOperationImpact(0) void emailStackTrace(String addressesOrEmailList, String subject) throws IOException, SAXException E-mails detailed information on the thread running this context (only functions until context is completed)
Supported API: true- Parameters:
addressesOrEmailList- Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject- Subject to give e-mail- Throws:
IOExceptionSAXException
-
interrupt
If the method context is not completed, interrupts its thread
Supported API: true
-