Class CheckpointData

java.lang.Object
org.apache.uima.collection.impl.cpm.CheckpointData
All Implemented Interfaces:
Serializable

public class CheckpointData extends Object implements Serializable
Serializable containing the checkpoint. The checkpoint contains both ProcessTrace and SynchPoint objects. It is serialized to file system by Checkpoint thread at predefined intervals.
See Also:
  • Constructor Details

    • CheckpointData

      public CheckpointData()
    • CheckpointData

      public CheckpointData(ProcessTrace aProcessTrace)
    • CheckpointData

      public CheckpointData(ProcessTrace aProcessTrace, SynchPoint aSynchPoint)
      Initialize instance with ProcessTrace and SynchPoint
      Parameters:
      aProcessTrace - - events and timers accumulated so far
      aSynchPoint - -
  • Method Details

    • getProcessTrace

      public ProcessTrace getProcessTrace()
      Returns current ProcessTrace object
      Returns:
      - ProcessTrace object
    • getSynchPoint

      public SynchPoint getSynchPoint()
      Returns current SynchPoint object
      Returns:
      - SynchPoint object
    • setProcessTrace

      public void setProcessTrace(ProcessTrace trace)
      Adds ProcessTrace to save in a checkpoint
      Parameters:
      trace - - ProcessTrace to save
    • setSynchPoint

      public void setSynchPoint(SynchPoint point)
      Adds SynchPoint to save in a checkpoint
      Parameters:
      point - - SynchPoint to save