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()
Writer
getRequiredLogEntryValues
in interface Writer
LogEntry
objectspublic void write(LogEntry logEntry) throws SQLException
Writer
write
in interface Writer
logEntry
- Log entry to outputSQLException
public void flush() throws SQLException
Writer
flush
in interface Writer
SQLException
public void close() throws SQLException
Writer
close
in interface Writer
SQLException
Copyright © 2020. All rights reserved.