public class SlowTransactionService extends AbstractService implements ExtendedTransactionListener, HarvestListener
logger| Constructor and Description |
|---|
SlowTransactionService(AgentConfig agentConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
void |
dispatcherTransactionCancelled(Transaction transaction)
The transaction on the current thread is being cancelled, either because of a serious internal error or because
the activity on the current thread is now linked to another transaction and this transaction should not report.
|
void |
dispatcherTransactionFinished(TransactionData transactionData,
TransactionStats transactionStats)
Called after a dispatcher transaction finishes on the request thread.
|
void |
dispatcherTransactionStarted(Transaction transaction)
Called after a dispatcher transaction is started on the request thread.
|
protected void |
doStart() |
protected void |
doStop() |
boolean |
isEnabled()
Is the service enabled.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic SlowTransactionService(AgentConfig agentConfig)
protected void doStart()
throws java.lang.Exception
doStart in class AbstractServicejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractServicejava.lang.Exceptionpublic boolean isEnabled()
Servicepublic void dispatcherTransactionStarted(Transaction transaction)
ExtendedTransactionListenerdispatcherTransactionStarted in interface ExtendedTransactionListenertransaction - The transaction that was just startedpublic void dispatcherTransactionCancelled(Transaction transaction)
ExtendedTransactionListenerdispatcherTransactionCancelled in interface ExtendedTransactionListenertransaction - the transaction that is completing abruptly.public void dispatcherTransactionFinished(TransactionData transactionData, TransactionStats transactionStats)
TransactionListenerdispatcherTransactionFinished in interface TransactionListenertransactionData - the final data from the transactiontransactionStats - the final metric information from the transactionpublic void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
HarvestListenerbeforeHarvest in interface HarvestListenerpublic void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListener