|
TPTP 4.6.0 Tracing and Profiling Tools Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.trace.arm.internal.transaction.ArmInterfaceImpl
org.eclipse.tptp.trace.arm.internal.transaction.ArmTransactionImpl
public class ArmTransactionImpl
For most applications, ArmTransaction is the most important of all the ARM classes, and the most frequently used. Instances of ArmTransaction represent transactions when they execute. A "transaction" is any unit of work that has a clearly understood beginning and ending point, and which begins and ends in the same VM. ArmTransaction is created with the newArmTransaction() method of ArmTransactionFactory.
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.
| Field Summary | |
|---|---|
protected long |
_arrivalTime
|
protected long |
_completionTime
|
protected org.opengroup.arm40.transaction.ArmIdentityProperties |
_contextProperties
|
protected java.lang.String |
_contextURIValue
|
protected long |
_currentThreadId
|
protected long |
_durationTime
|
static ARMLogger |
_logger
|
| Fields inherited from class org.eclipse.tptp.trace.arm.internal.transaction.ArmInterfaceImpl |
|---|
validationPropertyKey |
| Constructor Summary | |
|---|---|
ArmTransactionImpl(org.opengroup.arm40.transaction.ArmApplication app,
org.opengroup.arm40.transaction.ArmTransactionDefinition definition)
Create the ARM Transaction. |
|
ArmTransactionImpl(org.opengroup.arm40.transaction.ArmApplication app,
org.opengroup.arm40.transaction.ArmTransactionDefinition definition,
java.lang.String[] contextValues)
Create the ARM Transaction. |
|
| Method Summary | |
|---|---|
int |
bindThread()
|
long |
blocked()
|
org.opengroup.arm40.transaction.ArmApplication |
getApplication()
|
long |
getArrivalTime()
Returns the arrival time of this transaction, also known as the time when this transaction was started. |
long |
getCompletionTime()
Returns the completion time of this transaction, also known as the time when this transaction was stopped. |
java.lang.String |
getContextURIValue()
|
java.lang.String |
getContextValue(int index)
|
org.opengroup.arm40.transaction.ArmCorrelator |
getCorrelator()
|
org.opengroup.arm40.transaction.ArmTransactionDefinition |
getDefinition()
|
org.opengroup.arm40.transaction.ArmCorrelator |
getParentCorrelator()
|
int |
getStatus()
|
org.opengroup.arm40.transaction.ArmUser |
getUser()
|
boolean |
isTraceRequested()
|
int |
reset()
|
int |
setArrivalTime()
|
int |
setContextURIValue(java.lang.String value)
|
int |
setContextValue(int index,
java.lang.String value)
|
int |
setTraceRequested(boolean traceState)
|
int |
setUser(org.opengroup.arm40.transaction.ArmUser user)
|
int |
start()
|
int |
start(org.opengroup.arm40.transaction.ArmCorrelator parentCorr)
|
int |
start(byte[] parentCorr)
|
int |
start(byte[] parentCorr,
int offset)
|
int |
stop(int status)
|
int |
stop(int status,
java.lang.String diagnosticDetail)
|
java.lang.String |
toString()
Returns a XML string based version of this entity. |
int |
unbindThread()
|
int |
unblocked(long blockHandle)
|
int |
update()
|
| Methods inherited from class org.eclipse.tptp.trace.arm.internal.transaction.ArmInterfaceImpl |
|---|
checkValidation, getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface |
|---|
getErrorCode, getErrorMessage, setErrorCode |
| Field Detail |
|---|
public static final ARMLogger _logger
protected org.opengroup.arm40.transaction.ArmIdentityProperties _contextProperties
protected long _arrivalTime
protected long _durationTime
protected long _completionTime
protected long _currentThreadId
protected java.lang.String _contextURIValue
| Constructor Detail |
|---|
public ArmTransactionImpl(org.opengroup.arm40.transaction.ArmApplication app,
org.opengroup.arm40.transaction.ArmTransactionDefinition definition)
app - definition -
public ArmTransactionImpl(org.opengroup.arm40.transaction.ArmApplication app,
org.opengroup.arm40.transaction.ArmTransactionDefinition definition,
java.lang.String[] contextValues)
app - definition - | Method Detail |
|---|
public int bindThread()
bindThread in interface org.opengroup.arm40.transaction.ArmTransactionpublic long blocked()
blocked in interface org.opengroup.arm40.transaction.ArmTransactionpublic org.opengroup.arm40.transaction.ArmApplication getApplication()
getApplication in interface org.opengroup.arm40.transaction.ArmTransactionpublic java.lang.String getContextURIValue()
getContextURIValue in interface org.opengroup.arm40.transaction.ArmTransactionpublic java.lang.String getContextValue(int index)
getContextValue in interface org.opengroup.arm40.transaction.ArmTransactionpublic org.opengroup.arm40.transaction.ArmCorrelator getCorrelator()
getCorrelator in interface org.opengroup.arm40.transaction.ArmTransactionpublic org.opengroup.arm40.transaction.ArmCorrelator getParentCorrelator()
getParentCorrelator in interface org.opengroup.arm40.transaction.ArmTransactionpublic int getStatus()
getStatus in interface org.opengroup.arm40.transaction.ArmTransactionpublic org.opengroup.arm40.transaction.ArmTransactionDefinition getDefinition()
getDefinition in interface org.opengroup.arm40.transaction.ArmTransactionpublic org.opengroup.arm40.transaction.ArmUser getUser()
getUser in interface org.opengroup.arm40.transaction.ArmTransactionpublic boolean isTraceRequested()
isTraceRequested in interface org.opengroup.arm40.transaction.ArmTransactionpublic int reset()
reset in interface org.opengroup.arm40.transaction.ArmTransactionpublic int setArrivalTime()
setArrivalTime in interface org.opengroup.arm40.transaction.ArmTransactionpublic long getArrivalTime()
public long getCompletionTime()
public int setContextURIValue(java.lang.String value)
setContextURIValue in interface org.opengroup.arm40.transaction.ArmTransaction
public int setContextValue(int index,
java.lang.String value)
setContextValue in interface org.opengroup.arm40.transaction.ArmTransactionpublic int setTraceRequested(boolean traceState)
setTraceRequested in interface org.opengroup.arm40.transaction.ArmTransactionpublic int setUser(org.opengroup.arm40.transaction.ArmUser user)
setUser in interface org.opengroup.arm40.transaction.ArmTransactionpublic int start()
start in interface org.opengroup.arm40.transaction.ArmTransactionpublic int start(byte[] parentCorr)
start in interface org.opengroup.arm40.transaction.ArmTransaction
public int start(byte[] parentCorr,
int offset)
start in interface org.opengroup.arm40.transaction.ArmTransactionpublic int start(org.opengroup.arm40.transaction.ArmCorrelator parentCorr)
start in interface org.opengroup.arm40.transaction.ArmTransactionpublic int stop(int status)
stop in interface org.opengroup.arm40.transaction.ArmTransaction
public int stop(int status,
java.lang.String diagnosticDetail)
stop in interface org.opengroup.arm40.transaction.ArmTransactionpublic int unbindThread()
unbindThread in interface org.opengroup.arm40.transaction.ArmTransactionpublic int unblocked(long blockHandle)
unblocked in interface org.opengroup.arm40.transaction.ArmTransactionpublic int update()
update in interface org.opengroup.arm40.transaction.ArmTransactionpublic java.lang.String toString()
toString in class java.lang.Object
|
TPTP 4.6.0 Tracing and Profiling Tools Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||