com.metamatrix.dqp.service
Interface TrackingService

All Superinterfaces:
ApplicationService
All Known Implementing Classes:
CustomizableTrackingService, EmbeddedTrackingService

public interface TrackingService
extends ApplicationService

This service is used to log transactions and commands, as well as store profiling data.


Method Summary
 void log(java.lang.String requestId, long nodeID, java.lang.String subTxnUid, short status, java.lang.String modelName, java.lang.String cbName, short cmdPoint, java.lang.String sessionUid, java.lang.String principal, java.lang.String sql, int rowCount, ExecutionContext context)
          Log the command if the value of the property "metamatrix.transaction.log.storeSRCCMD" is "true".
 void log(java.lang.String requestId, java.lang.String txnUid, short cmdPoint, short status, java.lang.String sessionUid, java.lang.String applicationName, java.lang.String principal, java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String sql, int rowCount)
          Log the command if the value of the property "metamatrix.transaction.log.storeMMCMD" is "true".
 boolean willRecordMMCmd()
          Returns whether the tracker will record MM commands.
 boolean willRecordSrcCmd()
          Returns whether the tracker will record source commands.
 
Methods inherited from interface com.metamatrix.common.application.ApplicationService
initialize, start, stop
 

Method Detail

log

void log(java.lang.String requestId,
         java.lang.String txnUid,
         short cmdPoint,
         short status,
         java.lang.String sessionUid,
         java.lang.String applicationName,
         java.lang.String principal,
         java.lang.String vdbName,
         java.lang.String vdbVersion,
         java.lang.String sql,
         int rowCount)
Log the command if the value of the property "metamatrix.transaction.log.storeMMCMD" is "true".

Parameters:
requestId - Unique command ID.
txnUid - Unique transaction ID.
cmdPoint - Point in command being logged - TransactionLogConstants.POINT.BEGIN, or TransactionLogConstants.POINT.END.
sessionUid - Session ID.
applicationName - name of the user application
principal - User name.
vdbName - VDB name.
vdbVersion - VDB version.
sql - SQL for the command.
rowCount - Final row count.

log

void log(java.lang.String requestId,
         long nodeID,
         java.lang.String subTxnUid,
         short status,
         java.lang.String modelName,
         java.lang.String cbName,
         short cmdPoint,
         java.lang.String sessionUid,
         java.lang.String principal,
         java.lang.String sql,
         int rowCount,
         ExecutionContext context)
Log the command if the value of the property "metamatrix.transaction.log.storeSRCCMD" is "true".

Parameters:
requestId - Unique command ID.
nodeID - Subcommand ID
subTxnUid - Unique subtransaction ID.
status - Type of request - TransactionLogConstants.SRCCMD_STATUS.NEW, or TransactionLogConstants.SRCCMD_STATUS.CANCEL, or TransactionLogConstants.SRCCMD_STATUS.END, or TransactionLogConstants.SRCCMD_STATUS.ERROR.
modelName - Name of model.
cbName - Connector binding name.
cmdPoint - Point in command being logged - TransactionLogConstants.POINT.BEGIN, or TransactionLogConstants.POINT.END.
sessionUid - Session ID.
principal - User name.
sql - SQL for the command.
rowCount - Final row count.

willRecordMMCmd

boolean willRecordMMCmd()
Returns whether the tracker will record MM commands.

Parameters:
txnPoint -
Returns:
Since:
4.2

willRecordSrcCmd

boolean willRecordSrcCmd()
Returns whether the tracker will record source commands.

Parameters:
txnPoint -
Returns:
Since:
4.2


Copyright © 2009. All Rights Reserved.