Class SchedulerTool
- java.lang.Object
-
- org.apache.turbine.services.schedule.SchedulerTool
-
- All Implemented Interfaces:
ApplicationTool
public class SchedulerTool extends Object implements ApplicationTool
This tool is used to retrieve information about the job scheduler.- Version:
- $Id$
- Author:
- Quinton McCombs
-
-
Constructor Summary
Constructors Constructor Description SchedulerTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobEntry
getJob(String jobId)
Gets the job identified by the jobId.List<? extends JobEntry>
getScheduledJobs()
Gets the list of scheduled jobs.void
init(Object data)
Initialize the pull toolboolean
isEnabled()
Determines if the scheduler service is currently enabled.void
refresh()
Does nothing
-
-
-
Constructor Detail
-
SchedulerTool
public SchedulerTool()
-
-
Method Detail
-
init
public void init(Object data)
Initialize the pull tool- Specified by:
init
in interfaceApplicationTool
- Parameters:
data
- initialization data
-
refresh
public void refresh()
Does nothing- Specified by:
refresh
in interfaceApplicationTool
-
getScheduledJobs
public List<? extends JobEntry> getScheduledJobs()
Gets the list of scheduled jobs.- Returns:
- List of JobEntry objects.
-
isEnabled
public boolean isEnabled()
Determines if the scheduler service is currently enabled.- Returns:
- true if the scheduler is enabled
-
-