All Resources All filters

# CheckpointResource

The CheckpointResource can be installed on any Jigsaw server, to periodically make sure that the latest configuration changes have been saved persistently back to disk.

This resource will run its own thread, and after each interval duration, will check that the whole server configuration (ie the resource stores) are properly backed up to the disk, that logs have been flushed and that latest changes to properties have been saved in the appropriate properties file.

It is highly recommended that you install one instance of that resource in your server's administration space, since it can prevent bad damages occurring to your configuration if the server were to be stopped abruptly.

## Inherits

The CheckpointResource class inherits from the following classes:

- FilteredResource

## Attributes description

The CheckpointResource defines the following attributes:

- interval
- priority
- flushlog
- flushprops
- flushconfig

`interval`

semantics
  The interval between two checkpoints, given as a number of seconds.
type
  This attribute is an editable IntegerAttribute
default value
  This attribute defaults to -1, which means that the check pointer will never run.

`priority`

semantics
  The priority of the thread used to run the check points.
type
  This attribute is an editable IntegerAttribute
default value
  This attribute defaults to 2, and should not be changed unless you know what you're doing !

`flushlog`

semantics
  Should the log be flushed to disk on each check point ?
type
  This attribute is an editable BooleanAttribute
default value
  This attribute defaults to false and should not be set to true except for testing periods (the logger knows better then you when to flush itself back to disk, in particular flushing it too often may degrade the overall performances of Jigsaw).

`flushprops` (warning this attribute is not currently implemented)

semantics
  Should the properties be flushed on each check point ?
type
  This attribute is an editable BooleanAttribute
default value
  This attribute defaults to false.

`flushconfig`

semantics
  Should the configuration (ie resource stores) be flushed on each check point ?
type
  This attribute is an editable BooleanAttribute
default value
  This attribute defaults to true.

Jigsaw Team
$Id: w3c.jigsaw.contrib.CheckpointResource.html,v 1.1 1997/01/28 08:10:16 abaird Exp $