org.wso2.carbon.event.statistics
Class EventStatisticsService

java.lang.Object
  extended by org.wso2.carbon.event.statistics.EventStatisticsService

public class EventStatisticsService
extends Object


Constructor Summary
EventStatisticsService()
           
 
Method Summary
 StatsDTO getCategoryCount(int tenantId, String categoryName)
           
 StatsDTO getDeploymentCount(int tenantId, String categoryName, String deploymentName)
           
 StatsDTO getElementCount(int tenantId, String categoryName, String deploymentName, String elementName)
           
 EventStatisticsMonitor getEventStatisticMonitor(int tenantId, String category, String deployment, String element)
           
 StatsDTO getGlobalCount(int tenantId)
           
 void registerObserver(EventStatisticsObserver o)
          Register a custom statistics consumer to receive updates from this statistics store
 void reset()
           
 void unregisterObserver(EventStatisticsObserver o)
          Unregister the custom statistics consumer from the mediation statistics store
 void unregisterObservers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventStatisticsService

public EventStatisticsService()
Method Detail

getGlobalCount

public StatsDTO getGlobalCount(int tenantId)

getCategoryCount

public StatsDTO getCategoryCount(int tenantId,
                                 String categoryName)

getDeploymentCount

public StatsDTO getDeploymentCount(int tenantId,
                                   String categoryName,
                                   String deploymentName)

getElementCount

public StatsDTO getElementCount(int tenantId,
                                String categoryName,
                                String deploymentName,
                                String elementName)

getEventStatisticMonitor

public EventStatisticsMonitor getEventStatisticMonitor(int tenantId,
                                                       String category,
                                                       String deployment,
                                                       String element)

reset

public void reset()

registerObserver

public void registerObserver(EventStatisticsObserver o)
Register a custom statistics consumer to receive updates from this statistics store

Parameters:
o - The EventStatisticsObserver instance to be notified of data updates

unregisterObserver

public void unregisterObserver(EventStatisticsObserver o)
Unregister the custom statistics consumer from the mediation statistics store

Parameters:
o - The EventStatisticsObserver instance to be removed

unregisterObservers

public void unregisterObservers()


Copyright © 2015 WSO2. All rights reserved.