public class JobSchedulerView extends Object implements JobSchedulerViewMBean
Constructor and Description |
---|
JobSchedulerView(JobScheduler jobScheduler) |
Modifier and Type | Method and Description |
---|---|
TabularData |
getAllJobs()
Get all the outstanding Jobs
|
TabularData |
getAllJobs(String startTime,
String finishTime)
Get all outstanding jobs due to run between start and finish
|
TabularData |
getNextScheduleJobs()
Get all the jobs scheduled to run next
|
String |
getNextScheduleTime()
Get the next time jobs will be fired
|
void |
removeAllJobs()
remove all the Jobs from the scheduler
|
void |
removeAllJobs(String startTime,
String finishTime)
remove all the Jobs from the scheduler that are due between the start and finish times
|
void |
removeJob(String jobId)
remove a job with the matching jobId
|
void |
removeJobAtScheduledTime(String time)
remove all jobs scheduled to run at this time
|
public JobSchedulerView(JobScheduler jobScheduler)
public TabularData getAllJobs() throws Exception
JobSchedulerViewMBean
getAllJobs
in interface JobSchedulerViewMBean
Exception
public TabularData getAllJobs(String startTime, String finishTime) throws Exception
JobSchedulerViewMBean
getAllJobs
in interface JobSchedulerViewMBean
Exception
public TabularData getNextScheduleJobs() throws Exception
JobSchedulerViewMBean
getNextScheduleJobs
in interface JobSchedulerViewMBean
Exception
public String getNextScheduleTime() throws Exception
JobSchedulerViewMBean
getNextScheduleTime
in interface JobSchedulerViewMBean
Exception
public void removeAllJobs() throws Exception
JobSchedulerViewMBean
removeAllJobs
in interface JobSchedulerViewMBean
Exception
public void removeAllJobs(String startTime, String finishTime) throws Exception
JobSchedulerViewMBean
removeAllJobs
in interface JobSchedulerViewMBean
startTime
- timefinishTime
- timeException
public void removeJob(String jobId) throws Exception
JobSchedulerViewMBean
removeJob
in interface JobSchedulerViewMBean
Exception
public void removeJobAtScheduledTime(String time) throws IOException
JobSchedulerViewMBean
removeJobAtScheduledTime
in interface JobSchedulerViewMBean
IOException
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.