public class TransactionTraceService extends AbstractService implements HarvestListener, TransactionListener
logger| Constructor and Description |
|---|
TransactionTraceService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransactionTraceSampler(ITransactionSampler transactionSampler) |
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
void |
dispatcherTransactionFinished(TransactionData transactionData,
TransactionStats transactionStats)
Called after a dispatcher transaction finishes on the request thread.
|
protected void |
doStart() |
protected void |
doStop() |
java.lang.management.ThreadMXBean |
getThreadMXBean() |
boolean |
isEnabled()
Is the service enabled.
|
boolean |
isThreadCpuTimeEnabled() |
void |
removeTransactionTraceSampler(ITransactionSampler transactionSampler) |
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic java.lang.management.ThreadMXBean getThreadMXBean()
public boolean isEnabled()
Servicepublic void addTransactionTraceSampler(ITransactionSampler transactionSampler)
public void removeTransactionTraceSampler(ITransactionSampler transactionSampler)
public boolean isThreadCpuTimeEnabled()
public void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
HarvestListenerbeforeHarvest in interface HarvestListenerpublic void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListenerprotected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic void dispatcherTransactionFinished(TransactionData transactionData, TransactionStats transactionStats)
TransactionListenerdispatcherTransactionFinished in interface TransactionListenertransactionData - the final data from the transactiontransactionStats - the final metric information from the transaction