com.sun.idm.logging.audit
Class JdbcPublisher
java.lang.Object
com.sun.idm.logging.audit.AbstractAuditLogPublisher
com.sun.idm.logging.audit.JdbcPublisher
- All Implemented Interfaces:
- AuditLogPublisher, LogPublisher
- public class JdbcPublisher
- extends com.sun.idm.logging.audit.AbstractAuditLogPublisher
Sample audit publisher that records audit messages
into a database table using JDBC.
Methods inherited from class com.sun.idm.logging.audit.AbstractAuditLogPublisher |
getConfiguration, getFormatter, handleError, setFormatter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
CLASS
public static final java.lang.String CLASS
- See Also:
- Constant Field Values
CONFIGURATION_OPTIONS
public static final java.util.List CONFIGURATION_OPTIONS
JdbcPublisher
public JdbcPublisher()
getConfigurationOptions
public java.util.List getConfigurationOptions()
- Returns:
- list of configuration options available for the publisher implementation
Note that configuration options does not return the settings, only the available
attributes.
configure
public void configure(java.util.Map options)
throws WavesetException
- Description copied from interface:
AuditLogPublisher
- Configures the publisher with a set of options.
- Throws:
WavesetException
getDisplayName
public java.lang.String getDisplayName()
publish
public void publish(java.util.Map record,
LoggingErrorHandler handler)
- Description copied from interface:
LogPublisher
- Sends the log message to the logging endpoint managed
by the LogPublisher.
Calling this method after #shutdown() has been called
is an error.
- Parameters:
record
- - the log message to publishhandler
- - the error handler to notify if an
exception occurs while publishing the record
shutdown
public void shutdown()
- Description copied from interface:
LogPublisher
- Releases any resources held by the LogPublisher.