BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.beastui.web.controller.SchedulerController Class Reference

Public Member Functions

 SchedulerController ()
 
void setScheduler (IBeastScheduler scheduler)
 
void setManager (IRouterManager manager)
 
void setCronEntryUtilities (CronEntryUtilities cronutilities)
 
String showSchedule (Model model, @RequestParam(value="emessage", required=false) String emessage)
 
String createScheduledJob (Model model, @RequestParam(value="seconds", required=false) List< String > seconds, @RequestParam(value="minutes", required=false) List< String > minutes, @RequestParam(value="hours", required=false) List< String > hours, @RequestParam(value="daysOfMonth", required=false) List< String > daysOfMonth, @RequestParam(value="months", required=false) List< String > months, @RequestParam(value="daysOfWeek", required=false) List< String > daysOfWeek, @RequestParam(value="jobname", required=false) String jobname)
 
String showScheduledJob (Model model, @RequestParam(value="id", required=true) Integer id, @RequestParam(value="seconds", required=false) List< String > seconds, @RequestParam(value="minutes", required=false) List< String > minutes, @RequestParam(value="hours", required=false) List< String > hours, @RequestParam(value="daysOfMonth", required=false) List< String > daysOfMonth, @RequestParam(value="months", required=false) List< String > months, @RequestParam(value="daysOfWeek", required=false) List< String > daysOfWeek, @RequestParam(value="jobname", required=false) String jobname, @RequestParam(value="submitButton", required=false) String operation)
 

Protected Member Functions

String viewCreateScheduledJob (Model model, List< String > seconds, List< String > minutes, List< String > hours, List< String > daysOfMonth, List< String > months, List< String > daysOfWeek, String jobname, String emessage)
 
String viewShowScheduledJob (Model model, int id, List< String > seconds, List< String > minutes, List< String > hours, List< String > daysOfMonth, List< String > months, List< String > daysOfWeek, String jobname, String emessage)
 
String viewShowSchedule (Model model, String emessage)
 
List< String > createDefaultSeconds ()
 
List< String > createDefaultMinutes ()
 
List< String > createDefaultHours ()
 
List< String > createDefaultDaysOfMonth ()
 
List< String > createDefaultMonths ()
 
List< String > createDefaultDaysOfWeek ()
 

Static Protected Attributes

static List< CronEntryMappingSECONDS = createSecondsMapping()
 
static List< CronEntryMappingMINUTES = createMinutesMapping()
 
static List< CronEntryMappingHOURS = createHoursMapping()
 
static List< CronEntryMappingDAYS_OF_MONTH = createDaysOfMonthMapping()
 
static List< CronEntryMappingMONTHS = createMonthsMapping()
 
static List< CronEntryMappingDAYS_OF_WEEK = createDaysOfWeekMapping()
 

Detailed Description

Controller managing the scheduling

Author
Anders Henja

Constructor & Destructor Documentation

◆ SchedulerController()

eu.baltrad.beastui.web.controller.SchedulerController.SchedulerController ( )
inline

Default constructor

Member Function Documentation

◆ createDefaultDaysOfMonth()

List< String > eu.baltrad.beastui.web.controller.SchedulerController.createDefaultDaysOfMonth ( )
inlineprotected
Returns
the default selection for daysOfMonth

◆ createDefaultDaysOfWeek()

List< String > eu.baltrad.beastui.web.controller.SchedulerController.createDefaultDaysOfWeek ( )
inlineprotected
Returns
the default selection for months

◆ createDefaultHours()

List< String > eu.baltrad.beastui.web.controller.SchedulerController.createDefaultHours ( )
inlineprotected
Returns
the default selection for hours

◆ createDefaultMinutes()

List< String > eu.baltrad.beastui.web.controller.SchedulerController.createDefaultMinutes ( )
inlineprotected
Returns
the default selection for minutes

◆ createDefaultMonths()

List< String > eu.baltrad.beastui.web.controller.SchedulerController.createDefaultMonths ( )
inlineprotected
Returns
the default selection for months

◆ createDefaultSeconds()

List< String > eu.baltrad.beastui.web.controller.SchedulerController.createDefaultSeconds ( )
inlineprotected
Returns
the default selection for seconds

◆ createScheduledJob()

String eu.baltrad.beastui.web.controller.SchedulerController.createScheduledJob ( Model model,
@RequestParam(value="seconds", required=false) List< String > seconds,
@RequestParam(value="minutes", required=false) List< String > minutes,
@RequestParam(value="hours", required=false) List< String > hours,
@RequestParam(value="daysOfMonth", required=false) List< String > daysOfMonth,
@RequestParam(value="months", required=false) List< String > months,
@RequestParam(value="daysOfWeek", required=false) List< String > daysOfWeek,
@RequestParam(value="jobname", required=false) String jobname )
inline

