Package org.graylog2.indexer.ranges
Class MongoIndexRangeService
java.lang.Object
org.graylog2.indexer.ranges.MongoIndexRangeService
- All Implemented Interfaces:
IndexRangeService
-
Constructor Summary
ConstructorsConstructorDescriptionMongoIndexRangeService(MongoConnection mongoConnection, MongoJackObjectMapperProvider objectMapperProvider, Indices indices, IndexSetRegistry indexSetRegistry, AuditEventSender auditEventSender, NodeId nodeId, com.google.common.eventbus.EventBus eventBus) -
Method Summary
Modifier and TypeMethodDescriptioncalculateRange(String index) createUnknownRange(String index) find(org.joda.time.DateTime begin, org.joda.time.DateTime end) findAll()voidvoidvoidbooleanorg.mongojack.WriteResult<MongoIndexRange,org.bson.types.ObjectId> save(IndexRange indexRange)
-
Constructor Details
-
MongoIndexRangeService
@Inject public MongoIndexRangeService(MongoConnection mongoConnection, MongoJackObjectMapperProvider objectMapperProvider, Indices indices, IndexSetRegistry indexSetRegistry, AuditEventSender auditEventSender, NodeId nodeId, com.google.common.eventbus.EventBus eventBus)
-
-
Method Details
-
get
- Specified by:
getin interfaceIndexRangeService- Throws:
NotFoundException
-
find
- Specified by:
findin interfaceIndexRangeService
-
findAll
- Specified by:
findAllin interfaceIndexRangeService
-
calculateRange
- Specified by:
calculateRangein interfaceIndexRangeService
-
createUnknownRange
- Specified by:
createUnknownRangein interfaceIndexRangeService
-
save
public org.mongojack.WriteResult<MongoIndexRange,org.bson.types.ObjectId> save(IndexRange indexRange) - Specified by:
savein interfaceIndexRangeService
-
remove
- Specified by:
removein interfaceIndexRangeService
-
handleIndexDeletion
-
handleIndexClosing
-
handleIndexReopening
-