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) |
listAllServices
public 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 HistoryStore
public void addServiceHistory(java.lang.String service, com.lucidworks.apollo.common.models.HistoryEvent event) throws java.io.IOException
addServiceHistory
in class HistoryStore
java.io.IOException
public void addItemHistory(java.lang.String service, java.lang.String item, com.lucidworks.apollo.common.models.HistoryEvent event) throws java.io.IOException
addItemHistory
in class HistoryStore
java.io.IOException
public com.lucidworks.apollo.common.models.History getServiceHistory(java.lang.String service, java.lang.String timeRange, int maxLength) throws java.io.IOException
getServiceHistory
in class HistoryStore
java.io.IOException
public 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 HistoryStore
java.io.IOException
public java.util.List<java.lang.String> listAllServices(java.lang.String timeRange) throws java.io.IOException
listAllServices
in class HistoryStore
java.io.IOException
public java.util.List<java.lang.String> listAllItems(java.lang.String service) throws java.io.IOException
listAllItems
in class HistoryStore
java.io.IOException
public java.util.List<java.lang.String> listAllItems(java.lang.String service, java.lang.String timeRange) throws java.io.IOException
listAllItems
in class HistoryStore
java.io.IOException
public void clearServiceHistory(java.lang.String service) throws java.io.IOException
clearServiceHistory
in class HistoryStore
java.io.IOException
public void clearAllServiceHistory() throws java.io.IOException
clearAllServiceHistory
in class HistoryStore
java.io.IOException
public void clearItemHistory(java.lang.String service, java.lang.String item) throws java.io.IOException
clearItemHistory
in class HistoryStore
java.io.IOException
public void clearAllItemHistory(java.lang.String service) throws java.io.IOException
clearAllItemHistory
in class HistoryStore
java.io.IOException
public 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 HistoryStore
java.io.IOException