Shows the create scheduled job page

Parameters
modelthe model
expressionthe expression
jobnamethe job name
Returns
the redirect string

◆ setCronEntryUtilities()

void eu.baltrad.beastui.web.controller.SchedulerController.setCronEntryUtilities ( CronEntryUtilities cronutilities)
inline
Parameters
cronutilitiesthe cronutilities to set

◆ setManager()

void eu.baltrad.beastui.web.controller.SchedulerController.setManager ( IRouterManager manager)
inline
Parameters
schedulerthe scheduler to set

◆ setScheduler()

void eu.baltrad.beastui.web.controller.SchedulerController.setScheduler ( IBeastScheduler scheduler)
inline
Parameters
schedulerthe scheduler to set

◆ showSchedule()

String eu.baltrad.beastui.web.controller.SchedulerController.showSchedule ( Model model,
@RequestParam(value="emessage", required=false) String emessage )
inline

Shows the current scheduling information

Parameters
modelthe mdoel
emessage
Returns

◆ showScheduledJob()

String eu.baltrad.beastui.web.controller.SchedulerController.showScheduledJob ( Model model,
@RequestParam(value="id", required=true) Integer id,
@RequestParam(value="seconds", required=false) List< String > seconds,
@RequestParam(value="minutes", required=false) List< String > minutes,
@RequestParam(value="hours", required=false) List< String > hours,
@RequestParam(value="daysOfMonth", required=false) List< String > daysOfMonth,
@RequestParam(value="months", required=false) List< String > months,
@RequestParam(value="daysOfWeek", required=false) List< String > daysOfWeek,
@RequestParam(value="jobname", required=false) String jobname,
@RequestParam(value="submitButton", required=false) String operation )
inline

Shows the scheduled job.

Parameters
model
Returns

◆ viewCreateScheduledJob()

String eu.baltrad.beastui.web.controller.SchedulerController.viewCreateScheduledJob ( Model model,
List< String > seconds,
List< String > minutes,
List< String > hours,
List< String > daysOfMonth,
List< String > months,
List< String > daysOfWeek,
String jobname,
String emessage )
inlineprotected

Sets the model to return the view for "Created Scheduled Job"

Parameters
modelthe model
expressionthe cron expression
jobnamethe routing rule name
emessagea error message if any
Returns
createscheduledjob

◆ viewShowSchedule()

String eu.baltrad.beastui.web.controller.SchedulerController.viewShowSchedule ( Model model,
String emessage )
inlineprotected

Shows the schedule view

Parameters
modelthe model
emessagethe error message
Returns
the jsp page name

◆ viewShowScheduledJob()

String eu.baltrad.beastui.web.controller.SchedulerController.viewShowScheduledJob ( Model model,
int id,
List< String > seconds,
List< String > minutes,
List< String > hours,
List< String > daysOfMonth,
List< String > months,
List< String > daysOfWeek,
String jobname,
String emessage )
inlineprotected

Sets the model to return the view for "Show Scheduled Job"

Parameters
modelthe model
idthe scheduled job id
expressionthe cron expression
jobnamethe routing rule name
emessagea error message if any
Returns
showscheduledjob

Member Data Documentation

◆ DAYS_OF_MONTH

List<CronEntryMapping> eu.baltrad.beastui.web.controller.SchedulerController.DAYS_OF_MONTH = createDaysOfMonthMapping()
staticprotected

Available day of month selections

◆ DAYS_OF_WEEK

List<CronEntryMapping> eu.baltrad.beastui.web.controller.SchedulerController.DAYS_OF_WEEK = createDaysOfWeekMapping()
staticprotected

Available day of month selections

◆ HOURS

List<CronEntryMapping> eu.baltrad.beastui.web.controller.SchedulerController.HOURS = createHoursMapping()
staticprotected

Available hour selections

◆ MINUTES

List<CronEntryMapping> eu.baltrad.beastui.web.controller.SchedulerController.MINUTES = createMinutesMapping()
staticprotected

Available minute selections

◆ MONTHS

List<CronEntryMapping> eu.baltrad.beastui.web.controller.SchedulerController.MONTHS = createMonthsMapping()
staticprotected

Available months selections

◆ SECONDS

List<CronEntryMapping> eu.baltrad.beastui.web.controller.SchedulerController.SECONDS = createSecondsMapping()
staticprotected

Available second selections


The documentation for this class was generated from the following file: