Class DBReceiverJob

java.lang.Object
org.apache.log4j.spi.ComponentBase
org.apache.log4j.db.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 Details

    • sqlException

      String sqlException
    • sqlProperties

      String sqlProperties
    • sqlSelect

      String sqlSelect
    • lastId

      long lastId
    • parentDBReceiver

      DBReceiver parentDBReceiver
  • Constructor Details

  • Method Details

    • execute

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

      void closeConnection(Connection connection)
    • getProperties

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

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