This documentation is for WSO2 Enterprise Service Bus version 4.9.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
minLevel3
locationtop
styleborder:1
locationtop
typeflat
separatorpipe

...

Step 1. Implement the MediationStatisticsObserver Interface

...

The updateStatistics method is invoked by the mediation statistics component whenever a record in the in-memory data store is updated. This method takes a MediationStatisticsSnapshot object as an argument. The following methods can be invoked on this object to retrieve the latest statistical information:

Method

Description

getUpdate

Gets the latest update received from the mediation engine.

getEntitySnapshot

Gets the cumulative record for the Proxy, sequence or endpoint to which the latest update relates to.

getCategorySnapshot

Gets the cumulative record for the category to which the latest update relates to (available categories are all Proxy Services, all sequences and all endpoints).

getErrorLogs

The list of error log instances which gives out detailed information about faults that has occurred.

For the first update received from the mediation engine, entity snapshot and category snapshot will be null. The name of the Proxy, sequence or endpoint being updated can be retrieved as follows:

...

The text under the Observers element should represent a class name or a comma separated list of class names.

Also, to enable reporting statistics, change the value of the <StatisticsReporterDisabled> property to true in the <ESB_HOME>/repository/components/lib/carbon.xml file .

...

Step 3. Start the ESB and Test the Consumer

...