public class Transaction extends Object
Constructor and Description |
---|
Transaction(String name,
Map<String,org.apache.commons.lang3.tuple.Pair<String,boolean[]>> activity,
TransactionOutcome outcome,
long runtime,
String stackTrace) |
Transaction(String name,
TransactionOutcome outcome,
long runtime,
String stackTrace) |
Modifier and Type | Method and Description |
---|---|
void |
addActivity(String hash,
org.apache.commons.lang3.tuple.Pair<String,boolean[]> hitArray)
Adds an activity to a transaction.
|
boolean |
equals(Object obj) |
Map<String,org.apache.commons.lang3.tuple.Pair<String,boolean[]>> |
getActivity()
Returns the activities of a transaction.
|
boolean[] |
getHitArray(ProbeGroup probeGroup)
Returns a boolean hit array of a probeGroup.
|
boolean[] |
getHitArrayByProbeGroupHash(String hash)
Returns a boolean hit array of a probeGroup.
|
String |
getName()
Returns the name of a transaction.
|
Set<String> |
getProbeGroupsHash()
Returns all probeGroups hash.
|
long |
getRuntime()
Returns the runtime of a transaction.
|
String |
getStackTrace()
Returns the stack trace of a failing transaction.
|
TransactionOutcome |
getTransactionOutcome()
Returns the outcome of a transaction.
|
boolean |
hasActivations()
Returns true if a transaction has any activity, false otherwise.
|
boolean |
hasFailed()
Returns true if a transaction has failed, false otherwise.
|
int |
hashCode() |
boolean |
isProbeActived(ProbeGroup probeGroup,
int probeIndex)
Returns true if a specific probe of a probeGroup has been executed, false otherwise.
|
String |
toString() |
public Transaction(String name, TransactionOutcome outcome, long runtime, String stackTrace)
name
- outcome
- runtime
- stackTrace
- public String getName()
public boolean hasActivations()
public Map<String,org.apache.commons.lang3.tuple.Pair<String,boolean[]>> getActivity()
public void addActivity(String hash, org.apache.commons.lang3.tuple.Pair<String,boolean[]> hitArray)
public boolean[] getHitArray(ProbeGroup probeGroup)
public boolean[] getHitArrayByProbeGroupHash(String hash)
public boolean isProbeActived(ProbeGroup probeGroup, int probeIndex)
public TransactionOutcome getTransactionOutcome()
public boolean hasFailed()
public long getRuntime()
public String getStackTrace()
Copyright © 2010–2019 GZoltar. All rights reserved.