Class DBReceiverJob
java.lang.Object
org.apache.log4j.component.spi.ComponentBase
org.apache.log4j.receivers.db.DBReceiverJob
Actual retrieval of data is made by the instance of DBReceiverJob associated
with DBReceiver.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) DBReceiver(package private) String(package private) String(package private) StringFields inherited from class ComponentBase
repository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcloseConnection(Connection connection) voidexecute()Execute job.(package private) org.apache.log4j.spi.ThrowableInformationgetException(Connection connection, long id) Retrieve the exception string representation from the logging_event_exception table.(package private) voidgetProperties(Connection connection, long id, org.apache.log4j.spi.LoggingEvent event) Retrieve the event properties from the logging_event_property table.Methods inherited from class ComponentBase
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
-
Field Details
-
sqlException
String sqlException -
sqlProperties
String sqlProperties -
sqlSelect
String sqlSelect -
lastId
long lastId -
parentDBReceiver
DBReceiver parentDBReceiver
-
-
Constructor Details
-
DBReceiverJob
DBReceiverJob(DBReceiver parent)
-
-
Method Details
-
execute
-
closeConnection
-
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
-