Package org.apache.log4j.db
Class DBReceiverJob
java.lang.Object
org.apache.log4j.spi.ComponentBase
org.apache.log4j.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) String
Fields inherited from class org.apache.log4j.spi.ComponentBase
repository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
closeConnection
(Connection connection) void
execute()
Execute job.(package private) org.apache.log4j.spi.ThrowableInformation
getException
(Connection connection, long id) Retrieve the exception string representation from the logging_event_exception table.(package private) void
getProperties
(Connection connection, long id, org.apache.log4j.spi.LoggingEvent event) Retrieve the event properties from the logging_event_property table.Methods inherited from class org.apache.log4j.spi.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
public void execute()Description copied from interface:Job
Execute job. -
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
-