|Table of Contents|
Step 1. Implement 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:
Gets the latest update received from the mediation engine.
Gets the cumulative record for the Proxy, sequence or endpoint to which the latest update relates to.
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).
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
repository/components/lib/carbon.xml file .
Step 3. Start the ESB and Test the Consumer