Class DBReceiverJob

  • All Implemented Interfaces:
    Job, Component

    class DBReceiverJob
    extends ComponentBase
    implements Job
    Actual retrieval of data is made by the instance of DBReceiverJob associated with DBReceiver.
    • Field Detail

      • sqlException

        java.lang.String sqlException
      • sqlProperties

        java.lang.String sqlProperties
      • sqlSelect

        java.lang.String sqlSelect
      • lastId

        long lastId
    • Constructor Detail

      • DBReceiverJob

        DBReceiverJob​(DBReceiver parent)
    • Method Detail

      • execute

        public void execute()
        Description copied from interface: Job
        Execute job.
        Specified by:
        execute in interface Job
      • closeConnection

        void closeConnection​(java.sql.Connection connection)
      • getProperties

        void getProperties​(java.sql.Connection connection,
                           long id,
                           org.apache.log4j.spi.LoggingEvent event)
                    throws java.sql.SQLException
        Retrieve the event properties from the logging_event_property table.
        Parameters:
        connection -
        id -
        event -
        Throws:
        java.sql.SQLException
      • getException

        org.apache.log4j.spi.ThrowableInformation getException​(java.sql.Connection connection,
                                                               long id)
                                                        throws java.sql.SQLException
        Retrieve the exception string representation from the logging_event_exception table.
        Parameters:
        connection -
        id -
        Throws:
        java.sql.SQLException