Class DBReceiver

    • Field Detail

      • DEFAULT_REFRESH_MILLIS

        static int DEFAULT_REFRESH_MILLIS
        By default we refresh data every 1000 milliseconds.
        See Also:
        setRefreshMillis(int)
      • refreshMillis

        int refreshMillis
      • paused

        boolean paused
    • 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()
        Description copied from interface: Plugin
        Call when the plugin should be stopped.
        Specified by:
        shutdown in interface Plugin
      • setPaused

        public void setPaused​(boolean paused)
        Description copied from interface: Pauseable
        Set paused state.
        Specified by:
        setPaused in interface Pauseable
        Parameters:
        paused - new value
      • isPaused

        public boolean isPaused()
        Description copied from interface: Pauseable
        Get paused state.
        Specified by:
        isPaused in interface Pauseable
        Returns:
        paused state.
      • 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