org.apache.log4j.db
Class DBReceiver

java.lang.Object
  extended by org.apache.log4j.spi.ComponentBase
      extended by org.apache.log4j.plugins.PluginSkeleton
          extended by org.apache.log4j.plugins.Receiver
              extended by org.apache.log4j.db.DBReceiver
All Implemented Interfaces:
org.apache.log4j.plugins.Pauseable, org.apache.log4j.plugins.Plugin, org.apache.log4j.spi.Component, org.apache.log4j.spi.OptionHandler, org.apache.log4j.spi.Thresholdable, org.apache.log4j.xml.UnrecognizedElementHandler

public class DBReceiver
extends org.apache.log4j.plugins.Receiver
implements org.apache.log4j.plugins.Pauseable, org.apache.log4j.xml.UnrecognizedElementHandler

Author:
Scott Deboy , Ceki Gülcü

Field Summary
 
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()
           
 ConnectionSource getConnectionSource()
           
 int getRefreshMillis()
           
 boolean isPaused()
           
 boolean parseUnrecognizedElement(org.w3c.dom.Element element, java.util.Properties props)
           
 void setConnectionSource(ConnectionSource connectionSource)
           
 void setPaused(boolean paused)
           
 void setRefreshMillis(int refreshMillis)
           
 void shutdown()
           
 
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()
Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler

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()
Specified by:
shutdown in interface org.apache.log4j.plugins.Plugin

setPaused

public void setPaused(boolean paused)
Specified by:
setPaused in interface org.apache.log4j.plugins.Pauseable

isPaused

public boolean isPaused()
Specified by:
isPaused in interface org.apache.log4j.plugins.Pauseable

parseUnrecognizedElement

public boolean parseUnrecognizedElement(org.w3c.dom.Element element,
                                        java.util.Properties props)
                                 throws java.lang.Exception
Specified by:
parseUnrecognizedElement in interface org.apache.log4j.xml.UnrecognizedElementHandler
Throws:
java.lang.Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.