Log4j 1.3alpha-8

org.apache.log4j.db
Class DBReceiver

java.lang.Object
  |
  +--org.apache.log4j.spi.ComponentBase
        |
        +--org.apache.log4j.plugins.PluginSkeleton
              |
              +--org.apache.log4j.plugins.Receiver
                    |
                    +--org.apache.log4j.db.DBReceiver
All Implemented Interfaces:
Component, OptionHandler, Pauseable, Plugin, Thresholdable

public class DBReceiver
extends Receiver
implements Pauseable

Author:
Scott Deboy , Ceki Gülcü

Fields inherited from class org.apache.log4j.plugins.Receiver
thresholdLevel
 
Fields inherited from class org.apache.log4j.plugins.PluginSkeleton
active, name
 
Fields inherited from class org.apache.log4j.spi.ComponentBase
repository
 
Constructor Summary
DBReceiver()
           
 
Method Summary
 void activateOptions()
          Activate the options that were previously set with calls to option setters.
 ConnectionSource getConnectionSource()
           
 int getRefreshMillis()
           
 boolean isPaused()
           
 void setConnectionSource(ConnectionSource connectionSource)
           
 void setPaused(boolean paused)
           
 void setRefreshMillis(int refreshMillis)
           
 void shutdown()
          Call when the plugin should be stopped.
 
Methods inherited from class org.apache.log4j.plugins.Receiver
doPost, 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 org.apache.log4j.spi.ComponentBase
getLogger, getNonFloodingLogger, resetErrorCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBReceiver

public DBReceiver()
Method Detail

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.


setRefreshMillis

public void setRefreshMillis(int refreshMillis)

getRefreshMillis

public int getRefreshMillis()

getConnectionSource

public ConnectionSource getConnectionSource()
Returns:
Returns the connectionSource.

setConnectionSource

public void setConnectionSource(ConnectionSource connectionSource)
Parameters:
connectionSource - The connectionSource to set.

shutdown

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

setPaused

public void setPaused(boolean paused)
Specified by:
setPaused in interface Pauseable

isPaused

public boolean isPaused()
Specified by:
isPaused in interface Pauseable

Log4j 1.3alpha-8

Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.