public class XRaySessionService extends AbstractService implements HarvestListener, IXRaySessionService
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SESSION_COUNT |
static long |
MAX_SESSION_DURATION_SECONDS |
static long |
MAX_TRACE_COUNT |
logger
Constructor and Description |
---|
XRaySessionService() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(XRaySessionListener listener) |
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
protected void |
doStart() |
protected void |
doStop() |
boolean |
isEnabled()
Is the service enabled.
|
java.util.Map<?,?> |
processSessionsList(java.util.List<java.lang.Long> incomingList,
IRPMService rpmService)
This method accepts a list of Longs which are assumed to be X-Ray session IDs.
|
void |
removeListener(XRaySessionListener listener) |
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 static final int MAX_SESSION_COUNT
public static final long MAX_SESSION_DURATION_SECONDS
public static final long MAX_TRACE_COUNT
public boolean isEnabled()
Service
isEnabled
in interface Service
isEnabled
in interface IXRaySessionService
true
if the service is enabledprotected void doStart() throws java.lang.Exception
doStart
in class AbstractService
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class AbstractService
java.lang.Exception
public void beforeHarvest(java.lang.String appName, StatsEngine statsEngine)
HarvestListener
beforeHarvest
in interface HarvestListener
public void afterHarvest(java.lang.String appName)
HarvestListener
afterHarvest
in interface HarvestListener
public java.util.Map<?,?> processSessionsList(java.util.List<java.lang.Long> incomingList, IRPMService rpmService)
processSessionsList
in interface IXRaySessionService
incomingList
- rpmService
- public void addListener(XRaySessionListener listener)
addListener
in interface IXRaySessionService
public void removeListener(XRaySessionListener listener)
removeListener
in interface IXRaySessionService