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 IndexRangeService
NotFoundException
public SortedSet<IndexRange> find(org.joda.time.DateTime begin, org.joda.time.DateTime end)
find
in interface IndexRangeService
public SortedSet<IndexRange> findAll()
findAll
in interface IndexRangeService
public IndexRange calculateRange(String index)
calculateRange
in interface IndexRangeService
public IndexRange createUnknownRange(String index)
createUnknownRange
in interface IndexRangeService
public org.mongojack.WriteResult<MongoIndexRange,org.bson.types.ObjectId> save(IndexRange indexRange)
save
in interface IndexRangeService
public boolean remove(String index)
remove
in interface IndexRangeService
public void handleIndexDeletion(IndicesDeletedEvent event)
public void handleIndexClosing(IndicesClosedEvent event)
public void handleIndexReopening(IndicesReopenedEvent event)
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.