public class BdbServerCache extends DefaultServerCache implements org.springframework.context.Lifecycle, Checkpointable
Modifier and Type | Field and Description |
---|---|
protected BdbModule |
bdb |
protected boolean |
isCheckpointRecovery |
protected boolean |
isRunning |
hosts, servers
Constructor and Description |
---|
BdbServerCache() |
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.
|
boolean |
isRunning() |
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 |
start() |
void |
startCheckpoint(Checkpoint checkpointInProgress)
Note a checkpoint is about to begin.
|
void |
stop() |
close, containsHost, containsServer, forAllHostsDo, getHostFor, getServerFor, hostKeys
getHostFor, getServerFor
protected BdbModule bdb
protected boolean isRunning
protected boolean isCheckpointRecovery
public void setBdbModule(BdbModule bdb)
public void start()
start
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
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.