Package net.bluemind.scheduledjob.api
Interface IJob
- All Known Subinterfaces:
IInCoreJob
@Path("/scheduledjobs")
public interface IJob
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel running job by its IDvoid
deleteExecution
(int jobExecutionId) Removes one execution.void
deleteExecutions
(List<Integer> executions) Removes multiple executions.getJobFromId
(String jobId) Get job using its idgetLogs
(JobExecution jobExecution, int offset) Return the logs of a job.searchExecution
(JobExecutionQuery query) Fetch recorded job executions.List jobs deployed.void
Get active job using its ID force-start a job.void
Update job planificationJobPlanification
-
Method Details
-
searchJob
List jobs deployed. global invalid input: '&' non-global admins will get different results.- Parameters:
query
-- Returns:
- Throws:
ServerFault
-
searchExecution
@POST @Path("_searchExecution") ListResult<JobExecution> searchExecution(JobExecutionQuery query) throws ServerFault Fetch recorded job executions. Pagination is supported. global invalid input: '&' non-global admins will get different results.- Parameters:
query
-- Returns:
- list of job executions, sorted by start execution date in descending order
- Throws:
ServerFault
-
getJobFromId
Get job using its id- Parameters:
jobId
-- Returns:
- Throws:
ServerFault
-
update
Update job planificationJobPlanification
- Parameters:
job
-- Throws:
ServerFault
-
deleteExecution
@DELETE @Path("_deleteExecution") void deleteExecution(@QueryParam("jobExecutionId") int jobExecutionId) throws ServerFault Removes one execution. Removes nothing if your token has no right on this execution (global job, different domain, etc)- Parameters:
execution
-- Throws:
ServerFault
-
deleteExecutions
@DELETE @Path("_deleteExecutions") void deleteExecutions(List<Integer> executions) throws ServerFault Removes multiple executions.- Parameters:
execution
-- Throws:
ServerFault
-
start
@POST @Path("_start/{jobId}") void start(@PathParam("jobId") String jobId, @QueryParam("domainName") String domainName) throws ServerFault Get active job using its ID force-start a job. Execution is recorded when the job finishes.- Parameters:
jobId
-- Throws:
ServerFault
-
cancel
@DELETE @Path("_cancel/{jobId}") void cancel(@PathParam("jobId") String jobId, @QueryParam("domainName") String domainName) throws ServerFault Cancel running job by its ID- Parameters:
jobId
-- Throws:
ServerFault
-
getLogs
@POST @Path("_logs") Set<LogEntry> getLogs(JobExecution jobExecution, @QueryParam("offset") int offset) throws ServerFault Return the logs of a job. The offset indicates how much logs you already fetched in a previous call.- Parameters:
offset
-execution
-- Returns:
- Throws:
ServerFault
-