|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.platform.security.audit.destination.AbstractAuditDestination
com.metamatrix.platform.security.audit.destination.DatabaseAuditDestination
public class DatabaseAuditDestination
| Nested Class Summary | |
|---|---|
static class |
DatabaseAuditDestination.ColumnName
|
| Field Summary | |
|---|---|
static java.lang.String |
DATABASE_PROPERTY_NAME
The name of the property that contains the name JDBC database to which log messages are to be recorded. |
protected static int |
DEFAULT_MAX_GENERAL_LENGTH
|
protected static int |
DEFAULT_MAX_RESOURCE_LENGTH
|
protected static java.lang.String |
DEFAULT_RESOURCE_DELIMITER
|
protected static java.lang.String |
DEFAULT_TABLE_NAME
|
static java.lang.String |
MAX_GENERAL_LENGTH_PROPERTY_NAME
The name of the property that contains the maximum length allowed for the general column (exception message and exception). |
static java.lang.String |
MAX_RESOURCE_LENGTH_PROPERTY_NAME
The name of the property that contains the maximum length allowed for the column that contains the resources portion. |
static java.lang.String |
RESOURCE_DELIM_PROPERTY_NAME
The name of the property that contains the delimiter used between resources. |
static java.lang.String |
TABLE_PROPERTY_NAME
The name of the property that contains the name of the table to which log messages are to be recorded. |
| Fields inherited from class com.metamatrix.platform.security.audit.destination.AbstractAuditDestination |
|---|
DEFAULT_LOG_FORMAT_PROPERTY_NAME |
| Fields inherited from interface com.metamatrix.platform.security.audit.destination.AuditDestination |
|---|
PROPERTY_PREFIX |
| Constructor Summary | |
|---|---|
DatabaseAuditDestination()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Return description |
java.util.List |
getPropertyNames()
Get names of all properties used for this destination. |
void |
initialize(java.util.Properties props)
Initialize this destination with the specified properties. |
void |
record(AuditMessage message)
Print the message to the log destination. |
void |
recordMsg(AuditMessage message)
Print to the file writer |
void |
shutdown()
Shutdown - close database. |
| Methods inherited from class com.metamatrix.platform.security.audit.destination.AbstractAuditDestination |
|---|
getDefaultFormatClassName, getFormat, setFormat |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DATABASE_PROPERTY_NAME
public static final java.lang.String TABLE_PROPERTY_NAME
public static final java.lang.String RESOURCE_DELIM_PROPERTY_NAME
public static final java.lang.String MAX_RESOURCE_LENGTH_PROPERTY_NAME
public static final java.lang.String MAX_GENERAL_LENGTH_PROPERTY_NAME
protected static final java.lang.String DEFAULT_TABLE_NAME
protected static final java.lang.String DEFAULT_RESOURCE_DELIMITER
protected static final int DEFAULT_MAX_GENERAL_LENGTH
protected static final int DEFAULT_MAX_RESOURCE_LENGTH
| Constructor Detail |
|---|
public DatabaseAuditDestination()
| Method Detail |
|---|
public java.lang.String getDescription()
public void initialize(java.util.Properties props)
throws AuditDestinationInitFailedException
initialize in interface AuditDestinationinitialize in class AbstractAuditDestinationprops - the properties that this destination should use to initialize
itself.
AuditDestinationInitFailedException - if there was an error during initialization.public java.util.List getPropertyNames()
public void record(AuditMessage message)
AuditDestination
message - The message to print
public void recordMsg(AuditMessage message)
throws java.sql.SQLException
message - Message to print
java.sql.SQLExceptionpublic void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||