public class MongoIndexRangeService extends Object implements IndexRangeService
| Constructor and Description |
|---|
MongoIndexRangeService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider objectMapperProvider,
Indices indices,
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) |
void |
save(IndexRange indexRange) |
@Inject public MongoIndexRangeService(MongoConnection mongoConnection, MongoJackObjectMapperProvider objectMapperProvider, Indices indices, 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 void save(IndexRange indexRange)
save in interface IndexRangeServicepublic void handleIndexDeletion(IndicesDeletedEvent event)
public void handleIndexClosing(IndicesClosedEvent event)
public void handleIndexReopening(IndicesReopenedEvent event)
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.