|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.logdistiller.LogDistillation.Plugin
net.sf.logdistiller.plugins.FreqPlugin
public class FreqPlugin
Counts the frequency of each attribute's value.
Parameters:
attribute
(mandatory): the attribute's name
regexp
: use a regexp to extract value taken in account for the first attribute
regexp.group
(default: -1): which group to extract? If negative, all groups will be concatenated
attribute2
(default: none): second attribute to append
attribute3
(default: none): third attribute to append
attributes
(mandatory): the attributes' names, comma separated (no count limit)
sortItem
(default: count
): sort on which item? count
, value
,
valueLength
reverseOrder
(default: false
): by default, most frequent value are displayed first
valueDescriptions
: description to insert in the report instead of corresponding value (in java
properties format)
maxGlobalReport
(default: 5): maximum number of values inserted in global report
maxGroupReport
(default: 25): maximum number of values inserted in group report
SamplingPlugin
,
Serialized FormNested Class Summary | |
---|---|
static class |
FreqPlugin.Freq
|
Field Summary | |
---|---|
protected String[] |
attributes
|
protected LogType.AttributeInfo[] |
attributesInfo
|
static String |
ID
|
protected SortedSet |
sorted
|
static Plugin |
TYPE
|
Fields inherited from class net.sf.logdistiller.LogDistillation.Plugin |
---|
definition, group |
Constructor Summary | |
---|---|
|
FreqPlugin(LogDistiller.Plugin definition)
|
protected |
FreqPlugin(LogDistiller.Plugin definition,
boolean checkSampling)
|
Method Summary | |
---|---|
void |
addLogEvent(LogEvent logEvent)
Add a log event to this plugin instance. |
protected void |
addLogEventToFreq(LogEvent logEvent,
FreqPlugin.Freq freq)
|
void |
appendGlobalReport(ReportFormat.PluginReport report)
Append a summary of this plugin instance results to the global report. |
void |
appendGroupReport(ReportFormat.PluginReport report)
Append a summary of this plugin instance results to the group report. |
protected void |
appendLinkToFreqReport(ReportFormat.PluginReport report)
Append links to freq reports, for freq extensions. |
void |
begin(File destinationDirectory)
Begin the log distillation for this plugin instance. |
void |
end()
End the log distillation for this plugin instance. |
Methods inherited from class net.sf.logdistiller.LogDistillation.Plugin |
---|
addLogEvent, getDefinition, getGroup, getId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
public static final Plugin TYPE
protected SortedSet sorted
protected final String[] attributes
protected transient LogType.AttributeInfo[] attributesInfo
Constructor Detail |
---|
public FreqPlugin(LogDistiller.Plugin definition)
protected FreqPlugin(LogDistiller.Plugin definition, boolean checkSampling)
Method Detail |
---|
public void begin(File destinationDirectory) throws FileNotFoundException
LogDistillation.Plugin
begin
in class LogDistillation.Plugin
destinationDirectory
- the directory where reports will be stored.
FileNotFoundException
public void addLogEvent(LogEvent logEvent) throws IOException
LogDistillation.Plugin
addLogEvent
in class LogDistillation.Plugin
logEvent
- the log event.
IOException
protected void addLogEventToFreq(LogEvent logEvent, FreqPlugin.Freq freq) throws IOException
IOException
public void end() throws IOException
LogDistillation.Plugin
end
in class LogDistillation.Plugin
IOException
public void appendGroupReport(ReportFormat.PluginReport report)
LogDistillation.Plugin
appendGroupReport
in class LogDistillation.Plugin
report
- the plugin report formatterpublic void appendGlobalReport(ReportFormat.PluginReport report)
LogDistillation.Plugin
appendGlobalReport
in class LogDistillation.Plugin
report
- the plugin report formatterprotected void appendLinkToFreqReport(ReportFormat.PluginReport report)
report
- the report formatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |