public class MonitorConfiguration extends Object
Constructor and Description |
---|
MonitorConfiguration() |
Modifier and Type | Method and Description |
---|---|
IndexWriter |
buildIndexWriter() |
protected IndexWriterConfig |
getIndexWriterConfig() |
long |
getPurgeFrequency() |
TimeUnit |
getPurgeFrequencyUnits() |
QueryDecomposer |
getQueryDecomposer() |
MonitorQuerySerializer |
getQuerySerializer() |
int |
getQueryUpdateBufferSize() |
MonitorConfiguration |
setIndexPath(Path indexPath,
MonitorQuerySerializer serializer) |
MonitorConfiguration |
setPurgeFrequency(long frequency,
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
|
public MonitorConfiguration setIndexPath(Path indexPath, MonitorQuerySerializer serializer)
public IndexWriter buildIndexWriter() throws IOException
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, TimeUnit units)
frequency
- the frequency valueunits
- the frequency unitspublic long getPurgeFrequency()
public TimeUnit getPurgeFrequencyUnits()
public MonitorConfiguration setQueryUpdateBufferSize(int size)
size
- how many queries will be buffered in memory before being committed to the queryindexpublic int getQueryUpdateBufferSize()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.