|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.server.dqp.service.tracker.DatabaseCommandLogger
public class DatabaseCommandLogger
Constructor Summary | |
---|---|
DatabaseCommandLogger()
|
Method Summary | |
---|---|
void |
close()
Close this service provider, release any external resources |
void |
dataSourceCommandEnd(long timestamp,
java.lang.String requestID,
long sourceCommandID,
java.lang.String subTransactionID,
java.lang.String modelName,
java.lang.String connectorBindingName,
java.lang.String sessionID,
java.lang.String principal,
int finalRowCount,
boolean isCancelled,
boolean errorOccurred,
ExecutionContext context)
Data source-specific command has ended. |
void |
dataSourceCommandStart(long timestamp,
java.lang.String requestID,
long sourceCommandID,
java.lang.String subTransactionID,
java.lang.String modelName,
java.lang.String connectorBindingName,
java.lang.String sessionID,
java.lang.String principal,
java.lang.String sql,
ExecutionContext context)
A data source-specific command has started. |
void |
initialize(java.util.Properties props)
Initialize this service provider with the specified properties. |
boolean |
isStopped()
Utility method to return whether the log manager for this VM is currently stopped. |
void |
userCommandEnd(long timestamp,
java.lang.String requestID,
java.lang.String transactionID,
java.lang.String sessionID,
java.lang.String principal,
java.lang.String vdbName,
java.lang.String vdbVersion,
int finalRowCount,
boolean isCancelled,
boolean errorOccurred)
A user command has ended. |
void |
userCommandStart(long timestamp,
java.lang.String requestID,
java.lang.String transactionID,
java.lang.String sessionID,
java.lang.String applicationName,
java.lang.String principal,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String sql)
A user command has started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseCommandLogger()
Method Detail |
---|
public boolean isStopped()
public void initialize(java.util.Properties props)
CommandLoggerSPI
initialize
in interface CommandLoggerSPI
props
- Initialialization propertiespublic void close()
CommandLoggerSPI
close
in interface CommandLoggerSPI
public void dataSourceCommandEnd(long timestamp, java.lang.String requestID, long sourceCommandID, java.lang.String subTransactionID, java.lang.String modelName, java.lang.String connectorBindingName, java.lang.String sessionID, java.lang.String principal, int finalRowCount, boolean isCancelled, boolean errorOccurred, ExecutionContext context)
CommandLoggerSPI
dataSourceCommandEnd
in interface CommandLoggerSPI
timestamp
- time in milliseconds marking the end of the source command.requestID
- Unique command ID.sourceCommandID
- unique ID of source command, which is also the
ID of the plan node representing that source command.subTransactionID
- Unique subtransaction ID (optional, may be null).modelName
- Name of model.connectorBindingName
- Connector binding name.sessionID
- Session ID.principal
- User name.finalRowCount
- Final row count.isCancelled
- true if command was requested to be cancelled, false otherwise.errorOccurred
- true if error occurred, false if status is okay.public void dataSourceCommandStart(long timestamp, java.lang.String requestID, long sourceCommandID, java.lang.String subTransactionID, java.lang.String modelName, java.lang.String connectorBindingName, java.lang.String sessionID, java.lang.String principal, java.lang.String sql, ExecutionContext context)
CommandLoggerSPI
dataSourceCommandStart
in interface CommandLoggerSPI
timestamp
- time in milliseconds marking the start of the source command.requestID
- Unique command ID.sourceCommandID
- unique ID of source command, which is also the
ID of the plan node representing that source command.subTransactionID
- Unique subtransaction ID (optional, may be null).modelName
- Name of model.connectorBindingName
- Connector binding name.sessionID
- Session ID.principal
- User name.sql
- SQL for the command.public void userCommandEnd(long timestamp, java.lang.String requestID, java.lang.String transactionID, java.lang.String sessionID, java.lang.String principal, java.lang.String vdbName, java.lang.String vdbVersion, int finalRowCount, boolean isCancelled, boolean errorOccurred)
CommandLoggerSPI
userCommandEnd
in interface CommandLoggerSPI
timestamp
- time in milliseconds marking the end of the command.requestID
- Unique command ID.transactionID
- Unique transaction ID (optional, may be null)sessionID
- Session ID.principal
- User name.vdbName
- VDB name.vdbVersion
- VDB version.finalRowCount
- total rows returned to the user.isCancelled
- true if command was requested to be cancelled, false otherwise.errorOccurred
- true if error occurred, false if status is okay.public void userCommandStart(long timestamp, java.lang.String requestID, java.lang.String transactionID, java.lang.String sessionID, java.lang.String applicationName, java.lang.String principal, java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String sql)
CommandLoggerSPI
userCommandStart
in interface CommandLoggerSPI
timestamp
- time in milliseconds marking the start of the commandrequestID
- Unique command ID.transactionID
- Unique transaction ID (optional, may be null)sessionID
- Session ID.applicationName
- name of the user applicationprincipal
- User name.vdbName
- VDB name.vdbVersion
- VDB version.sql
- SQL for the command.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |