com.metamatrix.dqp.embedded.services
Class EmbeddedTrackingService
java.lang.Object
com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
com.metamatrix.dqp.embedded.services.EmbeddedTrackingService
- All Implemented Interfaces:
- ApplicationService, TrackingService
public class EmbeddedTrackingService
- extends EmbeddedBaseDQPService
- implements TrackingService
Method Summary |
void |
initializeService(java.util.Properties properties)
|
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 txnUid,
short txnPoint,
short status,
java.lang.String sessionUid,
java.lang.String principal,
java.lang.String vdbName,
java.lang.String vdbVersion)
|
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". |
void |
startService(ApplicationEnvironment environment)
|
void |
stopService()
|
boolean |
willRecordMMCmd()
Returns whether the tracker will record MM commands. |
boolean |
willRecordSrcCmd()
Returns whether the tracker will record source commands. |
boolean |
willRecordTxn()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedTrackingService
public EmbeddedTrackingService()
log
public 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)
- Description copied from interface:
TrackingService
- Log the command if the value of the property
"metamatrix.transaction.log.storeSRCCMD" is "true".
- Specified by:
log
in interface TrackingService
- Parameters:
requestId
- Unique command ID.nodeID
- Subcommand IDsubTxnUid
- 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.
log
public void log(java.lang.String txnUid,
short txnPoint,
short status,
java.lang.String sessionUid,
java.lang.String principal,
java.lang.String vdbName,
java.lang.String vdbVersion)
log
public 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)
- Description copied from interface:
TrackingService
- Log the command if the value of the property
"metamatrix.transaction.log.storeMMCMD" is "true".
- Specified by:
log
in interface TrackingService
- 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 applicationprincipal
- User name.vdbName
- VDB name.vdbVersion
- VDB version.sql
- SQL for the command.rowCount
- Final row count.
willRecordMMCmd
public boolean willRecordMMCmd()
- Description copied from interface:
TrackingService
- Returns whether the tracker will record MM commands.
- Specified by:
willRecordMMCmd
in interface TrackingService
- Returns:
willRecordSrcCmd
public boolean willRecordSrcCmd()
- Description copied from interface:
TrackingService
- Returns whether the tracker will record source commands.
- Specified by:
willRecordSrcCmd
in interface TrackingService
- Returns:
willRecordTxn
public boolean willRecordTxn()
initializeService
public void initializeService(java.util.Properties properties)
throws ApplicationInitializationException
- Specified by:
initializeService
in class EmbeddedBaseDQPService
- Throws:
ApplicationInitializationException
- Since:
- 4.3
- See Also:
EmbeddedBaseDQPService.initializeService(java.util.Properties)
startService
public void startService(ApplicationEnvironment environment)
throws ApplicationLifecycleException
- Specified by:
startService
in class EmbeddedBaseDQPService
- Throws:
ApplicationLifecycleException
- Since:
- 4.3
- See Also:
EmbeddedBaseDQPService.startService(com.metamatrix.common.application.ApplicationEnvironment)
stopService
public void stopService()
throws ApplicationLifecycleException
- Specified by:
stopService
in class EmbeddedBaseDQPService
- Throws:
ApplicationLifecycleException
- Since:
- 4.3
- See Also:
EmbeddedBaseDQPService.stopService()
Copyright © 2009. All Rights Reserved.