org.apache.uima.collection.impl.cpm
public class CheckpointConfig extends java.lang.Object
Constructor and Description |
---|
CheckpointConfig(java.lang.String aChpFile,
java.lang.String aFrequency)
Initilizes instance with a file where the checkpoint will be stored and checkpoint frequency.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCheckpointFile()
Returns the path to a file containing checkpoint
|
long |
getFrequency()
Returns checkpoint frequency
|
boolean |
isCountBased()
Returns true if frequency is count based
|
boolean |
isMillis()
Returns checkpoint frequency resolution in millis
|
boolean |
isMinutes()
Returns checkpoint frequency resolution in minutes
|
boolean |
isSeconds()
Retusn checkpoint frequency in seconds
|
boolean |
isTimeBased()
Returns true if the checkpoint frequency is in terms of time
|
public CheckpointConfig(java.lang.String aChpFile, java.lang.String aFrequency)
aChpFile
- -
path to the checkpoint fileaFrequency
- -
frequency of checkpointspublic boolean isCountBased()
public long getFrequency()
public boolean isMillis()
public boolean isMinutes()
public boolean isSeconds()
public boolean isTimeBased()
public java.lang.String getCheckpointFile()
Copyright © 2014. All Rights Reserved.