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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcreateDigestCount(String pluginId) voidcreateMessageInfoCount(String pluginId) voidcreateNotificationInfoCount(String pluginId) voiddeleteEntity(String nodeType) longlonglonglongorg.exoplatform.commons.api.notification.stat.EntityStatisticsgetEntityStatistics(String nodeType) longlongString[]org.exoplatform.commons.api.notification.stat.PluginStatisticsgetPluginStatistics(String pluginId) String[]longlongorg.exoplatform.commons.api.notification.stat.QueryStatisticsgetQueryStatistics(String queryString) longlongorg.exoplatform.commons.api.notification.stat.QueueStatisticsgetQueueStatistics(String pluginId) longvoidinsertEntity(String nodeType) booleanvoidloadEntity(String nodeType) voidvoidvoidqueryExecuted(String statement, long rows, long time) voidsetStatisticsEnabled(boolean enable) toString()voidupdateEntity(String nodeType)
-
Constructor Details
-
ThreadLocalStatisticsImpl
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
createMessageInfoCount
- Specified by:
createMessageInfoCountin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
createNotificationInfoCount
- Specified by:
createNotificationInfoCountin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
createDigestCount
- Specified by:
createDigestCountin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
deleteEntity
- Specified by:
deleteEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
insertEntity
- Specified by:
insertEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
updateEntity
- Specified by:
updateEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
loadEntity
- Specified by:
loadEntityin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
queryExecuted
- Specified by:
queryExecutedin interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
pollQueue
- Specified by:
pollQueuein interfaceorg.exoplatform.commons.api.notification.stat.StatisticsCollector
-
putQueue
- 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
- 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
- Specified by:
getQueriesin interfaceorg.exoplatform.commons.api.notification.stat.Statistics
-
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
-
toString
-
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
-