Class ThreadLocalStatisticsImpl
- java.lang.Object
-
- org.exoplatform.commons.notification.stat.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 Summary
Constructors Constructor Description ThreadLocalStatisticsImpl(PluginStatisticService pluginStatistic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcreateDigestCount(String pluginId)voidcreateMessageInfoCount(String pluginId)voidcreateNotificationInfoCount(String pluginId)voiddeleteEntity(String nodeType)longgetDigestCreatedCount()longgetEntityDeleteCount()longgetEntityInsertCount()longgetEntityLoadCount()org.exoplatform.commons.api.notification.stat.EntityStatisticsgetEntityStatistics(String nodeType)longgetMessageCreatedCount()longgetNotificationCreatedCount()String[]getPluginNames()org.exoplatform.commons.api.notification.stat.PluginStatisticsgetPluginStatistics(String pluginId)String[]getQueries()longgetQueryExecutionCount()longgetQueryExecutionMaxTime()StringgetQueryExecutionMaxTimeQueryString()org.exoplatform.commons.api.notification.stat.QueryStatisticsgetQueryStatistics(String queryString)longgetQueuePollCount()longgetQueuePutCount()org.exoplatform.commons.api.notification.stat.QueueStatisticsgetQueueStatistics(String pluginId)longgetStartTime()voidinsertEntity(String nodeType)booleanisStatisticsEnabled()voidloadEntity(String nodeType)voidpollQueue(String pluginId)voidputQueue(String pluginId)voidqueryExecuted(String statement, long rows, long time)voidsetStatisticsEnabled(boolean enable)StringtoString()voidupdateEntity(String nodeType)
-
-
-
Constructor Detail
-
ThreadLocalStatisticsImpl
public ThreadLocalStatisticsImpl(PluginStatisticService pluginStatistic)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
createMessageInfoCount
public void createMessageInfoCount(String pluginId)
- Specified by:
createMessageInfoCountin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
createNotificationInfoCount
public void createNotificationInfoCount(String pluginId)
- Specified by:
createNotificationInfoCountin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
createDigestCount
public void createDigestCount(String pluginId)
- Specified by:
createDigestCountin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
deleteEntity
public void deleteEntity(String nodeType)
- Specified by:
deleteEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
insertEntity
public void insertEntity(String nodeType)
- Specified by:
insertEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
updateEntity
public void updateEntity(String nodeType)
- Specified by:
updateEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
loadEntity
public void loadEntity(String nodeType)
- Specified by:
loadEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
queryExecuted
public void queryExecuted(String statement, long rows, long time)
- Specified by:
queryExecutedin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
pollQueue
public void pollQueue(String pluginId)
- Specified by:
pollQueuein interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
putQueue
public void putQueue(String pluginId)
- Specified by:
putQueuein interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
getPluginStatistics
public org.exoplatform.commons.api.notification.stat.PluginStatistics getPluginStatistics(String pluginId)
- Specified by:
getPluginStatisticsin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getEntityStatistics
public org.exoplatform.commons.api.notification.stat.EntityStatistics getEntityStatistics(String nodeType)
- Specified by:
getEntityStatisticsin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueueStatistics
public org.exoplatform.commons.api.notification.stat.QueueStatistics getQueueStatistics(String pluginId)
- Specified by:
getQueueStatisticsin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueryStatistics
public org.exoplatform.commons.api.notification.stat.QueryStatistics getQueryStatistics(String queryString)
- Specified by:
getQueryStatisticsin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getEntityDeleteCount
public long getEntityDeleteCount()
- Specified by:
getEntityDeleteCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getEntityLoadCount
public long getEntityLoadCount()
- Specified by:
getEntityLoadCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getEntityInsertCount
public long getEntityInsertCount()
- Specified by:
getEntityInsertCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueryExecutionCount
public long getQueryExecutionCount()
- Specified by:
getQueryExecutionCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueryExecutionMaxTime
public long getQueryExecutionMaxTime()
- Specified by:
getQueryExecutionMaxTimein interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueryExecutionMaxTimeQueryString
public String getQueryExecutionMaxTimeQueryString()
- Specified by:
getQueryExecutionMaxTimeQueryStringin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
- Specified by:
isStatisticsEnabledin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueries
public String[] getQueries()
- Specified by:
getQueriesin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getPluginNames
public String[] getPluginNames()
- Specified by:
getPluginNamesin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueuePutCount
public long getQueuePutCount()
- Specified by:
getQueuePutCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getQueuePollCount
public long getQueuePollCount()
- Specified by:
getQueuePollCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getMessageCreatedCount
public long getMessageCreatedCount()
- Specified by:
getMessageCreatedCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getNotificationCreatedCount
public long getNotificationCreatedCount()
- Specified by:
getNotificationCreatedCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
getDigestCreatedCount
public long getDigestCreatedCount()
- Specified by:
getDigestCreatedCountin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enable)
- Specified by:
setStatisticsEnabledin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
-