| Modifier and Type | Field and Description |
|---|---|
| private Connection | |
| private DataSource |
| Access | Constructor and Description |
|---|---|
| protected | AbstractJDBCTarget(final DataSource
the JDBC datasource dataSource)Creation of a new instance of the AbstractJDBCTarget. |
| Modifier and Type | Method and Description |
|---|---|
| protected final synchronized void | |
| public synchronized void | close()
Overrides org. Implements org. |
| protected synchronized void | |
| protected synchronized void | doProcessEvent(final LogEvent
the log event event)Implements abstract org. |
| protected final synchronized Connection | |
| protected synchronized boolean | Returns: true if connection is stale, false otherwiseDetect if connection is stale and should be reopened. |
| protected synchronized void | |
| protected synchronized void | |
| protected abstract void |
| m_connection | back to summary |
|---|---|
| private Connection m_connection | |
| m_dataSource | back to summary |
|---|---|
| private DataSource m_dataSource | |
| AbstractJDBCTarget | back to summary |
|---|---|
| protected AbstractJDBCTarget(final DataSource dataSource) Creation of a new instance of the AbstractJDBCTarget.
| |
| checkConnection | back to summary |
|---|---|
| protected final synchronized void checkConnection() Utility method to check connection and bring it back up if necessary. | |
| close | back to summary |
|---|---|
| public synchronized void close() Overrides org. Implements org. Shutdown target. Attempting to write to target after close() will cause errors to be logged. | |
| closeConnection | back to summary |
|---|---|
| protected synchronized void closeConnection() Close connection to underlying database. | |
| doProcessEvent | back to summary |
|---|---|
| protected synchronized void doProcessEvent(final LogEvent event) throws Exception Implements abstract org. Process a log event, via formatting and outputting it. | |
| getConnection | back to summary |
|---|---|
| protected final synchronized Connection getConnection() Utility method for subclasses to access connection.
| |
| isStale | back to summary |
|---|---|
| protected synchronized boolean isStale() Detect if connection is stale and should be reopened.
| |
| open | back to summary |
|---|---|
| protected synchronized void open() Overrides org. Startup log session. | |
| openConnection | back to summary |
|---|---|
| protected synchronized void openConnection() Open connection to underlying database. | |
| output | back to summary |
|---|---|
| protected abstract void output(LogEvent event) Output a log event to DB. This must be implemented by subclasses.
| |