|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITransactionAnnotationStateHandler
A state handler that manages transaction-related annotations. The managed annotation
types are RecorderAnnotation.START_TRANSACTION_TYPE
and RecorderAnnotation.END_TRANSACTION_TYPE
.
This handler manages a transaction stack, whose state can be retrieved or modified
using methods in this interface.
For obtaining an instance of this state handler, invoke DelegaterComponent.getProperty(String)
on the annotation recorder, with a property name that concatenates RecorderCore.ANNOTATION_STATE_HANDLER_PREFIX
and one of the annotation types managed by this handler.
Method Summary | |
---|---|
boolean |
canEndTransaction()
Returns whether a transaction can be ended, i.e. whether there is an active transaction. |
void |
endTransaction(long interactionTime)
Ends the current transaction. |
String |
getCurrentTransactionName()
Returns the current transaction name, or null if there is no active
transaction. |
void |
startTransaction(String name,
long interactionTime)
Starts a new transaction, nested in the current transaction if there is one. |
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.annotations.IAnnotationStateHandler |
---|
addListener, removeListener |
Method Detail |
---|
boolean canEndTransaction()
void endTransaction(long interactionTime)
interactionTime
- void startTransaction(String name, long interactionTime)
interactionTime
- String getCurrentTransactionName()
null
if there is no active
transaction.
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |