|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.collection.impl.cpm.Checkpoint
public class Checkpoint
Runing in a seperate thread creates a checkpoint file at predefined intervals.
Constructor Summary | |
---|---|
Checkpoint(BaseCPMImpl aCpm,
java.lang.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. |
Method Summary | |
---|---|
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(java.util.List lst,
int tCnt)
Prints the list of Process Events in the order that they were produced. |
static void |
printStats(ProcessTrace prT)
|
void |
rename(java.lang.String aFilename)
Renames previous checkpoint file. |
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Checkpoint(BaseCPMImpl aCpm, java.lang.String aFilename, long aCheckpointFrequency)
aCpm
- aFilename
- aCheckpointFrequency
- Method Detail |
---|
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
public void delete()
public void pause()
public void resume()
public void doCheckpoint()
public void rename(java.lang.String aFilename)
aFilename
- -
checkpoint file to renamepublic static void printStats(ProcessTrace prT)
public static void printEveList(java.util.List lst, int tCnt)
lst
- List of ProcessEventtCnt
- depth of this List in the Process Trace hierarchypublic boolean exists()
public java.lang.Object restoreFromCheckpoint() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |