Class StatisticsService
java.lang.Object
org.exoplatform.commons.notification.impl.StatisticsService
- All Implemented Interfaces:
org.picocontainer.Startable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()voidlongGet global number of digest createdlongGet global number of entity deleteslongGet global number of entity insertlongGet global number of entity loadorg.exoplatform.commons.api.notification.stat.EntityStatisticsgetEntityStatistics(String nodeType) longGet global number of message createdlongGet global number of notification createdString[]Get the names of all entitiesorg.exoplatform.commons.api.notification.stat.PluginStatisticsgetPluginStatistics(String pluginId) String[]Get all executed query stringslongGet global number of executed querieslongGet the time in milliseconds of the slowest query.Get the query string for the slowest query.org.exoplatform.commons.api.notification.stat.QueryStatisticsgetQueryStatistics(String queryString) longGet global number of poll queuelongGet global number of put queueorg.exoplatform.commons.api.notification.stat.QueueStatisticsgetQueueStatistics(String pluginId) longorg.exoplatform.commons.api.notification.stat.Statisticsorg.exoplatform.commons.api.notification.stat.StatisticsCollectorbooleanvoidsetStatisticsEnabled(boolean enable) voidstart()voidstop()
-
Constructor Details
-
StatisticsService
-
-
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
-
getWeeklySettingForAllUser
-
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
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
Get all executed query strings -
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
-