org.exist.storage.sync
Class Sync

java.lang.Object
  extended by org.exist.scheduler.UserJob
      extended by org.exist.scheduler.UserJavaJob
          extended by 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.


Field Summary
static int MAJOR_SYNC
           
static int MINOR_SYNC
           
 
Constructor Summary
Sync()
           
 
Method Summary
 void execute(BrokerPool pool, Map params)
          Function that is executed by the Scheduler
 String getName()
          Get the name of the job
 void setName(String name)
          Set the name of the job
 
Methods inherited from class org.exist.scheduler.UserJavaJob
execute
 
Methods inherited from class org.exist.scheduler.UserJob
getGroup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Sync

public Sync()
Method Detail

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 job
params - 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.