public class SchedulerWsDelegate extends Object
| Constructor and Description |
|---|
SchedulerWsDelegate(com.sun.jersey.api.client.WebResource resource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createOrUpdateJob(String jobId,
String jobName,
String appName,
String cmdName,
String cron)
Creates or updates a scheduled job.
|
void |
deleteJob(String jobId)
Deletes a scheduled job.
|
net.roboconf.core.model.runtime.ScheduledJob |
getJobProperties(String jobId)
Gets the properties of a scheduled job.
|
List<net.roboconf.core.model.runtime.ScheduledJob> |
listAllJobs(String appName,
String cmdName)
Lists all the jobs.
|
public SchedulerWsDelegate(com.sun.jersey.api.client.WebResource resource)
resource - a web resourcepublic List<net.roboconf.core.model.runtime.ScheduledJob> listAllJobs(String appName, String cmdName)
When no parameter is supplied, all the jobs are returned.
When appName is supplied, only the jobs associated with
this application are returned. When cmdName is also supplied,
only the jobs associated with this application and this command are returned.
When cmdName is supplied but not appName, then no job
is returned.
public String createOrUpdateJob(String jobId, String jobName, String appName, String cmdName, String cron) throws SchedulerWsException
jobId - the job's ID (null to create a new job)jobName - the job's nameappName - the application's namecmdName - the name of the commands file to executecron - the CRON expression to trigger the jobSchedulerWsException - if the creation or the update failedpublic void deleteJob(String jobId) throws SchedulerWsException
jobId - the job's IDSchedulerWsException - if the deletion failedpublic net.roboconf.core.model.runtime.ScheduledJob getJobProperties(String jobId) throws SchedulerWsException
jobId - the job's IDSchedulerWsException - if the retrieving failedCopyright © 2017. All rights reserved.