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 Summary
Constructors Constructor Description StatisticsService(PluginStatisticService pluginStatisticService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactiveStatistics()voidclear()voiddeactiveStatistics()StringgetDailySettingForAllUser()longgetDigestCreatedCount()Get global number of digest createdStringgetDigestDefaultSettingForAllUser()longgetEntityDeleteCount()Get global number of entity deleteslonggetEntityInsertCount()Get global number of entity insertlonggetEntityLoadCount()Get global number of entity loadorg.exoplatform.commons.api.notification.stat.EntityStatisticsgetEntityStatistics(String nodeType)longgetMessageCreatedCount()Get global number of message createdlonggetNotificationCreatedCount()Get global number of notification createdString[]getPluginNames()Get the names of all entitiesorg.exoplatform.commons.api.notification.stat.PluginStatisticsgetPluginStatistics(String pluginId)String[]getQueries()Get all executed query stringslonggetQueryExecutionCount()Get global number of executed querieslonggetQueryExecutionMaxTime()Get the time in milliseconds of the slowest query.StringgetQueryExecutionMaxTimeQueryString()Get the query string for the slowest query.org.exoplatform.commons.api.notification.stat.QueryStatisticsgetQueryStatistics(String queryString)longgetQueuePollCount()Get global number of poll queuelonggetQueuePutCount()Get global number of put queueorg.exoplatform.commons.api.notification.stat.QueueStatisticsgetQueueStatistics(String pluginId)longgetStartTime()org.exoplatform.commons.api.notification.stat.StatisticsgetStatistics()org.exoplatform.commons.api.notification.stat.StatisticsCollectorgetStatisticsCollector()StringgetWeeklySettingForAllUser()booleanisStatisticsEnabled()voidsetStatisticsEnabled(boolean enable)voidstart()voidstop()
-
-
-
Constructor Detail
-
StatisticsService
public StatisticsService(PluginStatisticService pluginStatisticService)
-
-
Method Detail
-
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:
isStatisticsEnabled()
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enable)
- See Also:
setStatisticsEnabled(boolean)
-
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:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
-