public abstract class RuntimeStatisticCollector extends Object
Modifier and Type | Field and Description |
---|---|
static long |
eventExpireTime |
Constructor and Description |
---|
RuntimeStatisticCollector() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addEvent(MessageContext messageContext,
StatisticsReportingEvent event)
Helper method to just add event without changing counts.
|
protected static void |
addEventAndCloseFlow(MessageContext messageContext,
StatisticsReportingEvent event)
Helper method to add event and close the message flow static collection.
|
protected static void |
addEventAndDecrementCallbackCount(MessageContext messageContext,
StatisticsReportingEvent event)
Helper method to add event and decrement call back count, which denotes, call back has been received.
|
protected static void |
addEventAndDecrementCount(MessageContext messageContext,
StatisticsReportingEvent event)
Helper method to add event and decrement stat count, which denotes, closing event happened.
|
protected static void |
addEventAndIncrementCallbackCount(MessageContext messageContext,
StatisticsReportingEvent event)
Helper method to add event and increment call back count, which notifies that a callback has been registered
|
protected static void |
addEventAndIncrementCount(MessageContext messageContext,
StatisticsReportingEvent event)
Helper method to add event and increment stat count so that it denotes, open event is added.
|
static void |
init()
Initialize statistics collection when ESB starts.
|
static boolean |
isCollectingAllStatistics()
Return whether collecting statistics for all artifacts is enabled (this also needs isStatisticsEnabled)
|
static boolean |
isCollectingPayloads()
Return whether collecting payloads is enabled.
|
static boolean |
isCollectingProperties()
Return whether collecting message-properties is enabled.
|
static boolean |
isStatisticsEnabled()
Returns whether statistics collection is enabled globally for the esb as specified in the
synapse.properties file.
|
static void |
setCollectingAllStatistics(boolean state)
Allow external to alter state of collecting statistics for all artifacts, during runtime
|
protected static void |
setStatisticsTraceId(MessageContext msgCtx)
Set message Id of the message context as statistic trace Id at the beginning of the statistic flow.
|
static boolean |
shouldReportStatistic(MessageContext messageContext)
Returns true if statistics is collected in this message flow path.
|
public static void init()
protected static void setStatisticsTraceId(MessageContext msgCtx)
msgCtx
- synapse message context.public static boolean shouldReportStatistic(MessageContext messageContext)
messageContext
- synapse message context.public static boolean isStatisticsEnabled()
public static boolean isCollectingPayloads()
public static boolean isCollectingProperties()
public static boolean isCollectingAllStatistics()
public static void setCollectingAllStatistics(boolean state)
protected static void addEventAndIncrementCount(MessageContext messageContext, StatisticsReportingEvent event)
messageContext
- event
- protected static void addEventAndDecrementCount(MessageContext messageContext, StatisticsReportingEvent event)
messageContext
- event
- protected static void addEventAndIncrementCallbackCount(MessageContext messageContext, StatisticsReportingEvent event)
messageContext
- event
- protected static void addEventAndDecrementCallbackCount(MessageContext messageContext, StatisticsReportingEvent event)
messageContext
- event
- protected static void addEvent(MessageContext messageContext, StatisticsReportingEvent event)
messageContext
- event
- protected static void addEventAndCloseFlow(MessageContext messageContext, StatisticsReportingEvent event)
messageContext
- event
- Copyright © 2005–2018 Apache Software Foundation. All rights reserved.