public class MongoIndexRangeService extends Object implements IndexRangeService
| Constructor and Description |
|---|
MongoIndexRangeService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider objectMapperProvider,
Indices indices,
IndexSetRegistry indexSetRegistry,
AuditEventSender auditEventSender,
NodeId nodeId,
com.google.common.eventbus.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
IndexRange |
calculateRange(String index) |
IndexRange |
createUnknownRange(String index) |
SortedSet<IndexRange> |
find(org.joda.time.DateTime begin,
org.joda.time.DateTime end) |
SortedSet<IndexRange> |
findAll() |
IndexRange |
get(String index) |
void |
handleIndexClosing(IndicesClosedEvent event) |
void |
handleIndexDeletion(IndicesDeletedEvent event) |
void |
handleIndexReopening(IndicesReopenedEvent event) |
boolean |
remove(String index) |
org.mongojack.WriteResult<MongoIndexRange,org.bson.types.ObjectId> |
save(IndexRange indexRange) |
@Inject public MongoIndexRangeService(MongoConnection mongoConnection, MongoJackObjectMapperProvider objectMapperProvider, Indices indices, IndexSetRegistry indexSetRegistry, AuditEventSender auditEventSender, NodeId nodeId, com.google.common.eventbus.EventBus eventBus)
public IndexRange get(String index) throws NotFoundException
get in interface IndexRangeServiceNotFoundExceptionpublic SortedSet<IndexRange> find(org.joda.time.DateTime begin, org.joda.time.DateTime end)
find in interface IndexRangeServicepublic SortedSet<IndexRange> findAll()
findAll in interface IndexRangeServicepublic IndexRange calculateRange(String index)
calculateRange in interface IndexRangeServicepublic IndexRange createUnknownRange(String index)
createUnknownRange in interface IndexRangeServicepublic org.mongojack.WriteResult<MongoIndexRange,org.bson.types.ObjectId> save(IndexRange indexRange)
save in interface IndexRangeServicepublic boolean remove(String index)
remove in interface IndexRangeServicepublic void handleIndexDeletion(IndicesDeletedEvent event)
public void handleIndexClosing(IndicesClosedEvent event)
public void handleIndexReopening(IndicesReopenedEvent event)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.