Class ExecutionInfo

java.lang.Object
org.jppf.execute.ExecutionInfo
All Implemented Interfaces:
Serializable

public class ExecutionInfo extends Object implements Serializable
Instances of this class hold statistics about the execution of a tasks bundle.
Author:
Laurent Cohen
See Also:
  • Field Details

    • cpuTime

      public long cpuTime
      Total cpu time used by the tasks.
    • userTime

      public long userTime
      Total 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

      public ExecutionInfo add(ExecutionInfo other)
      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

      public ExecutionInfo subtract(ExecutionInfo other)
      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.