MotechSchedulerDatabaseService¶
-
public interface
MotechSchedulerDatabaseService
¶ Service provides methods used to get data from Scheduler. Also provides pagination to use with jqGrid.
Methods¶
countJobs¶
-
int
countJobs
(JobsSearchSettings jobsSearchSettings)¶ Counts all triggers in TRIGGER table which matches the filters built from grid settings.
Parameters: - jobsSearchSettings – contains filter jobs information.
Throws: - MotechSchedulerJobRetrievalException – when the query fails.
Returns: number of all triggers which matches the filters built from grid settings.
getScheduledJobDetailedInfo¶
-
JobDetailedInfo
getScheduledJobDetailedInfo
(JobBasicInfo jobBasicInfo)¶ Returns detailed information about job matching given
JobBasicInfo
.Parameters: - jobBasicInfo – the
JobBasicInfo
about the job
Throws: - MotechSchedulerJobRetrievalException – when the query fails.
Returns: the detailed information about job
- jobBasicInfo – the
getScheduledJobsBasicInfo¶
-
List<JobBasicInfo>
getScheduledJobsBasicInfo
(JobsSearchSettings jobsSearchSettings)¶ Returns info about scheduled jobs for given filter information Sorts all jobs with ascending or descending order for given column.
Parameters: - jobsSearchSettings – contains filter, sorting and pagination jobs options.
Throws: - MotechSchedulerJobRetrievalException – when the query fails.
Returns: list with
org.motechproject.scheduler.contract.JobBasicInfo
for given sorting and pagination option