Package org.graylog2.lookup.db
Class DBCacheService
-
Field Summary
FieldsFields inherited from class org.graylog2.database.entities.ScopedDbService
entityScopeServiceFields inherited from class org.graylog2.database.PaginatedDbService
db -
Constructor Summary
ConstructorsConstructorDescriptionDBCacheService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityScopeService entityScopeService, ClusterEventBus clusterEventBus) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAndPostEvent(String idOrName) voiddeleteAndPostEventImmutable(String idOrName) findAll()findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage) Get thePaginatedDbServicefor the given ID.voidpostBulkUpdate(Set<String> updatedCacheIds) saveAndPostEvent(CacheDto table) Methods inherited from class org.graylog2.database.entities.ScopedDbService
delete, ensureDeletability, ensureMutability, ensureValidScope, forceDelete, isDeletable, isMutable, saveMethods inherited from class org.graylog2.database.PaginatedDbService
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, findPaginatedWithQueryFilterAndSortWithGrandTotal, getMultiFieldSortBuilder, getPage, getSortBuilder, streamAll, streamByIds, streamQuery, streamQueryWithSort
-
Field Details
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
DBCacheService
@Inject public DBCacheService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityScopeService entityScopeService, ClusterEventBus clusterEventBus)
-
-
Method Details
-
get
Description copied from class:PaginatedDbServiceGet thePaginatedDbServicefor the given ID.- Overrides:
getin classPaginatedDbService<CacheDto>- Parameters:
idOrName- the ID of the object- Returns:
- an Optional containing the found object or an empty Optional if no object can be found for the given ID
-
saveAndPostEvent
-
postBulkUpdate
-
findPaginated
public PaginatedList<CacheDto> findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage) -
deleteAndPostEvent
-
deleteAndPostEventImmutable
-
findByIds
-
findAll
-