Package org.apache.log4j.receivers.db
Class DBReceiver
- java.lang.Object
-
- org.apache.log4j.component.spi.ComponentBase
-
- org.apache.log4j.component.plugins.PluginSkeleton
-
- org.apache.log4j.component.plugins.Receiver
-
- org.apache.log4j.receivers.db.DBReceiver
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConnectionSource
connectionSource
(package private) static int
DEFAULT_REFRESH_MILLIS
By default we refresh data every 1000 milliseconds.(package private) boolean
paused
(package private) DBReceiverJob
receiverJob
(package private) int
refreshMillis
-
Fields inherited from class org.apache.log4j.component.plugins.Receiver
thresholdLevel
-
Fields inherited from class org.apache.log4j.component.plugins.PluginSkeleton
active, name
-
Fields inherited from class org.apache.log4j.component.spi.ComponentBase
repository
-
-
Constructor Summary
Constructors Constructor Description DBReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateOptions()
ConnectionSource
getConnectionSource()
int
getRefreshMillis()
boolean
isPaused()
Get paused state.boolean
parseUnrecognizedElement(org.w3c.dom.Element element, java.util.Properties props)
void
setConnectionSource(ConnectionSource connectionSource)
void
setPaused(boolean paused)
Set paused state.void
setRefreshMillis(int refreshMillis)
void
shutdown()
Call when the plugin should be stopped.-
Methods inherited from class org.apache.log4j.component.plugins.Receiver
doPost, getThreshold, isAsSevereAsThreshold, setThreshold
-
Methods inherited from class org.apache.log4j.component.plugins.PluginSkeleton
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isActive, isEquivalent, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setName
-
Methods inherited from class org.apache.log4j.component.spi.ComponentBase
getLogger, getNonFloodingLogger, resetErrorCount
-
-
-
-
Field Detail
-
DEFAULT_REFRESH_MILLIS
static int DEFAULT_REFRESH_MILLIS
By default we refresh data every 1000 milliseconds.- See Also:
setRefreshMillis(int)
-
connectionSource
ConnectionSource connectionSource
-
refreshMillis
int refreshMillis
-
receiverJob
DBReceiverJob receiverJob
-
paused
boolean paused
-
-
Method Detail
-
activateOptions
public void activateOptions()
- Specified by:
activateOptions
in 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:Plugin
Call when the plugin should be stopped.
-
setPaused
public void setPaused(boolean paused)
Description copied from interface:Pauseable
Set paused state.
-
isPaused
public boolean isPaused()
Description copied from interface:Pauseable
Get paused state.
-
parseUnrecognizedElement
public boolean parseUnrecognizedElement(org.w3c.dom.Element element, java.util.Properties props) throws java.lang.Exception
- Specified by:
parseUnrecognizedElement
in interfaceorg.apache.log4j.xml.UnrecognizedElementHandler
- Throws:
java.lang.Exception
-
-