public class SolrHistoryStore extends HistoryStore
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_HISTORY_CLUSTER_NAME |
static java.lang.String |
DEFAULT_HISTORY_COLLECTION_NAME |
static java.lang.String |
DEFAULT_TIME_RANGE |
static java.lang.String |
ITEM_FIELD |
static java.lang.String |
ITEM_LEVEL |
static java.lang.String |
LEVEL_FIELD |
static java.lang.String |
SERVICE_FIELD |
static java.lang.String |
SERVICE_LEVEL |
static java.lang.String |
TIMESTAMP_FIELD |
| Constructor and Description |
|---|
SolrHistoryStore(ConfigurationComponent configurationComponent,
CollectionManager collectionManager,
CollectionComponent collectionComponent,
CuratorComponent curatorComponent,
SearchClusterComponent searchClusterComponent,
ObjectMapper mapper,
com.lucidworks.apollo.links.LinkManager linkManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemHistory(java.lang.String service,
java.lang.String item,
com.lucidworks.apollo.common.models.HistoryEvent event) |
void |
addItemHistory(java.lang.String service,
java.lang.String item,
com.lucidworks.apollo.common.models.HistoryEvent event,
java.lang.Boolean commit) |
void |
addServiceHistory(java.lang.String service,
com.lucidworks.apollo.common.models.HistoryEvent event) |
void |
clearAllItemHistory(java.lang.String service) |
void |
clearAllServiceHistory() |
void |
clearItemHistory(java.lang.String service,
java.lang.String item) |
void |
clearServiceHistory(java.lang.String service) |
void |
flushBuffers() |
com.lucidworks.apollo.common.models.History |
getItemHistory(java.lang.String service,
java.lang.String item,
java.lang.String timeRange,
int maxLength) |
com.lucidworks.apollo.common.models.History |
getServiceHistory(java.lang.String service,
java.lang.String timeRange,
int maxLength) |
void |
init(CuratorComponent curatorComponent,
SearchClusterComponent searchClusterComponent,
CollectionComponent collectionComponent,
com.lucidworks.apollo.links.LinkManager linkManager) |
java.util.List<java.lang.String> |
listAllItems(java.lang.String service) |
java.util.List<java.lang.String> |
listAllItems(java.lang.String service,
java.lang.String timeRange) |
java.util.List<java.lang.String> |
listAllServices(java.lang.String timeRange) |
listAllServicespublic static final java.lang.String DEFAULT_HISTORY_COLLECTION_NAME
public static final java.lang.String DEFAULT_HISTORY_CLUSTER_NAME
public static final java.lang.String SERVICE_FIELD
public static final java.lang.String ITEM_FIELD
public static final java.lang.String LEVEL_FIELD
public static final java.lang.String SERVICE_LEVEL
public static final java.lang.String ITEM_LEVEL
public static final java.lang.String TIMESTAMP_FIELD
public static final java.lang.String DEFAULT_TIME_RANGE
public SolrHistoryStore(ConfigurationComponent configurationComponent, CollectionManager collectionManager, CollectionComponent collectionComponent, CuratorComponent curatorComponent, SearchClusterComponent searchClusterComponent, ObjectMapper mapper, com.lucidworks.apollo.links.LinkManager linkManager)
@WhenReady public void init(CuratorComponent curatorComponent, SearchClusterComponent searchClusterComponent, CollectionComponent collectionComponent, com.lucidworks.apollo.links.LinkManager linkManager)
public void flushBuffers()
flushBuffers in class HistoryStorepublic void addServiceHistory(java.lang.String service,
com.lucidworks.apollo.common.models.HistoryEvent event)
throws java.io.IOException
addServiceHistory in class HistoryStorejava.io.IOExceptionpublic void addItemHistory(java.lang.String service,
java.lang.String item,
com.lucidworks.apollo.common.models.HistoryEvent event)
throws java.io.IOException
addItemHistory in class HistoryStorejava.io.IOExceptionpublic com.lucidworks.apollo.common.models.History getServiceHistory(java.lang.String service,
java.lang.String timeRange,
int maxLength)
throws java.io.IOException
getServiceHistory in class HistoryStorejava.io.IOExceptionpublic com.lucidworks.apollo.common.models.History getItemHistory(java.lang.String service,
java.lang.String item,
java.lang.String timeRange,
int maxLength)
throws java.io.IOException
getItemHistory in class HistoryStorejava.io.IOExceptionpublic java.util.List<java.lang.String> listAllServices(java.lang.String timeRange)
throws java.io.IOException
listAllServices in class HistoryStorejava.io.IOExceptionpublic java.util.List<java.lang.String> listAllItems(java.lang.String service)
throws java.io.IOException
listAllItems in class HistoryStorejava.io.IOExceptionpublic java.util.List<java.lang.String> listAllItems(java.lang.String service,
java.lang.String timeRange)
throws java.io.IOException
listAllItems in class HistoryStorejava.io.IOExceptionpublic void clearServiceHistory(java.lang.String service)
throws java.io.IOException
clearServiceHistory in class HistoryStorejava.io.IOExceptionpublic void clearAllServiceHistory()
throws java.io.IOException
clearAllServiceHistory in class HistoryStorejava.io.IOExceptionpublic void clearItemHistory(java.lang.String service,
java.lang.String item)
throws java.io.IOException
clearItemHistory in class HistoryStorejava.io.IOExceptionpublic void clearAllItemHistory(java.lang.String service)
throws java.io.IOException
clearAllItemHistory in class HistoryStorejava.io.IOExceptionpublic void addItemHistory(java.lang.String service,
java.lang.String item,
com.lucidworks.apollo.common.models.HistoryEvent event,
java.lang.Boolean commit)
throws java.io.IOException
addItemHistory in class HistoryStorejava.io.IOException