Class JobConfigService
- java.lang.Object
-
- com.sodius.oslc.server.core.services.JobConfigService
-
public class JobConfigService extends Object
A service to retrieve jobs and change their schedule, if editable.- Since:
- 3.11.0
-
-
Constructor Summary
Constructors Constructor Description JobConfigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getConfig(String id)
Responds the job corresponding to the given id.Response
getConfigs()
Responds the list of jobs managed by this service.Response
updateConfig(String id)
Changes the configuration of given job.
-
-
-
Method Detail
-
getConfigs
public Response getConfigs()
Responds the list of jobs managed by this service.- Returns:
- a response with a collection of
JobConfig
resources
-
getConfig
public Response getConfig(String id)
Responds the job corresponding to the given id.- Parameters:
id
- the identifier of the job- Returns:
- a response with a
JobConfig
resource
-
updateConfig
public Response updateConfig(String id)
Changes the configuration of given job. The request payload must contain aJobConfig
resource. Only theschedule
part of the resource can be updated with this service.- Parameters:
id
- the identifier of the job to update- Returns:
- a response with the new
JobConfig
resource
-
-