Class CheckpointData
java.lang.Object
org.apache.uima.collection.impl.cpm.CheckpointData
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionCheckpointData
(ProcessTrace aProcessTrace) CheckpointData
(ProcessTrace aProcessTrace, SynchPoint aSynchPoint) Initialize instance with ProcessTrace and SynchPoint -
Method Summary
Modifier and TypeMethodDescriptionReturns current ProcessTrace objectReturns current SynchPoint objectvoid
setProcessTrace
(ProcessTrace trace) Adds ProcessTrace to save in a checkpointvoid
setSynchPoint
(SynchPoint point) Adds SynchPoint to save in a checkpoint
-
Constructor Details
-
CheckpointData
public CheckpointData() -
CheckpointData
-
CheckpointData
Initialize instance with ProcessTrace and SynchPoint- Parameters:
aProcessTrace
- - events and timers accumulated so faraSynchPoint
- -
-
-
Method Details
-
getProcessTrace
Returns current ProcessTrace object- Returns:
- - ProcessTrace object
-
getSynchPoint
Returns current SynchPoint object- Returns:
- - SynchPoint object
-
setProcessTrace
Adds ProcessTrace to save in a checkpoint- Parameters:
trace
- - ProcessTrace to save
-
setSynchPoint
Adds SynchPoint to save in a checkpoint- Parameters:
point
- - SynchPoint to save
-