Package org.jppf.management
Interface JPPFNodeTaskMonitorMBean
- All Superinterfaces:
NotificationBroadcaster,NotificationEmitter
@MBeanNotif(description="notifications sent after or during the execution of each task",
notifClass=TaskExecutionNotification.class,
userDataType=java.lang.Object.class,
userDataDescritpion="any user-defined data that is sent along with the notification")
public interface JPPFNodeTaskMonitorMBean
extends NotificationEmitter
MBean interface for task-level monitoring on each node.
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe total cpu time used by the tasks in milliseconds.The total elapsed time used by the tasks in milliseconds.Get the total number of tasks executed by the node.The total number of tasks that ended in error.The total number of tasks that executed successfully.voidreset()Reset the statistics maintained by this MBean.Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
MBEAN_NAME
Name of the node's task monitor MBean.- See Also:
-
-
Method Details
-
getTotalTasksExecuted
Integer getTotalTasksExecuted()Get the total number of tasks executed by the node.- Returns:
- the number of tasks as an integer value.
-
getTotalTasksInError
Integer getTotalTasksInError()The total number of tasks that ended in error.- Returns:
- the number as an integer value.
-
getTotalTasksSucessfull
Integer getTotalTasksSucessfull()The total number of tasks that executed successfully.- Returns:
- the number as an integer value.
-
getTotalTaskCpuTime
Long getTotalTaskCpuTime()The total cpu time used by the tasks in milliseconds.- Returns:
- the cpu time as long value.
-
getTotalTaskElapsedTime
Long getTotalTaskElapsedTime()The total elapsed time used by the tasks in milliseconds.- Returns:
- the elapsed time as long value.
-
reset
void reset()Reset the statistics maintained by this MBean.
-