public class CheckpointConfig extends Object
Constructor and Description |
---|
CheckpointConfig(String aChpFile,
String aFrequency)
Initilizes instance with a file where the checkpoint will be stored and checkpoint frequency.
|
Modifier and Type | Method and Description |
---|---|
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 boolean isCountBased()
public long getFrequency()
public boolean isMillis()
public boolean isMinutes()
public boolean isSeconds()
public boolean isTimeBased()
public String getCheckpointFile()
Copyright © 2016. All rights reserved.