com.sun.mfwk.trans
Interface MfTranReport

All Superinterfaces:
java.util.EventListener, MfGenericTransaction, MfTranInterface, javax.management.NotificationListener

public interface MfTranReport
extends MfGenericTransaction, MfTranInterface

MfTranReport defines a transaction instance (report mode). It is created with the newTranReport() method of MfTransactionFactory.


Method Summary
 int report(int status, long respTime, long servTime, long stopTime)
          Report statistics of the transaction, once it is completed.
 
Methods inherited from interface com.sun.mfwk.trans.MfGenericTransaction
getDefinition, getParentTrans
 
Methods inherited from interface javax.management.NotificationListener
handleNotification
 
Methods inherited from interface com.sun.mfwk.trans.MfTranInterface
getErrorCode, getErrorMessage, setErrorCode
 

Method Detail

report

public int report(int status,
                  long respTime,
                  long servTime,
                  long stopTime)
Report statistics of the transaction, once it is completed.

Parameters:
status - the status of the transaction (one of the constants in MfConstants)
respTime - response time in milliseconds
servTime - service time in milliseconds
stopTime - stop time in milliseconds since January 1, 1970 (same format returned by java.lang.System.currentTimeMillis()