Berkeley DB Java Edition
version 1.5.1

com.sleepycat.je
Class CheckpointConfig

java.lang.Object
  |
  +--com.sleepycat.je.CheckpointConfig

public class CheckpointConfig
extends Object

Specifies the attributes of an application invoked checkpoint operation.


Constructor Summary
CheckpointConfig()
          An instance created using the default constructor is initialized with the system's default settings.
 
Method Summary
 boolean getForce()
          Return the configuration of the checkpoint force option.
 int getKBytes()
          Return the checkpoint log data threshold, in kilobytes.
 int getMinutes()
          Return the checkpoint time threshold, in minutes.
 void setForce(boolean force)
          Configure the checkpoint force option.
 void setKBytes(int kbytes)
          Configure the checkpoint log data threshold, in kilobytes.
 void setMinutes(int minutes)
          Configure the checkpoint time threshold, in minutes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckpointConfig

public CheckpointConfig()
An instance created using the default constructor is initialized with the system's default settings.

Method Detail

setKBytes

public void setKBytes(int kbytes)
Configure the checkpoint log data threshold, in kilobytes.

Parameters:
kbytes - If more than kbytes of log data have been written since the last checkpoint, a checkpoint will be performed.

The default is 0 for this class and the database environment.


getKBytes

public int getKBytes()
Return the checkpoint log data threshold, in kilobytes.

Returns:
The checkpoint log data threshold, in kilobytes.

setMinutes

public void setMinutes(int minutes)
Configure the checkpoint time threshold, in minutes.

Parameters:
minutes - If more than min minutes have passed since the last checkpoint, a checkpoint is performed.

The default is 0 for this class and the database environment.


getMinutes

public int getMinutes()
Return the checkpoint time threshold, in minutes.

Returns:
The checkpoint time threshold, in minutes.

setForce

public void setForce(boolean force)
Configure the checkpoint force option.

Parameters:
force - If set to true, a checkpoint is done, disregarding any threshold options.

The default is false for this class and the BDB JE environment.


getForce

public boolean getForce()
Return the configuration of the checkpoint force option.

Returns:
The configuration of the checkpoint force option.

Berkeley DB Java Edition
version 1.5.1

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.