Class CheckpointConfig
java.lang.Object
org.apache.uima.collection.impl.cpm.CheckpointConfig
Object containing checkpoint configuration.
-
Constructor Summary
ConstructorDescriptionCheckpointConfig
(String aChpFile, String aFrequency) Initializes instance with a file where the checkpoint will be stored and checkpoint frequency. -
Method Summary
Modifier and TypeMethodDescriptionReturns the path to a file containing checkpointlong
Returns checkpoint frequencyboolean
Returns true if frequency is count basedboolean
isMillis()
Returns checkpoint frequency resolution in millisboolean
Returns checkpoint frequency resolution in minutesboolean
Retusn checkpoint frequency in secondsboolean
Returns true if the checkpoint frequency is in terms of time
-
Constructor Details
-
CheckpointConfig
Initializes instance with a file where the checkpoint will be stored and checkpoint frequency.- Parameters:
aChpFile
- - path to the checkpoint fileaFrequency
- - frequency of checkpoints
-
-
Method Details
-
isCountBased
public boolean isCountBased()Returns true if frequency is count based- Returns:
- - true if count based frequency
-
getFrequency
public long getFrequency()Returns checkpoint frequency- Returns:
- - frequency of checkpoints
-
isMillis
public boolean isMillis()Returns checkpoint frequency resolution in millis- Returns:
- - frequency in millis
-
isMinutes
public boolean isMinutes()Returns checkpoint frequency resolution in minutes- Returns:
- - frequency in minutes
-
isSeconds
public boolean isSeconds()Retusn checkpoint frequency in seconds- Returns:
- - frequency in seconds
-
isTimeBased
public boolean isTimeBased()Returns true if the checkpoint frequency is in terms of time- Returns:
- - true if time based frequency
-
getCheckpointFile
Returns the path to a file containing checkpoint- Returns:
- - file path
-