org.exist.scheduler
Class TestJob
java.lang.Object
org.exist.scheduler.UserJob
org.exist.scheduler.UserJavaJob
org.exist.scheduler.TestJob
- All Implemented Interfaces:
- JobDescription, Job
public class TestJob
- extends UserJavaJob
TestJob
public TestJob()
execute
public void execute(BrokerPool brokerpool,
Map params)
throws JobException
- Description copied from class:
UserJavaJob
- Function that is executed by the Scheduler
- Specified by:
execute
in class UserJavaJob
- Parameters:
brokerpool
- 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
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
Copyright (C) Wolfgang Meier. All rights reserved.