|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
com.sun.sgs.impl.profile.TaskAggregateStats
public class TaskAggregateStats
The central location to aggregate information on tasks run through the system. Only bounded transactions are aggregated. Successful transactions that take longer than the standard transaction timeout are typically used for application startup tasks, and are not included.
| Field Summary |
|---|
| Fields inherited from interface com.sun.sgs.management.TaskAggregateMXBean |
|---|
MXBEAN_NAME |
| Constructor Summary | |
|---|---|
TaskAggregateStats(ProfileCollector collector,
String name)
Creates an MXBean object for gathering task data in the system. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all data values. |
long |
getLastClearTime()
Returns the time of the last call to TaskAggregateMXBean.clear(), or the time
this MBean was created if clear has never been called. |
double |
getReadyCountAvg()
Returns the average number of tasks which are ready to run in the system. |
double |
getSmoothingFactor()
Returns the smoothing factor used for averages in this MBean. |
double |
getSuccessfulLagTimeAvg()
Returns the average lag time for successful tasks, in milliseconds. |
double |
getSuccessfulLatencyAvg()
Returns the average latency for successful tasks, in milliseconds. |
double |
getSuccessfulRuntimeAvg()
Returns the average runtime for successful tasks, in milliseconds. |
long |
getSuccessfulRuntimeMax()
Returns the maximum runtime for successful tasks, in milliseconds. |
long |
getTaskCount()
Returns the total number of tasks run. |
long |
getTaskFailureCount()
Returns the total number of tasks which failed. |
double |
getTaskFailurePercentage()
Returns the percentage of failed tasks to total tasks. |
long |
getTransactionalTaskCount()
Returns the total number of transactional tasks run. |
(package private) void |
notifyTaskQueue()
Send a notification that the task queue is falling behind. |
void |
setSmoothingFactor(double newFactor)
Set the smoothing factor for all averages in this MBean, between 0.0 and 1.0, inclusive. |
(package private) void |
taskFinishedCommon(boolean trans,
long ready)
|
(package private) void |
taskFinishedFail(boolean trans,
long ready)
|
(package private) void |
taskFinishedSuccess(boolean trans,
long ready,
long run,
long lag)
|
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
TaskAggregateStats(ProfileCollector collector,
String name)
collector - the system profile collectorname - the name of the profile consumer created to support this
object| Method Detail |
|---|
void notifyTaskQueue()
public long getTaskCount()
getTaskCount in interface TaskAggregateMXBeanpublic long getTransactionalTaskCount()
getTransactionalTaskCount in interface TaskAggregateMXBeanpublic long getTaskFailureCount()
getTaskFailureCount in interface TaskAggregateMXBeanpublic double getSmoothingFactor()
getSmoothingFactor in interface TaskAggregateMXBeanpublic void setSmoothingFactor(double newFactor)
0.0 and 1.0, inclusive. A value closer to 1.0
provides less smoothing of the data, and more weight to recent data; a
value closer to 0.0 provides more smoothing but is less
responsive to recent changes.
setSmoothingFactor in interface TaskAggregateMXBeannewFactor - the new smoothing factorpublic long getSuccessfulRuntimeMax()
getSuccessfulRuntimeMax in interface TaskAggregateMXBeanpublic double getSuccessfulRuntimeAvg()
getSuccessfulRuntimeAvg in interface TaskAggregateMXBeanpublic double getTaskFailurePercentage()
getTaskFailurePercentage in interface TaskAggregateMXBeanpublic double getReadyCountAvg()
getReadyCountAvg in interface TaskAggregateMXBeanpublic double getSuccessfulLagTimeAvg()
getSuccessfulLagTimeAvg in interface TaskAggregateMXBeanpublic double getSuccessfulLatencyAvg()
getSuccessfulLatencyAvg in interface TaskAggregateMXBeanpublic void clear()
clear in interface TaskAggregateMXBeanpublic long getLastClearTime()
TaskAggregateMXBean.clear(), or the time
this MBean was created if clear has never been called. The
time is the difference, measured in milliseconds, between the time at
which this was last cleared and midnight, January 1, 1970 UTC.
getLastClearTime in interface TaskAggregateMXBeanclear
void taskFinishedSuccess(boolean trans,
long ready,
long run,
long lag)
void taskFinishedFail(boolean trans,
long ready)
void taskFinishedCommon(boolean trans,
long ready)
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||