com.metamatrix.common.log.reader
Class DBLogReader
java.lang.Object
com.metamatrix.common.log.reader.DBLogReader
- All Implemented Interfaces:
- LogReader
public class DBLogReader
- extends java.lang.Object
- implements LogReader
Reads log entries from the repository database.
Field Summary |
static java.lang.String |
DEFAULT_TABLE_NAME
|
protected java.lang.String |
quote
|
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. |
protected java.lang.String |
tableName
|
Method Summary |
protected void |
close(java.sql.Connection connection)
|
protected java.sql.Connection |
getConnection()
|
java.util.List |
getLogEntries(java.util.Date startTime,
java.util.Date endTime,
java.util.List levels,
java.util.List contexts,
int maxRows)
|
void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TABLE_PROPERTY_NAME
public static final 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.
This is an optional property that defaults to "log".
- See Also:
- Constant Field Values
DEFAULT_TABLE_NAME
public static final java.lang.String DEFAULT_TABLE_NAME
- See Also:
- Constant Field Values
tableName
protected java.lang.String tableName
quote
protected java.lang.String quote
DBLogReader
public DBLogReader()
throws MetaMatrixException
- Throws:
MetaMatrixException
init
public void init()
throws MetaMatrixException
- Throws:
MetaMatrixException
getConnection
protected java.sql.Connection getConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
close
protected void close(java.sql.Connection connection)
getLogEntries
public java.util.List getLogEntries(java.util.Date startTime,
java.util.Date endTime,
java.util.List levels,
java.util.List contexts,
int maxRows)
throws MetaMatrixComponentException
- Specified by:
getLogEntries
in interface LogReader
- Throws:
MetaMatrixComponentException
- Since:
- 4.3
- See Also:
RuntimeStateAdminAPI.getLogEntries(java.util.Date, java.util.Date, java.util.List, java.util.List, int)
Copyright © 2009. All Rights Reserved.