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 java.lang.Object
implements JobSchedulerViewMBean


Constructor Summary
JobSchedulerView(JobScheduler jobScheduler)
           
 
Method Summary
 javax.management.openmbean.TabularData getAllJobs()
          Get all the outstanding Jobs
 javax.management.openmbean.TabularData getAllJobs(java.lang.String startTime, java.lang.String finishTime)
          Get all outstanding jobs due to run between start and finish
 javax.management.openmbean.TabularData getNextScheduleJobs()
          Get all the jobs scheduled to run next
 java.lang.String getNextScheduleTime()
          Get the next time jobs will be fired
 void removeAllJobs()
          remove all the Jobs from the scheduler
 void removeAllJobs(java.lang.String startTime, java.lang.String finishTime)
          remove all the Jobs from the scheduler that are due between the start and finish times
 void removeJob(java.lang.String jobId)
          remove a job with the matching jobId
 void removeJobAtScheduledTime(java.lang.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 javax.management.openmbean.TabularData getAllJobs()
                                                  throws java.lang.Exception
Description copied from interface: JobSchedulerViewMBean
Get all the outstanding Jobs

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

getAllJobs

public javax.management.openmbean.TabularData getAllJobs(java.lang.String startTime,
                                                         java.lang.String finishTime)
                                                  throws java.lang.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:
java.lang.Exception

getNextScheduleJobs

public javax.management.openmbean.TabularData getNextScheduleJobs()
                                                           throws java.lang.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:
java.lang.Exception

getNextScheduleTime

public java.lang.String getNextScheduleTime()
                                     throws java.lang.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:
java.lang.Exception

removeAllJobs

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

Specified by:
removeAllJobs in interface JobSchedulerViewMBean
Throws:
java.lang.Exception

removeAllJobs

public void removeAllJobs(java.lang.String startTime,
                          java.lang.String finishTime)
                   throws java.lang.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:
java.lang.Exception

removeJob

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

Specified by:
removeJob in interface JobSchedulerViewMBean
Throws:
java.lang.Exception

removeJobAtScheduledTime

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

Specified by:
removeJobAtScheduledTime in interface JobSchedulerViewMBean
Throws:
java.io.IOException


Copyright © 2005-2012. All Rights Reserved.