com.amazon.carbonado.repo.sleepycat
Interface CheckpointCapability

All Superinterfaces:
Capability

public interface CheckpointCapability
extends Capability

Capability to control BDB checkpointing.

Author:
Brian S O'Neill
See Also:
HotBackupCapability

Method Summary
 void forceCheckpoint()
          Forces a checkpoint to run now, even if checkpointer is suspended or disabled.
 void resumeCheckpointer()
          Resumes the checkpointer if it was suspended.
 void suspendCheckpointer(long suspensionTime)
          Suspend the checkpointer until the suspension time has expired or until manually resumed.
 

Method Detail

suspendCheckpointer

void suspendCheckpointer(long suspensionTime)
Suspend the checkpointer until the suspension time has expired or until manually resumed. If a checkpoint is in progress, this method will block until it is finished. If checkpointing is disabled, calling this method has no effect.

Calling this method repeatedly resets the suspension time. Each invocation of suspendCheckpointer is like a lease renewal or heartbeat.

Parameters:
suspensionTime - minimum length of suspension, in milliseconds, unless checkpointer is manually resumed

resumeCheckpointer

void resumeCheckpointer()
Resumes the checkpointer if it was suspended. If checkpointing is disabled or if not suspended, calling this method has no effect.


forceCheckpoint

void forceCheckpoint()
                     throws PersistException
Forces a checkpoint to run now, even if checkpointer is suspended or disabled. If a checkpoint is in progress, then this method will block until it is finished, and then run another checkpoint. This method does not return until the requested checkpoint has finished.

Throws:
PersistDeniedException - if disabled during a hot backup
PersistException


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.