Class JobConfigService


  • public class JobConfigService
    extends Object
    A service to retrieve jobs and change their schedule, if editable.
    Since:
    3.11.0
    • Constructor Detail

      • JobConfigService

        public JobConfigService()
    • 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 a JobConfig resource. Only the schedule 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