| Constructor and Description |
|---|
JdbcWriter() |
JdbcWriter(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
void |
flush()
Outputs buffered log entries immediately.
|
Collection<LogEntryValue> |
getRequiredLogEntryValues()
Returns all log entry values that are required for outputting a log entry.
|
void |
write(LogEntry logEntry)
Outputs a given log entry.
|
public JdbcWriter()
throws NamingException,
SQLException
NamingException - Data source cannot be foundSQLException - Database connection cannot be establishedpublic JdbcWriter(Map<String,String> properties) throws NamingException, SQLException
properties - Configuration for writerNamingException - Data source cannot be foundSQLException - Database connection cannot be establishedpublic Collection<LogEntryValue> getRequiredLogEntryValues()
WritergetRequiredLogEntryValues in interface WriterLogEntry objectspublic void write(LogEntry logEntry) throws SQLException
Writerwrite in interface WriterlogEntry - Log entry to outputSQLExceptionpublic void flush()
throws SQLException
Writerflush in interface WriterSQLExceptionpublic void close()
throws SQLException
Writerclose in interface WriterSQLExceptionCopyright © 2020. All rights reserved.