Package org.jppf.execute
Class ExecutionInfo
java.lang.Object
org.jppf.execute.ExecutionInfo
- All Implemented Interfaces:
Serializable
Instances of this class hold statistics about the execution of a tasks bundle.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-arg constructor.ExecutionInfo(long cpuTime, long userTime) Default no-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(ExecutionInfo other) Add the times of another instance to this one.subtract(ExecutionInfo other) Subtract the times of another instance from this one.
-
Field Details
-
cpuTime
public long cpuTimeTotal cpu time used by the tasks. -
userTime
public long userTimeTotal user time used by the tasks.
-
-
Constructor Details
-
ExecutionInfo
public ExecutionInfo()Default no-arg constructor. -
ExecutionInfo
public ExecutionInfo(long cpuTime, long userTime) Default no-args constructor.- Parameters:
cpuTime- total cpu time used by the tasks.userTime- total user time used by the tasks.
-
-
Method Details
-
add
Add the times of another instance to this one.- Parameters:
other- the other execution info object from which to add the values.- Returns:
- this execution info.
-
subtract
Subtract the times of another instance from this one.- Parameters:
other- the other execution info object from which to subtract the values.- Returns:
- this execution info.
-