| Constructor and Description |
|---|
Checkpoint(BaseCPMImpl aCpm,
String aFilename,
long aCheckpointFrequency)
Initialize the checkpoint with a reference to controlling cpe, the file where the checkpoint is
to be stored, and the frequency of checkpoints.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes checkpoint file from the filesystem.
|
void |
doCheckpoint()
Serializes checkpoint information to disk.
|
boolean |
exists()
Returns true if configured checkpoinjt file exists on disk.
|
void |
pause()
Pauses checkpoint thread.
|
static void |
printEveList(List lst,
int tCnt)
Prints the list of Process Events in the order that they were produced.
|
static void |
printStats(org.apache.uima.util.ProcessTrace prT)
Prints the stats.
|
void |
rename(String aFilename)
Renames previous checkpoint file.
|
Object |
restoreFromCheckpoint()
Retrieves the checkpoint from the filesystem.
|
void |
resume()
Resumes checkpoint thread.
|
void |
run()
Starts the checkpoint thread and runs until the cpe tells it to stop.
|
void |
start()
Start the thread.
|
void |
stop()
Stops the checkpoint thread.
|
public Checkpoint(BaseCPMImpl aCpm, String aFilename, long aCheckpointFrequency)
aCpm - the a cpmaFilename - the a filenameaCheckpointFrequency - the a checkpoint frequencypublic void start()
public void stop()
public void run()
public void delete()
public void pause()
public void resume()
public void doCheckpoint()
public void rename(String aFilename)
aFilename - -
checkpoint file to renamepublic static void printStats(org.apache.uima.util.ProcessTrace prT)
prT - the pr Tpublic static void printEveList(List lst, int tCnt)
lst - List of ProcessEventtCnt - depth of this List in the Process Trace hierarchypublic boolean exists()
public Object restoreFromCheckpoint() throws IOException
IOException - -Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.