org.exist.scheduler
Class TestJob

java.lang.Object
  extended by org.exist.scheduler.UserJob
      extended by org.exist.scheduler.UserJavaJob
          extended by org.exist.scheduler.TestJob
All Implemented Interfaces:
JobDescription, Job

public class TestJob
extends UserJavaJob


Field Summary
 
Fields inherited from class org.exist.scheduler.UserJob
JOB_GROUP
 
Constructor Summary
TestJob()
           
 
Method Summary
 void execute(BrokerPool brokerpool, 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
 

Constructor Detail

TestJob

public TestJob()
Method Detail

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

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.