net.sf.logdistiller
Class LogDistiller

java.lang.Object
  extended by net.sf.logdistiller.LogDistiller
All Implemented Interfaces:
Serializable

public class LogDistiller
extends Object
implements Serializable

A LogDistiller configuration.

See Also:
LogDistillation, DOMConfigurator, Serialized Form

Nested Class Summary
static class LogDistiller.Category
          Definition of a category, which will contain groups.
static class LogDistiller.Group
          Definition of a group of events: events corresponding to its conditions will be collected in it.
static class LogDistiller.LogType
          Definition of the log type used for this logdistiller configuration, with its parameters.
static class LogDistiller.Output
          Definition of the global output.
static class LogDistiller.Plugin
           
static class LogDistiller.Report
          Definition of a report, with its publisher, formant and other params.
 
Constructor Summary
LogDistiller(String id, String description, LogDistiller.LogType logtype, LogDistiller.Output output, LogDistiller.Category[] categories, LogDistiller.Group[] groups)
           
LogDistiller(String id, String description, LogDistiller.LogType logtype, LogDistiller.Output output, LogDistiller.Category[] categories, LogDistiller.Group[] groups, boolean old)
           
 
Method Summary
 void addWarning(String msg)
           
 void buildCompatibilityLogType(String type)
          To keep old rules configuration files running (without logtype element), create a LogType instance from the type provided.
 void checkLogtypeAttributes(LogType.Description description)
           
 LogDistiller.Category[] getCategories()
           
 String getDescription()
           
 LogDistiller.Group[] getGroups()
           
 String getId()
           
 LogDistiller.LogType getLogType()
           
 LogDistiller.Output getOutput()
           
static String getVersion()
           
 List getWarnings()
           
 boolean isOld()
          is this LogDistiller read from an old configuration file (DTD older than 1.3)?
 void updateRef()
          Update the references from internal objects to their parent LogDistiller instance and other referenced object not initialized at creation time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogDistiller

public LogDistiller(String id,
                    String description,
                    LogDistiller.LogType logtype,
                    LogDistiller.Output output,
                    LogDistiller.Category[] categories,
                    LogDistiller.Group[] groups,
                    boolean old)

LogDistiller

public LogDistiller(String id,
                    String description,
                    LogDistiller.LogType logtype,
                    LogDistiller.Output output,
                    LogDistiller.Category[] categories,
                    LogDistiller.Group[] groups)
Method Detail

updateRef

public void updateRef()
Update the references from internal objects to their parent LogDistiller instance and other referenced object not initialized at creation time.


getId

public String getId()

getDescription

public String getDescription()

getLogType

public LogDistiller.LogType getLogType()

isOld

public boolean isOld()
is this LogDistiller read from an old configuration file (DTD older than 1.3)?


buildCompatibilityLogType

public void buildCompatibilityLogType(String type)
To keep old rules configuration files running (without logtype element), create a LogType instance from the type provided. Parameters from the logtype are extracted from global parameters: every logevent.myParam global parameter is inserted as myParam.

Parameters:
type - String the log type to consider

getOutput

public LogDistiller.Output getOutput()

getCategories

public LogDistiller.Category[] getCategories()

getGroups

public LogDistiller.Group[] getGroups()

getWarnings

public List getWarnings()

addWarning

public void addWarning(String msg)

checkLogtypeAttributes

public void checkLogtypeAttributes(LogType.Description description)

getVersion

public static String getVersion()


Copyright © 2004-2009. All Rights Reserved.