org.ikasan.framework.web.controller
Class SchedulerController

java.lang.Object
  extended by org.ikasan.framework.web.controller.SchedulerController

@Controller
public class SchedulerController
extends Object

Controller class for the scheduler view

Author:
Ikasan Development Team

Constructor Summary
SchedulerController(org.quartz.Scheduler platformScheduler)
          Constructor
 
Method Summary
 org.quartz.Scheduler getPlatformScheduler()
          Get the platform scheduler
 String resumeScheduler()
          Handle the request to resume the scheduler
 String stopScheduler()
          Handle the request to put the scheduler on standby
 org.springframework.web.servlet.ModelAndView viewScheduler()
          Handle the request Warning is suppressed because ModelMap does not support Generics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerController

public SchedulerController(org.quartz.Scheduler platformScheduler)
Constructor

Parameters:
platformScheduler - - THe platform scheduler
Method Detail

getPlatformScheduler

@ModelAttribute(value="platformScheduler")
public org.quartz.Scheduler getPlatformScheduler()
Get the platform scheduler

Returns:
platform scheduler

viewScheduler

@RequestMapping(value="/admin/viewScheduler.htm",
                method=GET)
public org.springframework.web.servlet.ModelAndView viewScheduler()
                                                           throws Exception
Handle the request Warning is suppressed because ModelMap does not support Generics

Returns:
model and view to go to next ("admin/viewScheduler")
Throws:
Exception - - Catch all

stopScheduler

@RequestMapping(value="/admin/schedulerStandby.htm",
                method=POST)
public String stopScheduler()
                     throws Exception
Handle the request to put the scheduler on standby

Returns:
a redirect to viewScheduler
Throws:
Exception - - Catch all

resumeScheduler

@RequestMapping(value="/admin/schedulerResume.htm",
                method=POST)
public String resumeScheduler()
                       throws Exception
Handle the request to resume the scheduler

Returns:
a redirect to viewScheduler
Throws:
Exception - - Catch all


Copyright © 2007-2011 Ikasan. All Rights Reserved.