net.sf.logdistiller.plugins
Class SamplingPlugin
java.lang.Object
net.sf.logdistiller.LogDistillation.Plugin
net.sf.logdistiller.plugins.FreqPlugin
net.sf.logdistiller.plugins.SamplingPlugin
- All Implemented Interfaces:
- Serializable
public class SamplingPlugin
- extends FreqPlugin
Log sampling plugin: works like FreqPlugin, but saves some log events to a log file.
Parameters (added to FreqPlugin's parameters):
sampling.filename (default: [id]-sampling.log): name of the file to save the sample of
log events for each attribute's value.
sampling.maxCount (default: 10, -1 = no limit): number of log events to save for each attribute's
value.
sampling.maxSize (default: -1 = no limit): maximum size (in kb) of the sample file
- Since:
- 0.7
- See Also:
FreqPlugin,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- See Also:
- Constant Field Values
TYPE
public static final Plugin TYPE
SamplingPlugin
public SamplingPlugin(LogDistiller.Plugin definition)
begin
public void begin(File destinationDirectory)
throws FileNotFoundException
- Overrides:
begin in class FreqPlugin
- Throws:
FileNotFoundException
addLogEvent
public void addLogEvent(LogEvent logEvent)
throws IOException
- Overrides:
addLogEvent in class FreqPlugin
- Throws:
IOException
end
public void end()
throws IOException
- Overrides:
end in class FreqPlugin
- Throws:
IOException
addLinkIntoReport
protected void addLinkIntoReport(ReportFormat.PluginReport report)
- Overrides:
addLinkIntoReport in class FreqPlugin
Copyright © 2004-2009. All Rights Reserved.