public class SqlTraceServiceImpl extends AbstractService implements SqlTraceService, TransactionListener, HarvestListener
logger
Constructor and Description |
---|
SqlTraceServiceImpl() |
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 |
dispatcherTransactionFinished(TransactionData td,
TransactionStats transactionStats)
Called after a dispatcher transaction finishes on the request thread.
|
protected void |
doStart() |
protected void |
doStop() |
SlowQueryListener |
getSlowQueryListener(java.lang.String appName) |
boolean |
isEnabled()
Is the service enabled.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stop
public boolean isEnabled()
Service
protected void doStart()
doStart
in class AbstractService
protected void doStop()
doStop
in class AbstractService
public void dispatcherTransactionFinished(TransactionData td, TransactionStats transactionStats)
TransactionListener
dispatcherTransactionFinished
in interface TransactionListener
td
- the final data from the transactiontransactionStats
- the final metric information from the transactionpublic SlowQueryListener getSlowQueryListener(java.lang.String appName)
getSlowQueryListener
in interface SqlTraceService
public void afterHarvest(java.lang.String appName)
HarvestListener
afterHarvest
in interface HarvestListener
public void beforeHarvest(java.lang.String appName, StatsEngine statsEngine)
HarvestListener
beforeHarvest
in interface HarvestListener