Class StatisticsService

java.lang.Object
org.exoplatform.commons.notification.impl.StatisticsService
All Implemented Interfaces:
org.picocontainer.Startable

public class StatisticsService extends Object implements org.picocontainer.Startable
Created by The eXo Platform SAS Author : eXoPlatform thanhvc@exoplatform.com Oct 11, 2013
  • Constructor Details

  • Method Details

    • getStatistics

      public org.exoplatform.commons.api.notification.stat.Statistics getStatistics()
    • getStatisticsCollector

      public org.exoplatform.commons.api.notification.stat.StatisticsCollector getStatisticsCollector()
    • isStatisticsEnabled

      public boolean isStatisticsEnabled()
      See Also:
    • setStatisticsEnabled

      public void setStatisticsEnabled(boolean enable)
      See Also:
    • activeStatistics

      public void activeStatistics()
    • deactiveStatistics

      public void deactiveStatistics()
    • clear

      public void clear()
    • getPluginStatistics

      public org.exoplatform.commons.api.notification.stat.PluginStatistics getPluginStatistics(String pluginId)
    • getEntityStatistics

      public org.exoplatform.commons.api.notification.stat.EntityStatistics getEntityStatistics(String nodeType)
    • getQueueStatistics

      public org.exoplatform.commons.api.notification.stat.QueueStatistics getQueueStatistics(String pluginId)
    • getQueryStatistics

      public org.exoplatform.commons.api.notification.stat.QueryStatistics getQueryStatistics(String queryString)
    • getDailySettingForAllUser

      public String getDailySettingForAllUser()
    • getWeeklySettingForAllUser

      public String getWeeklySettingForAllUser()
    • getDigestDefaultSettingForAllUser

      public String getDigestDefaultSettingForAllUser()
    • getMessageCreatedCount

      public long getMessageCreatedCount()
      Get global number of message created
      Returns:
    • getNotificationCreatedCount

      public long getNotificationCreatedCount()
      Get global number of notification created
      Returns:
    • getDigestCreatedCount

      public long getDigestCreatedCount()
      Get global number of digest created
      Returns:
    • getEntityDeleteCount

      public long getEntityDeleteCount()
      Get global number of entity deletes
      Returns:
    • getEntityLoadCount

      public long getEntityLoadCount()
      Get global number of entity load
      Returns:
    • getEntityInsertCount

      public long getEntityInsertCount()
      Get global number of entity insert
      Returns:
    • getQueryExecutionCount

      public long getQueryExecutionCount()
      Get global number of executed queries
      Returns:
    • getQueryExecutionMaxTime

      public long getQueryExecutionMaxTime()
      Get the time in milliseconds of the slowest query.
      Returns:
    • getQueryExecutionMaxTimeQueryString

      public String getQueryExecutionMaxTimeQueryString()
      Get the query string for the slowest query.
    • getQueuePutCount

      public long getQueuePutCount()
      Get global number of put queue
      Returns:
    • getQueuePollCount

      public long getQueuePollCount()
      Get global number of poll queue
      Returns:
    • getQueries

      public String[] getQueries()
      Get all executed query strings
    • getPluginNames

      public String[] getPluginNames()
      Get the names of all entities
    • getStartTime

      public long getStartTime()
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable