Package 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:
Pauseable,Plugin,Component,org.apache.log4j.spi.OptionHandler,Thresholdable,org.apache.log4j.xml.UnrecognizedElementHandler
public class DBReceiver extends Receiver implements Pauseable, org.apache.log4j.xml.UnrecognizedElementHandler
- Author:
- Scott Deboy <sdeboy@apache.org>, 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
Constructors Constructor Description DBReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateOptions()ConnectionSourcegetConnectionSource()intgetRefreshMillis()booleanisPaused()Get paused state.booleanparseUnrecognizedElement(Element element, Properties props)voidsetConnectionSource(ConnectionSource connectionSource)voidsetPaused(boolean paused)Set paused state.voidsetRefreshMillis(int refreshMillis)voidshutdown()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
-
-
-
-
Method Detail
-
activateOptions
public void activateOptions()
- Specified by:
activateOptionsin interfaceorg.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()
Description copied from interface:PluginCall when the plugin should be stopped.
-
setPaused
public void setPaused(boolean paused)
Description copied from interface:PauseableSet paused state.
-
isPaused
public boolean isPaused()
Description copied from interface:PauseableGet paused state.
-
parseUnrecognizedElement
public boolean parseUnrecognizedElement(Element element, Properties props) throws Exception
- Specified by:
parseUnrecognizedElementin interfaceorg.apache.log4j.xml.UnrecognizedElementHandler- Throws:
Exception
-
-