Class ThreadLocalStatisticsImpl

  • All Implemented Interfaces:
    org.exoplatform.commons.api.notification.stat.Statistics, org.exoplatform.commons.api.notification.stat.StatisticsCollector

    public class ThreadLocalStatisticsImpl
    extends Object
    implements org.exoplatform.commons.api.notification.stat.Statistics, org.exoplatform.commons.api.notification.stat.StatisticsCollector
    Created by The eXo Platform SAS Author : eXoPlatform thanhvc@exoplatform.com Oct 10, 2013
    • Constructor Detail

    • Method Detail

      • clear

        public void clear()
        Specified by:
        clear in interface org.exoplatform.commons.api.notification.stat.Statistics
      • createMessageInfoCount

        public void createMessageInfoCount​(String pluginId)
        Specified by:
        createMessageInfoCount in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • createNotificationInfoCount

        public void createNotificationInfoCount​(String pluginId)
        Specified by:
        createNotificationInfoCount in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • createDigestCount

        public void createDigestCount​(String pluginId)
        Specified by:
        createDigestCount in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • deleteEntity

        public void deleteEntity​(String nodeType)
        Specified by:
        deleteEntity in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • insertEntity

        public void insertEntity​(String nodeType)
        Specified by:
        insertEntity in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • updateEntity

        public void updateEntity​(String nodeType)
        Specified by:
        updateEntity in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • loadEntity

        public void loadEntity​(String nodeType)
        Specified by:
        loadEntity in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • queryExecuted

        public void queryExecuted​(String statement,
                                  long rows,
                                  long time)
        Specified by:
        queryExecuted in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • pollQueue

        public void pollQueue​(String pluginId)
        Specified by:
        pollQueue in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • putQueue

        public void putQueue​(String pluginId)
        Specified by:
        putQueue in interface org.exoplatform.commons.api.notification.stat.StatisticsCollector
      • getPluginStatistics

        public org.exoplatform.commons.api.notification.stat.PluginStatistics getPluginStatistics​(String pluginId)
        Specified by:
        getPluginStatistics in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getEntityStatistics

        public org.exoplatform.commons.api.notification.stat.EntityStatistics getEntityStatistics​(String nodeType)
        Specified by:
        getEntityStatistics in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueueStatistics

        public org.exoplatform.commons.api.notification.stat.QueueStatistics getQueueStatistics​(String pluginId)
        Specified by:
        getQueueStatistics in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueryStatistics

        public org.exoplatform.commons.api.notification.stat.QueryStatistics getQueryStatistics​(String queryString)
        Specified by:
        getQueryStatistics in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getEntityDeleteCount

        public long getEntityDeleteCount()
        Specified by:
        getEntityDeleteCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getEntityLoadCount

        public long getEntityLoadCount()
        Specified by:
        getEntityLoadCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getEntityInsertCount

        public long getEntityInsertCount()
        Specified by:
        getEntityInsertCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueryExecutionCount

        public long getQueryExecutionCount()
        Specified by:
        getQueryExecutionCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueryExecutionMaxTime

        public long getQueryExecutionMaxTime()
        Specified by:
        getQueryExecutionMaxTime in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueryExecutionMaxTimeQueryString

        public String getQueryExecutionMaxTimeQueryString()
        Specified by:
        getQueryExecutionMaxTimeQueryString in interface org.exoplatform.commons.api.notification.stat.Statistics
      • isStatisticsEnabled

        public boolean isStatisticsEnabled()
        Specified by:
        isStatisticsEnabled in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueries

        public String[] getQueries()
        Specified by:
        getQueries in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getPluginNames

        public String[] getPluginNames()
        Specified by:
        getPluginNames in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getStartTime

        public long getStartTime()
        Specified by:
        getStartTime in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueuePutCount

        public long getQueuePutCount()
        Specified by:
        getQueuePutCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getQueuePollCount

        public long getQueuePollCount()
        Specified by:
        getQueuePollCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getMessageCreatedCount

        public long getMessageCreatedCount()
        Specified by:
        getMessageCreatedCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getNotificationCreatedCount

        public long getNotificationCreatedCount()
        Specified by:
        getNotificationCreatedCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • getDigestCreatedCount

        public long getDigestCreatedCount()
        Specified by:
        getDigestCreatedCount in interface org.exoplatform.commons.api.notification.stat.Statistics
      • setStatisticsEnabled

        public void setStatisticsEnabled​(boolean enable)
        Specified by:
        setStatisticsEnabled in interface org.exoplatform.commons.api.notification.stat.Statistics