org.exist.storage.sync
Class Sync
java.lang.Object
org.exist.scheduler.UserJob
org.exist.scheduler.UserJavaJob
org.exist.storage.sync.Sync
- All Implemented Interfaces:
- JobDescription, Job
public class Sync
- extends UserJavaJob
It will periodically trigger a cache sync to write
cached pages to disk.
Constructor Summary |
Sync()
|
MINOR_SYNC
public static final int MINOR_SYNC
- See Also:
- Constant Field Values
MAJOR_SYNC
public static final int MAJOR_SYNC
- See Also:
- Constant Field Values
Sync
public Sync()
getName
public String getName()
- Description copied from interface:
JobDescription
- Get the name of the job
- Returns:
- The job's name
setName
public void setName(String name)
- Description copied from interface:
JobDescription
- Set the name of the job
- Parameters:
name
- The job's new name
execute
public void execute(BrokerPool pool,
Map params)
throws JobException
- Description copied from class:
UserJavaJob
- Function that is executed by the Scheduler
- Specified by:
execute
in class UserJavaJob
- Parameters:
pool
- The BrokerPool for the Scheduler of this jobparams
- Any parameters passed to the job or null otherwise
- Throws:
JobException
- if there is a problem with the job.
cleanupJob() should then be called, which will adjust the
jobs scheduling appropriately
Copyright (C) Wolfgang Meier. All rights reserved.