public class DefaultTransactionStatistics extends Object implements TransactionStatistics
TransactionStatistics.Status| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
endCapturedContext |
protected long |
endTimestamp |
protected String |
id |
protected org.javasimon.Split |
split |
protected Throwable |
startCapturedContext |
protected long |
startTimestamp |
protected TransactionStatistics.Status |
status |
protected String |
threadName |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultTransactionStatistics(Object key) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration() |
Throwable |
getEndCapturedContext() |
String |
getEndCapturedContextMessage() |
Date |
getEndDate() |
String |
getId() |
String |
getStartCapturedContext() |
String |
getStartCapturedContextMessage() |
Date |
getStartDate() |
TransactionStatistics.Status |
getStatus() |
String |
getThreadName() |
boolean |
isEnded() |
void |
print(PrintWriter writer) |
protected static String |
printCapturedContext(Throwable e) |
String |
toString() |
protected long startTimestamp
protected Throwable startCapturedContext
protected String threadName
protected long endTimestamp
protected Throwable endCapturedContext
protected TransactionStatistics.Status status
protected org.javasimon.Split split
protected DefaultTransactionStatistics(Object key)
public String getId()
getId in interface TransactionStatisticspublic String getThreadName()
getThreadName in interface TransactionStatisticspublic TransactionStatistics.Status getStatus()
getStatus in interface TransactionStatisticspublic Date getStartDate()
getStartDate in interface TransactionStatisticspublic String getStartCapturedContext()
public String getStartCapturedContextMessage()
getStartCapturedContextMessage in interface TransactionStatisticspublic Date getEndDate()
getEndDate in interface TransactionStatisticspublic Throwable getEndCapturedContext()
public String getEndCapturedContextMessage()
getEndCapturedContextMessage in interface TransactionStatisticspublic long getDuration()
getDuration in interface TransactionStatisticspublic boolean isEnded()
isEnded in interface TransactionStatisticsprotected static String printCapturedContext(Throwable e)
public void print(PrintWriter writer)
Copyright © 2015 Nuxeo SA. All rights reserved.