public class DBJobDefinitionService extends PaginatedDbService<JobDefinitionDto>
db| Constructor and Description |
|---|
DBJobDefinitionService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
PaginatedList<JobDefinitionDto> |
getAllPaginated(String sortByField,
int page,
int perPage) |
Optional<JobDefinitionDto> |
getByConfigField(String configField,
Object value)
Returns the job definition that has the given config field value.
|
asImmutableList, delete, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject public DBJobDefinitionService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper)
public PaginatedList<JobDefinitionDto> getAllPaginated(String sortByField, int page, int perPage)
public Optional<JobDefinitionDto> getByConfigField(String configField, Object value)
configField - the config fieldvalue - the value of the config fieldpublic Map<String,List<JobDefinitionDto>> getAllByConfigField(String configField, Collection<? extends Object> values)
configField - the config fieldvalues - the values of the config fieldCopyright © 2012–2021 Graylog, Inc.. All rights reserved.