net.sf.logdistiller.plugins
Class SamplingPlugin

java.lang.Object
  extended bynet.sf.logdistiller.LogDistillation.Plugin
      extended bynet.sf.logdistiller.plugins.FreqPlugin
          extended bynet.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):

See Also:
FreqPlugin, Serialized Form

Field Summary
static String ID
           
static Plugin TYPE
           
 
Fields inherited from class net.sf.logdistiller.LogDistillation.Plugin
definition, group
 
Constructor Summary
SamplingPlugin(LogDistiller.Plugin definition)
           
 
Method Summary
protected  void addLinkIntoReport(ReportFormat.PluginReport report)
           
 void addLogEvent(LogEvent logEvent)
           
 void begin(File destinationDirectory)
           
 void end()
           
 
Methods inherited from class net.sf.logdistiller.plugins.FreqPlugin
addFreqLogEvent, appendGlobalReport, appendGroupReport
 
Methods inherited from class net.sf.logdistiller.LogDistillation.Plugin
getDefinition, getGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

TYPE

public static final Plugin TYPE
Constructor Detail

SamplingPlugin

public SamplingPlugin(LogDistiller.Plugin definition)
Method Detail

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-2008. All Rights Reserved.