public class ScheduledJobService extends java.lang.Object implements IInCoreJob
Constructor and Description |
---|
ScheduledJobService(BmContext context) |
Modifier and Type | Method and Description |
---|---|
JobExecution |
createExecution(JobExecution je) |
void |
deleteExecution(int jobExecutionId)
Removes one execution.
|
void |
deleteExecutions(java.util.List<java.lang.Integer> jobExecutionId)
Removes multiple executions.
|
Job |
getJobFromId(java.lang.String jobId)
Get job using its id
|
java.util.Set<LogEntry> |
getLogs(JobExecution jobExecution,
int offset)
Return the logs of a job.
|
ListResult<JobExecution> |
searchExecution(JobExecutionQuery query)
Fetch recorded job executions.
|
ListResult<Job> |
searchJob(JobQuery query)
List jobs deployed.
|
void |
start(java.lang.String jobId,
java.lang.String domainName)
Get active job using its ID
force-start a job.
|
void |
storeLogEntries(int jobExecutionid,
java.util.Set<LogEntry> entries) |
void |
update(Job job)
Update job planification
JobPlanification |
void |
updateExecution(JobExecution je) |
public ScheduledJobService(BmContext context)
public ListResult<Job> searchJob(JobQuery query) throws ServerFault
IJob
searchJob
in interface IJob
ServerFault
public ListResult<JobExecution> searchExecution(JobExecutionQuery query) throws ServerFault
IJob
searchExecution
in interface IJob
ServerFault
public Job getJobFromId(java.lang.String jobId) throws ServerFault
IJob
getJobFromId
in interface IJob
ServerFault
public void update(Job job) throws ServerFault
IJob
JobPlanification
update
in interface IJob
ServerFault
public void deleteExecution(int jobExecutionId) throws ServerFault
IJob
deleteExecution
in interface IJob
ServerFault
public void deleteExecutions(java.util.List<java.lang.Integer> jobExecutionId) throws ServerFault
IJob
deleteExecutions
in interface IJob
ServerFault
public void start(java.lang.String jobId, java.lang.String domainName) throws ServerFault
IJob
start
in interface IJob
ServerFault
public java.util.Set<LogEntry> getLogs(JobExecution jobExecution, int offset) throws ServerFault
IJob
getLogs
in interface IJob
ServerFault
public JobExecution createExecution(JobExecution je) throws ServerFault
createExecution
in interface IInCoreJob
ServerFault
public void updateExecution(JobExecution je) throws ServerFault
updateExecution
in interface IInCoreJob
ServerFault
public void storeLogEntries(int jobExecutionid, java.util.Set<LogEntry> entries) throws ServerFault
storeLogEntries
in interface IInCoreJob
ServerFault
Copyright © 2021. All Rights Reserved.