public class BdbCookieStorage extends AbstractCookieStorage implements Checkpointable
Modifier and Type | Field and Description |
---|---|
protected BdbModule |
bdb |
static String |
COOKIEDB_NAME |
protected boolean |
isCheckpointRecovery
are we a checkpoint recovery? (in which case, reuse stored cookie data?)
|
cookiesLoadFile, cookiesSaveFile, isRunning
Constructor and Description |
---|
BdbCookieStorage() |
Modifier and Type | Method and Description |
---|---|
void |
doCheckpoint(Checkpoint checkpointInProgress)
Do the actual checkpoint.
|
void |
finishCheckpoint(Checkpoint checkpointInProgress)
Cleanup/unlock; need not complete for a checkpoint to be valid.
|
SortedMap<String,Cookie> |
getCookiesMap() |
protected void |
innerSaveCookiesMap(Map<String,Cookie> map) |
protected SortedMap<String,Cookie> |
prepareMap() |
void |
setBdbModule(BdbModule bdb) |
void |
setRecoveryCheckpoint(Checkpoint recoveryCheckpoint)
Used to inform a bean that it should restore its state from
the given Checkpoint when launched (Lifecycle start()).
|
void |
startCheckpoint(Checkpoint checkpointInProgress)
Note a checkpoint is about to begin.
|
close, getCookiesLoadFile, getCookiesSaveFile, isRunning, loadCookies, loadCookies, loadCookies, saveCookies, saveCookiesMap, setCookiesLoadFile, setCookiesSaveFile, start, stop
protected BdbModule bdb
protected boolean isCheckpointRecovery
public static String COOKIEDB_NAME
public void setBdbModule(BdbModule bdb)
protected SortedMap<String,Cookie> prepareMap()
prepareMap
in class AbstractCookieStorage
public SortedMap<String,Cookie> getCookiesMap()
getCookiesMap
in interface CookieStorage
getCookiesMap
in class AbstractCookieStorage
protected void innerSaveCookiesMap(Map<String,Cookie> map)
innerSaveCookiesMap
in class AbstractCookieStorage
public void startCheckpoint(Checkpoint checkpointInProgress)
Checkpointable
startCheckpoint
in interface Checkpointable
checkpointInProgress
- Checkpointpublic void doCheckpoint(Checkpoint checkpointInProgress) throws IOException
Checkpointable
doCheckpoint
in interface Checkpointable
checkpointInProgress
- CheckpointIOException
public void finishCheckpoint(Checkpoint checkpointInProgress)
Checkpointable
finishCheckpoint
in interface Checkpointable
checkpointInProgress
- Checkpointpublic void setRecoveryCheckpoint(Checkpoint recoveryCheckpoint)
Checkpointable
setRecoveryCheckpoint
in interface Checkpointable
recoveryCheckpoint
- CheckpointCopyright © 2003-2014 Internet Archive. All Rights Reserved.