public class Scrutinizer
extends java.lang.Object
Recognizer
and SplitCounter
.
Scrutinizer
loads SplitCounter
and Recognizer
from splitcounters.properties and recognizers.properties.
If any of the recognizers or splitcounters configured on the properties files can't be laoded, scrutinizer will shut down the
webagent due to wrong user configuration.
While SessionRead
is open and streaming, Scrutinizer
will read if some parameters ( scrutinize, pkMax and pkLen)
are being sent and will be automatically updated.
Parameter "scrutinize" is used to turn Scrutinizer on/off.
Parameter pkMax and pkLen are used to define a partition key candidateModifier and Type | Field and Description |
---|---|
static java.util.List<BaseRecognizer> |
recognizers |
static java.util.List<BaseSplitCounter> |
splitCounters |
protected static java.util.logging.Logger |
tracer |
Constructor and Description |
---|
Scrutinizer(com.sqlstream.webagent.Json_rowtype rowType,
com.sqlstream.webagent.Json_readCommand c) |
Modifier and Type | Method and Description |
---|---|
ScrutinizeResult |
scrutinize(com.sqlstream.webagent.Json_row row,
com.sqlstream.webagent.throttler.SessionThrottler throttler) |
boolean |
shouldScrutinize() |
void |
updateOptions(com.sqlstream.webagent.Json_readCommand command) |
protected static final java.util.logging.Logger tracer
public static java.util.List<BaseRecognizer> recognizers
public static java.util.List<BaseSplitCounter> splitCounters
public Scrutinizer(com.sqlstream.webagent.Json_rowtype rowType, com.sqlstream.webagent.Json_readCommand c)
public ScrutinizeResult scrutinize(com.sqlstream.webagent.Json_row row, com.sqlstream.webagent.throttler.SessionThrottler throttler)
public boolean shouldScrutinize()
public void updateOptions(com.sqlstream.webagent.Json_readCommand command)