net.sf.logdistiller
Class LogDistillation.Group

java.lang.Object
  extended by net.sf.logdistiller.LogDistillation.Group
All Implemented Interfaces:
Serializable
Enclosing class:
LogDistillation

public class LogDistillation.Group
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
LogDistillation.Group(LogDistiller.Group definition, LogDistillation.Category category)
           
 
Method Summary
 boolean accept(LogEvent le)
          Check if given LogEvent meet one of the conditions defined.
protected  void addLogEvent(LogEvent le, Condition condition)
          Add a LogEvent to the current Group.
 long getBytes()
           
 LogDistillation.Category getCategory()
           
 LogDistiller.Group getDefinition()
           
 int getEventCount()
           
 LogDistillation getLogdistillation()
           
 File getLogFile()
           
 long getMaxSaveBytes()
           
 int getMaxSaveCount()
           
 LogDistillation.Plugin[] getPlugins()
           
 int getSavedEventCount()
           
 boolean isSkip()
           
 void setSkip(boolean skip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogDistillation.Group

public LogDistillation.Group(LogDistiller.Group definition,
                             LogDistillation.Category category)
Method Detail

getLogdistillation

public LogDistillation getLogdistillation()

getCategory

public LogDistillation.Category getCategory()

setSkip

public void setSkip(boolean skip)

isSkip

public boolean isSkip()

accept

public boolean accept(LogEvent le)
               throws IOException
Check if given LogEvent meet one of the conditions defined.

Parameters:
le - LogEvent the LogEvent to check
Returns:
boolean true if the LogEvent meets a condition
Throws:
IOException

addLogEvent

protected void addLogEvent(LogEvent le,
                           Condition condition)
                    throws IOException
Add a LogEvent to the current Group.

Parameters:
le - LogEvent
condition - the condition that matched the LogEvent
Throws:
IOException

getDefinition

public LogDistiller.Group getDefinition()

getEventCount

public int getEventCount()

getSavedEventCount

public int getSavedEventCount()

getBytes

public long getBytes()

getLogFile

public File getLogFile()

getMaxSaveCount

public int getMaxSaveCount()

getMaxSaveBytes

public long getMaxSaveBytes()

getPlugins

public LogDistillation.Plugin[] getPlugins()


Copyright © 2004-2009. All Rights Reserved.