Class DefaultTransactionStatistics
- java.lang.Object
-
- org.nuxeo.ecm.core.management.jtajca.internal.DefaultTransactionStatistics
-
- All Implemented Interfaces:
TransactionStatistics
public class DefaultTransactionStatistics extends Object implements TransactionStatistics
- Author:
- matic
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.management.jtajca.TransactionStatistics
TransactionStatistics.Status
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultTransactionStatistics(Object key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
id
protected final String id
-
startTimestamp
protected long startTimestamp
-
startCapturedContext
protected Throwable startCapturedContext
-
threadName
protected String threadName
-
endTimestamp
protected long endTimestamp
-
endCapturedContext
protected Throwable endCapturedContext
-
status
protected TransactionStatistics.Status status
-
split
protected org.javasimon.Split split
-
-
Constructor Detail
-
DefaultTransactionStatistics
protected DefaultTransactionStatistics(Object key)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceTransactionStatistics
-
getThreadName
public String getThreadName()
- Specified by:
getThreadName
in interfaceTransactionStatistics
-
getStatus
public TransactionStatistics.Status getStatus()
- Specified by:
getStatus
in interfaceTransactionStatistics
-
getStartDate
public Date getStartDate()
- Specified by:
getStartDate
in interfaceTransactionStatistics
-
getStartCapturedContext
public String getStartCapturedContext()
-
getStartCapturedContextMessage
public String getStartCapturedContextMessage()
- Specified by:
getStartCapturedContextMessage
in interfaceTransactionStatistics
-
getEndDate
public Date getEndDate()
- Specified by:
getEndDate
in interfaceTransactionStatistics
-
getEndCapturedContext
public Throwable getEndCapturedContext()
-
getEndCapturedContextMessage
public String getEndCapturedContextMessage()
- Specified by:
getEndCapturedContextMessage
in interfaceTransactionStatistics
-
getDuration
public long getDuration()
- Specified by:
getDuration
in interfaceTransactionStatistics
-
isEnded
public boolean isEnded()
- Specified by:
isEnded
in interfaceTransactionStatistics
-
print
public void print(PrintWriter writer)
-
-