public class MonitorConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.file.Path |
indexPath |
private long |
purgeFrequency |
private java.util.concurrent.TimeUnit |
purgeFrequencyUnits |
private QueryDecomposer |
queryDecomposer |
private int |
queryUpdateBufferSize |
private MonitorQuerySerializer |
serializer |
Constructor and Description |
---|
MonitorConfiguration() |
Modifier and Type | Method and Description |
---|---|
IndexWriter |
buildIndexWriter() |
private static IndexWriterConfig |
defaultIndexWriterConfig() |
protected IndexWriterConfig |
getIndexWriterConfig() |
long |
getPurgeFrequency() |
java.util.concurrent.TimeUnit |
getPurgeFrequencyUnits() |
QueryDecomposer |
getQueryDecomposer() |
MonitorQuerySerializer |
getQuerySerializer() |
int |
getQueryUpdateBufferSize() |
MonitorConfiguration |
setIndexPath(java.nio.file.Path indexPath,
MonitorQuerySerializer serializer) |
MonitorConfiguration |
setPurgeFrequency(long frequency,
java.util.concurrent.TimeUnit units)
Set the frequency with with the Monitor's querycache will be garbage-collected
|
MonitorConfiguration |
setQueryDecomposer(QueryDecomposer queryDecomposer)
Set the QueryDecomposer to be used by the Monitor
|
MonitorConfiguration |
setQueryUpdateBufferSize(int size)
Set how many queries will be buffered in memory before being committed to the queryindex
|
private int queryUpdateBufferSize
private long purgeFrequency
private java.util.concurrent.TimeUnit purgeFrequencyUnits
private QueryDecomposer queryDecomposer
private java.nio.file.Path indexPath
private MonitorQuerySerializer serializer
private static IndexWriterConfig defaultIndexWriterConfig()
public MonitorConfiguration setIndexPath(java.nio.file.Path indexPath, MonitorQuerySerializer serializer)
public IndexWriter buildIndexWriter() throws java.io.IOException
java.io.IOException
protected IndexWriterConfig getIndexWriterConfig()
public MonitorQuerySerializer getQuerySerializer()
public MonitorConfiguration setQueryDecomposer(QueryDecomposer queryDecomposer)
queryDecomposer
- the QueryDecomposer to be used by the Monitorpublic QueryDecomposer getQueryDecomposer()
public MonitorConfiguration setPurgeFrequency(long frequency, java.util.concurrent.TimeUnit units)
frequency
- the frequency valueunits
- the frequency unitspublic long getPurgeFrequency()
public java.util.concurrent.TimeUnit getPurgeFrequencyUnits()
public MonitorConfiguration setQueryUpdateBufferSize(int size)
size
- how many queries will be buffered in memory before being committed to the queryindexpublic int getQueryUpdateBufferSize()