public class SchedulerService extends Object
Constructor and Description |
---|
SchedulerService() |
Modifier and Type | Method and Description |
---|---|
org.pentaho.platform.api.scheduler2.Job |
addBlockout(JobScheduleRequest jobScheduleRequest) |
org.pentaho.platform.api.scheduler2.Job |
createJob(JobScheduleRequest scheduleRequest) |
String |
doGetCanSchedule() |
List<org.pentaho.platform.repository2.unified.webservices.RepositoryFileDto> |
doGetGeneratedContentForSchedule(String lineageId) |
Class<org.pentaho.platform.api.action.IAction> |
getAction(String actionClass) |
boolean |
getAutoCreateUniqueFilename(JobScheduleRequest scheduleRequest) |
List<org.pentaho.platform.api.scheduler2.Job> |
getBlockOutJobs() |
BlockStatusProxy |
getBlockStatus(JobScheduleRequest jobScheduleRequest) |
org.pentaho.platform.api.scheduler2.Job |
getContentCleanerJob() |
org.pentaho.platform.api.scheduler2.Job |
getJob(String jobId) |
org.pentaho.platform.api.scheduler2.IJobFilter |
getJobFilter(boolean canAdminister,
String principalName) |
JobScheduleRequest |
getJobInfo() |
org.pentaho.platform.api.scheduler2.Job |
getJobInfo(String jobId) |
List<org.pentaho.platform.api.scheduler2.Job> |
getJobs() |
org.pentaho.platform.api.scheduler2.Job.JobState |
getJobState(JobRequest jobRequest) |
org.pentaho.platform.api.engine.IAuthorizationPolicy |
getPolicy() |
org.pentaho.platform.api.repository2.unified.IUnifiedRepository |
getRepository() |
org.pentaho.platform.api.scheduler2.IScheduler |
getScheduler() |
String |
getState() |
boolean |
hasBlockouts() |
boolean |
isScheduleAllowed() |
boolean |
isScheduleAllowed(String id) |
String |
pause() |
org.pentaho.platform.api.scheduler2.Job.JobState |
pauseJob(String jobId) |
boolean |
removeJob(String jobId) |
org.pentaho.platform.api.scheduler2.Job.JobState |
resumeJob(String jobId) |
boolean |
shouldFireNow() |
String |
shutdown() |
String |
start() |
org.pentaho.platform.api.scheduler2.Job |
triggerNow(String jobId) |
org.pentaho.platform.api.scheduler2.Job |
updateBlockout(String jobId,
JobScheduleRequest jobScheduleRequest) |
boolean |
willFire(org.pentaho.platform.api.scheduler2.IJobTrigger trigger) |
public org.pentaho.platform.api.scheduler2.Job createJob(JobScheduleRequest scheduleRequest) throws IOException, org.pentaho.platform.api.scheduler2.SchedulerException, IllegalAccessException
IOException
org.pentaho.platform.api.scheduler2.SchedulerException
IllegalAccessException
public org.pentaho.platform.api.scheduler2.Job triggerNow(String jobId) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public org.pentaho.platform.api.scheduler2.Job getContentCleanerJob() throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public List<org.pentaho.platform.repository2.unified.webservices.RepositoryFileDto> doGetGeneratedContentForSchedule(String lineageId) throws FileNotFoundException
lineageId
- FileNotFoundException
public org.pentaho.platform.api.scheduler2.Job getJob(String jobId) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public boolean isScheduleAllowed()
public boolean isScheduleAllowed(String id)
public org.pentaho.platform.api.scheduler2.IJobFilter getJobFilter(boolean canAdminister, String principalName)
public String doGetCanSchedule()
public String getState() throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public String start() throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public String pause() throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public String shutdown() throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public org.pentaho.platform.api.scheduler2.Job.JobState pauseJob(String jobId) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public org.pentaho.platform.api.scheduler2.Job.JobState resumeJob(String jobId) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public boolean removeJob(String jobId) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public org.pentaho.platform.api.scheduler2.Job getJobInfo(String jobId) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public List<org.pentaho.platform.api.scheduler2.Job> getBlockOutJobs()
public boolean hasBlockouts()
public boolean willFire(org.pentaho.platform.api.scheduler2.IJobTrigger trigger)
public boolean shouldFireNow()
public org.pentaho.platform.api.scheduler2.Job addBlockout(JobScheduleRequest jobScheduleRequest) throws IOException, IllegalAccessException, org.pentaho.platform.api.scheduler2.SchedulerException
IOException
IllegalAccessException
org.pentaho.platform.api.scheduler2.SchedulerException
public org.pentaho.platform.api.scheduler2.Job updateBlockout(String jobId, JobScheduleRequest jobScheduleRequest) throws IllegalAccessException, org.pentaho.platform.api.scheduler2.SchedulerException, IOException
IllegalAccessException
org.pentaho.platform.api.scheduler2.SchedulerException
IOException
public BlockStatusProxy getBlockStatus(JobScheduleRequest jobScheduleRequest) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public JobScheduleRequest getJobInfo()
public org.pentaho.platform.api.scheduler2.Job.JobState getJobState(JobRequest jobRequest) throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException
public Class<org.pentaho.platform.api.action.IAction> getAction(String actionClass) throws ClassNotFoundException
ClassNotFoundException
public org.pentaho.platform.api.repository2.unified.IUnifiedRepository getRepository()
public org.pentaho.platform.api.scheduler2.IScheduler getScheduler()
public org.pentaho.platform.api.engine.IAuthorizationPolicy getPolicy()
public boolean getAutoCreateUniqueFilename(JobScheduleRequest scheduleRequest)
public List<org.pentaho.platform.api.scheduler2.Job> getJobs() throws org.pentaho.platform.api.scheduler2.SchedulerException
org.pentaho.platform.api.scheduler2.SchedulerException