org.apache.activemq.broker.jmx
Class JobSchedulerView

java.lang.Object
  extended by org.apache.activemq.broker.jmx.JobSchedulerView
All Implemented Interfaces:
JobSchedulerViewMBean

public class JobSchedulerView
extends Object
implements JobSchedulerViewMBean


Constructor Summary
JobSchedulerView(JobScheduler jobScheduler)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobSchedulerView

public JobSchedulerView(JobScheduler jobScheduler)
Method Detail

getAllJobs

public TabularData getAllJobs()
                       throws Exception
Description copied from interface: JobSchedulerViewMBean
Get all the outstanding Jobs

Specified by:
getAllJobs in interface JobSchedulerViewMBean
Returns:
a table of all jobs
Throws:
Exception

getAllJobs

public TabularData getAllJobs(String startTime,
                              String finishTime)
                       throws Exception
Description copied from interface: JobSchedulerViewMBean
Get all outstanding jobs due to run between start and finish

Specified by:
getAllJobs in interface JobSchedulerViewMBean
Returns:
a table of jobs in the range
Throws:
Exception

getNextScheduleJobs

public TabularData getNextScheduleJobs()
                                throws Exception
Description copied from interface: JobSchedulerViewMBean
Get all the jobs scheduled to run next

Specified by:
getNextScheduleJobs in interface JobSchedulerViewMBean
Returns:
a list of jobs that will be scheduled next
Throws:
Exception

getNextScheduleTime

public String getNextScheduleTime()
                           throws Exception
Description copied from interface: JobSchedulerViewMBean
Get the next time jobs will be fired

Specified by:
getNextScheduleTime in interface JobSchedulerViewMBean
Returns:
the time in milliseconds
Throws:
Exception

removeAllJobs

public void removeAllJobs()
                   throws Exception
Description copied from interface: JobSchedulerViewMBean
remove all the Jobs from the scheduler

Specified by:
removeAllJobs in interface JobSchedulerViewMBean
Throws:
Exception

removeAllJobs

public void removeAllJobs(String startTime,
                          String finishTime)
                   throws Exception
Description copied from interface: JobSchedulerViewMBean
remove all the Jobs from the scheduler that are due between the start and finish times

Specified by:
removeAllJobs in interface JobSchedulerViewMBean
Parameters:
startTime - time
finishTime - time
Throws:
Exception

removeJob

public void removeJob(String jobId)
               throws Exception
Description copied from interface: JobSchedulerViewMBean
remove a job with the matching jobId

Specified by:
removeJob in interface JobSchedulerViewMBean
Throws:
Exception

removeJobAtScheduledTime

public void removeJobAtScheduledTime(String time)
                              throws IOException
Description copied from interface: JobSchedulerViewMBean
remove all jobs scheduled to run at this time

Specified by:
removeJobAtScheduledTime in interface JobSchedulerViewMBean
Throws:
IOException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.