Log4j 1.3alpha-3

org.apache.log4j.chainsaw
Class Generator

java.lang.Object
  |
  +--org.apache.log4j.plugins.PluginSkeleton
        |
        +--org.apache.log4j.plugins.Receiver
              |
              +--org.apache.log4j.chainsaw.Generator
All Implemented Interfaces:
OptionHandler, Plugin, java.lang.Runnable, Thresholdable

public class Generator
extends Receiver
implements java.lang.Runnable

Class designed to stress, and/or test the Chainsaw GUI by sending it lots of Logging Events.

Author:
Scott Deboy

Field Summary
 
Fields inherited from class org.apache.log4j.plugins.Receiver
thresholdLevel
 
Fields inherited from class org.apache.log4j.plugins.PluginSkeleton
active, name, repository
 
Constructor Summary
Generator(java.lang.String name)
           
 
Method Summary
 void activateOptions()
          Activate the options that were previously set with calls to option setters.
 void run()
           
 void shutdown()
          Call when the plugin should be stopped.
 
Methods inherited from class org.apache.log4j.plugins.Receiver
doPost, getLogger, getThreshold, isAsSevereAsThreshold, setThreshold
 
Methods inherited from class org.apache.log4j.plugins.PluginSkeleton
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isActive, isEquivalent, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator(java.lang.String name)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

shutdown

public void shutdown()
Description copied from interface: Plugin
Call when the plugin should be stopped.

Specified by:
shutdown in interface Plugin

activateOptions

public void activateOptions()
Description copied from interface: OptionHandler
Activate the options that were previously set with calls to option setters.

This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.

For example, the FileAppender has the File and Append options both of which are ambigous until the other is also set.

Specified by:
activateOptions in interface OptionHandler

Log4j 1.3alpha-3

Copyright 2000-2003 Apache Software Foundation.