org.arm4.arm40.transaction
public class ArmTransaction extends ArmInterface implements ArmTransaction
ArmConstants.STATUS_ABORT - if the transaction was blocked on a thread.
ArmConstants.STATUS_FAILED - If the transaction failed.
ArmConstants.STATUS_GOOD - If a transaction has successfully started or has been updated.
ArmConstants.STATUS_INVALID - When a transaction is instructed to be stopped, the transaction will be marked invlid and it should never execute again.
ArmConstants.STATUS_UNKNOWN - When a transaction is first created it will be in an unknown state.
Version: $Revision$ $Date$
| Field Summary | |
|---|---|
| static int | ARM_SUCCESS |
| protected ArmApplication | m_application |
| protected long | m_arrivalTime |
| protected String | m_contextUri |
| protected ArrayList | m_contextValues |
| protected ArmCorrelator | m_currentCorrelator |
| protected ArmTransactionDefinition | m_definition |
| protected ArmMetricGroup | m_metricGroup |
| protected ArmCorrelator | m_parentCorrelator |
| protected int | m_status |
| protected boolean | m_traceRequested |
| protected long | m_transactionHandle |
| protected ArmUser | m_user |
| Constructor Summary | |
|---|---|
| ArmTransaction(ArmApplication app, ArmTransactionDefinition def, ArmFactory factory)
Create the ARM Transaction.
| |
| ArmTransaction(ArmApplication app, ArmTransactionDefinition def, ArmMetricGroup group, ArmFactory factory)
Create the ARM Transaction.
| |
| Method Summary | |
|---|---|
| int | bindThread() |
| long | blocked() |
| ArmApplication | getApplication() |
| String | getContextURIValue() |
| String | getContextValue(int index) |
| ArmCorrelator | getCorrelator() |
| ArmTransactionDefinition | getDefinition() |
| protected ArmMetricGroup | getMetricGroup()
Get the metric group.
|
| ArmCorrelator | getParentCorrelator() |
| int | getStatus() |
| ArmUser | getUser() |
| boolean | isTraceRequested() |
| int | reset() |
| int | setArrivalTime() |
| int | setContextURIValue(String value) |
| int | setContextValue(int index, String value) |
| int | setCorrelator(ArmCorrelator correlator)
Set the correlator.
|
| int | setParentCorrelator(ArmCorrelator parent)
Set the parent correlator.
|
| int | setTraceRequested(boolean traceState) |
| int | setUser(ArmUser user) |
| int | start() |
| int | start(byte[] parentCorr) |
| int | start(byte[] parentCorr, int offset) |
| int | start(ArmCorrelator parentCorr) |
| int | stop(int status) |
| int | stop(int status, String diagnosticDetail) |
| int | unbindThread() |
| int | unblocked(long blockHandle) |
| int | update() |
Parameters: app def factory
Parameters: app def group factory
Returns:
Parameters: correlator
Returns:
Parameters: parent
Returns: