Interface Statistics
-
public interface StatisticsCreated by The eXo Platform SAS Author : eXoPlatform thanhvc@exoplatform.com Oct 10, 2013
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Reset all statisticslonggetDigestCreatedCount()Get global number of entity insertlonggetEntityDeleteCount()Get global number of entity deleteslonggetEntityInsertCount()Get global number of entity insertlonggetEntityLoadCount()Get global number of entity loadEntityStatisticsgetEntityStatistics(String nodeType)Gets EntityStatistics by nodeTypelonggetMessageCreatedCount()Get global number of entity deleteslonggetNotificationCreatedCount()Get global number of entity loadString[]getPluginNames()Get the names of all entitiesPluginStatisticsgetPluginStatistics(String pluginId)Gets PluginStatistics by IdString[]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.QueryStatisticsgetQueryStatistics(String queryString)Gets QueryStatistics by queryStringlonggetQueuePollCount()Get global number of poll queuelonggetQueuePutCount()Get global number of put queueQueueStatisticsgetQueueStatistics(String pluginId)Gets QueueStatistics by IdlonggetStartTime()Gets the start time of statistics processbooleanisStatisticsEnabled()Are statistics loggedvoidsetStatisticsEnabled(boolean enable)Sets is running on statistic mode.
-
-
-
Method Detail
-
clear
void clear()
Reset all statistics
-
getPluginStatistics
PluginStatistics getPluginStatistics(String pluginId)
Gets PluginStatistics by Id- Returns:
-
getEntityStatistics
EntityStatistics getEntityStatistics(String nodeType)
Gets EntityStatistics by nodeType- Returns:
-
getQueueStatistics
QueueStatistics getQueueStatistics(String pluginId)
Gets QueueStatistics by Id- Returns:
-
getQueryStatistics
QueryStatistics getQueryStatistics(String queryString)
Gets QueryStatistics by queryString- Parameters:
queryString-- Returns:
-
getMessageCreatedCount
long getMessageCreatedCount()
Get global number of entity deletes- Returns:
-
getNotificationCreatedCount
long getNotificationCreatedCount()
Get global number of entity load- Returns:
-
getDigestCreatedCount
long getDigestCreatedCount()
Get global number of entity insert- Returns:
-
getEntityDeleteCount
long getEntityDeleteCount()
Get global number of entity deletes- Returns:
-
getEntityLoadCount
long getEntityLoadCount()
Get global number of entity load- Returns:
-
getEntityInsertCount
long getEntityInsertCount()
Get global number of entity insert- Returns:
-
getQueryExecutionCount
long getQueryExecutionCount()
Get global number of executed queries- Returns:
-
getQueryExecutionMaxTime
long getQueryExecutionMaxTime()
Get the time in milliseconds of the slowest query.- Returns:
-
getQueryExecutionMaxTimeQueryString
String getQueryExecutionMaxTimeQueryString()
Get the query string for the slowest query.
-
getQueuePutCount
long getQueuePutCount()
Get global number of put queue- Returns:
-
getQueuePollCount
long getQueuePollCount()
Get global number of poll queue- Returns:
-
isStatisticsEnabled
boolean isStatisticsEnabled()
Are statistics logged
-
getQueries
String[] getQueries()
Get all executed query strings
-
getPluginNames
String[] getPluginNames()
Get the names of all entities
-
getStartTime
long getStartTime()
Gets the start time of statistics process- Returns:
-
setStatisticsEnabled
void setStatisticsEnabled(boolean enable)
Sets is running on statistic mode.- Parameters:
enable-
-
-