|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.aspects.statistics.StatisticsReporter
public class StatisticsReporter
A utility to report statistics at various check points in the message flow TODO - This class should be removed after a flow based statistics collection is done.
Constructor Summary | |
---|---|
StatisticsReporter()
|
Method Summary | |
---|---|
static void |
endReportForAllOnRequestProcessed(MessageContext synCtx)
Ends statistics reporting for any component after the request processed. |
static void |
reportFaultForAll(MessageContext synCtx,
ErrorLog errorLog)
Reporting a fault for any component when a response for a request is received. |
static void |
reportForAllOnOutFlowEnd(MessageContext synCtx)
Reports statistics on the end of the out flow |
static void |
reportForAllOnResponseReceived(MessageContext synCtx)
Collects statistics for any component when a response for a request is received. |
static void |
reportForAllOnResponseSent(MessageContext synCtx)
Reports statistics for any component on the response message is sent Any component means that this statistics log (check point) is valid for sequence, endpoint, and proxy. |
static void |
reportForComponent(MessageContext synCtx,
StatisticsConfigurable configurable,
ComponentType componentType)
Collects statistics for the given component.This is the starting point of collecting stats for a particular component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticsReporter()
Method Detail |
---|
public static void reportForComponent(MessageContext synCtx, StatisticsConfigurable configurable, ComponentType componentType)
synCtx
- the current message being passed through the synapseconfigurable
- a component that can be configured it's auditcomponentType
- the type of the component which needs to collect statisticspublic static void reportForAllOnResponseReceived(MessageContext synCtx)
synCtx
- the current message being passed through the synapsepublic static void reportFaultForAll(MessageContext synCtx, ErrorLog errorLog)
synCtx
- synCtx Current Message through synapseerrorLog
- the received error informationpublic static void reportForAllOnResponseSent(MessageContext synCtx)
synCtx
- MessageContext instancepublic static void endReportForAllOnRequestProcessed(MessageContext synCtx)
synCtx
- MessageContext instancepublic static void reportForAllOnOutFlowEnd(MessageContext synCtx)
synCtx
- MessageContext instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |