Class DBJobDefinitionService

java.lang.Object
org.graylog2.database.PaginatedDbService<JobDefinitionDto>
org.graylog.scheduler.DBJobDefinitionService

public class DBJobDefinitionService extends PaginatedDbService<JobDefinitionDto>
  • Field Details

  • Constructor Details

  • Method Details

    • getAllPaginated

      public PaginatedList<JobDefinitionDto> getAllPaginated(String sortByField, int page, int perPage)
    • getByConfigField

      public Optional<JobDefinitionDto> getByConfigField(String configField, Object value)
      Returns the job definition that has the given config field value.
      Parameters:
      configField - the config field
      value - the value of the config field
      Returns:
      the job definition with the given config field, or an empty optional
    • getByQuery

      public List<JobDefinitionDto> getByQuery(org.mongojack.DBQuery.Query query)
    • getAllByConfigField

      public Map<String,List<JobDefinitionDto>> getAllByConfigField(String configField, Collection<? extends Object> values)
      Returns all job definitions that have the given config field values, grouped by config field value.
      Parameters:
      configField - the config field
      values - the values of the config field
      Returns:
      the job definitions grouped by the given values