public class Count extends ConditionedProcessor implements StatisticsService
| Modifier and Type | Field and Description |
|---|---|
(package private) Statistics |
currentStatistics |
(package private) String |
file |
(package private) String |
groupBy |
(package private) String |
history |
(package private) History<Statistics> |
historyStats |
(package private) Long |
lastTime |
(package private) static org.slf4j.Logger |
log |
(package private) String |
prefix |
(package private) String |
timeFormat |
(package private) Long |
timeInterval |
(package private) String |
timeKey |
(package private) Long |
timeWindow |
(package private) String |
window |
conditioncontext| Constructor and Description |
|---|
Count() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFile() |
String |
getGroupBy() |
String |
getHistory() |
String |
getPrefix() |
Statistics |
getStatistics() |
String |
getTimeKey() |
String |
getWindow() |
void |
init(ProcessContext ctx) |
Data |
processMatchingData(Data input) |
void |
reset() |
void |
setFile(String file) |
void |
setGroupBy(String channelKey) |
void |
setHistory(String window) |
void |
setPrefix(String prefix) |
void |
setTimeKey(String timeKey) |
void |
setWindow(String interval) |
getCondition, matches, process, setConditionfinish, resetStatestatic org.slf4j.Logger log
String groupBy
String timeKey
String prefix
String window
Long timeInterval
String history
Long timeWindow
String timeFormat
History<Statistics> historyStats
String file
Long lastTime
final Statistics currentStatistics
public Data processMatchingData(Data input)
processMatchingData in class ConditionedProcessorProcessor.process(stream.Data)public void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionAbstractProcessor.init(stream.ProcessContext)public String getGroupBy()
public void setGroupBy(String channelKey)
channelKey - the channelKey to setpublic String getTimeKey()
public void setTimeKey(String timeKey)
timeKey - the timeKey to setpublic String getHistory()
public void setHistory(String window)
window - the window to setpublic String getWindow()
public void setWindow(String interval)
interval - the interval to setpublic String getPrefix()
public void setPrefix(String prefix)
prefix - the prefix to setpublic String getFile()
public void setFile(String file)
file - the file to setpublic void reset()
throws Exception
reset in interface ServiceExceptionService.reset()public Statistics getStatistics()
getStatistics in interface StatisticsServiceStatisticsService.getStatistics()Copyright © 2018. All rights reserved.