Class DefaultSpaceInstanceStatistics
java.lang.Object
org.openspaces.admin.internal.space.DefaultSpaceInstanceStatistics
- All Implemented Interfaces:
SpaceInstanceStatistics
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpaceInstanceStatistics(StatisticsHolder statisticsHolder, SpaceInstanceStatistics previousStats, int historySize, long timeDelta) -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongReturns a timestamp that is in sync with where the admin API is running.longdoublelongdoublelongdoubleintGets the current number of pending notifications that needs to be sent to different clients.longdoublelongdoublelonglongdoublelongReturns the previous statistics.longReturns the previous statistics timestamp, or-1if not available.intGets the current number of pending tasks in the space processor queue.longdoublelongRemove happens when an entry is removed due to lease expiration or lease cancel.doublelongdoublegetTimelineFromTimestamp(long fromTimestamp) Returns the timeline (from newest to oldest) history statistics, including this one.longReturns the timestamp the statistics were taken at.longdoublelongdoublebooleanisNA()Returnstrueif this statistics are not available.voidsetPreviousStats(SpaceInstanceStatistics previousStats)
-
Constructor Details
-
DefaultSpaceInstanceStatistics
public DefaultSpaceInstanceStatistics() -
DefaultSpaceInstanceStatistics
public DefaultSpaceInstanceStatistics(StatisticsHolder statisticsHolder, SpaceInstanceStatistics previousStats, int historySize, long timeDelta)
-
-
Method Details
-
isNA
public boolean isNA()Description copied from interface:SpaceInstanceStatisticsReturnstrueif this statistics are not available.- Specified by:
isNAin interfaceSpaceInstanceStatistics
-
getTimestamp
public long getTimestamp()Description copied from interface:SpaceInstanceStatisticsReturns the timestamp the statistics were taken at.- Specified by:
getTimestampin interfaceSpaceInstanceStatistics
-
getAdminTimestamp
public long getAdminTimestamp()Description copied from interface:SpaceInstanceStatisticsReturns a timestamp that is in sync with where the admin API is running. Can return -1 if the clocks have are not sync yet.- Specified by:
getAdminTimestampin interfaceSpaceInstanceStatistics
-
getPreviousTimestamp
public long getPreviousTimestamp()Description copied from interface:SpaceInstanceStatisticsReturns the previous statistics timestamp, or-1if not available.- Specified by:
getPreviousTimestampin interfaceSpaceInstanceStatistics
-
getPrevious
Description copied from interface:SpaceInstanceStatisticsReturns the previous statistics.- Specified by:
getPreviousin interfaceSpaceInstanceStatistics
-
setPreviousStats
-
getWriteCount
public long getWriteCount()- Specified by:
getWriteCountin interfaceSpaceInstanceStatistics
-
getWritePerSecond
public double getWritePerSecond()- Specified by:
getWritePerSecondin interfaceSpaceInstanceStatistics
-
getReadCount
public long getReadCount()- Specified by:
getReadCountin interfaceSpaceInstanceStatistics
-
getReadPerSecond
public double getReadPerSecond()- Specified by:
getReadPerSecondin interfaceSpaceInstanceStatistics
-
getTakeCount
public long getTakeCount()- Specified by:
getTakeCountin interfaceSpaceInstanceStatistics
-
getTakePerSecond
public double getTakePerSecond()- Specified by:
getTakePerSecondin interfaceSpaceInstanceStatistics
-
getNotifyRegistrationCount
public long getNotifyRegistrationCount()- Specified by:
getNotifyRegistrationCountin interfaceSpaceInstanceStatistics
-
getNotifyRegistrationPerSecond
public double getNotifyRegistrationPerSecond()- Specified by:
getNotifyRegistrationPerSecondin interfaceSpaceInstanceStatistics
-
getCleanCount
public long getCleanCount()- Specified by:
getCleanCountin interfaceSpaceInstanceStatistics
-
getCleanPerSecond
public double getCleanPerSecond()- Specified by:
getCleanPerSecondin interfaceSpaceInstanceStatistics
-
getUpdateCount
public long getUpdateCount()- Specified by:
getUpdateCountin interfaceSpaceInstanceStatistics
-
getUpdatePerSecond
public double getUpdatePerSecond()- Specified by:
getUpdatePerSecondin interfaceSpaceInstanceStatistics
-
getNotifyTriggerCount
public long getNotifyTriggerCount()- Specified by:
getNotifyTriggerCountin interfaceSpaceInstanceStatistics
-
getNotifyTriggerPerSecond
public double getNotifyTriggerPerSecond()- Specified by:
getNotifyTriggerPerSecondin interfaceSpaceInstanceStatistics
-
getNotifyAckCount
public long getNotifyAckCount()- Specified by:
getNotifyAckCountin interfaceSpaceInstanceStatistics
-
getNotifyAckPerSecond
public double getNotifyAckPerSecond()- Specified by:
getNotifyAckPerSecondin interfaceSpaceInstanceStatistics
-
getExecuteCount
public long getExecuteCount()- Specified by:
getExecuteCountin interfaceSpaceInstanceStatistics
-
getExecutePerSecond
public double getExecutePerSecond()- Specified by:
getExecutePerSecondin interfaceSpaceInstanceStatistics
-
getRemoveCount
public long getRemoveCount()Remove happens when an entry is removed due to lease expiration or lease cancel.- Specified by:
getRemoveCountin interfaceSpaceInstanceStatistics
-
getRemovePerSecond
public double getRemovePerSecond()- Specified by:
getRemovePerSecondin interfaceSpaceInstanceStatistics
-
getChangeCount
public long getChangeCount()- Specified by:
getChangeCountin interfaceSpaceInstanceStatistics
-
getChangePerSecond
public double getChangePerSecond()- Specified by:
getChangePerSecondin interfaceSpaceInstanceStatistics
-
getReplicationStatistics
- Specified by:
getReplicationStatisticsin interfaceSpaceInstanceStatistics
-
getMirrorStatistics
- Specified by:
getMirrorStatisticsin interfaceSpaceInstanceStatistics
-
getBlobStoreStatistics
- Specified by:
getBlobStoreStatisticsin interfaceSpaceInstanceStatistics
-
getProcessorQueueSize
public int getProcessorQueueSize()Description copied from interface:SpaceInstanceStatisticsGets the current number of pending tasks in the space processor queue.- Specified by:
getProcessorQueueSizein interfaceSpaceInstanceStatistics
-
getNotifierQueueSize
public int getNotifierQueueSize()Description copied from interface:SpaceInstanceStatisticsGets the current number of pending notifications that needs to be sent to different clients.- Specified by:
getNotifierQueueSizein interfaceSpaceInstanceStatistics
-
getObjectCount
public long getObjectCount()- Specified by:
getObjectCountin interfaceSpaceInstanceStatistics- Returns:
- count of all the objects in this Space instance.
-
getNotifyTemplateCount
public long getNotifyTemplateCount()- Specified by:
getNotifyTemplateCountin interfaceSpaceInstanceStatistics- Returns:
- count of all the notify templates this Space instance.
-
getActiveConnectionCount
public long getActiveConnectionCount()- Specified by:
getActiveConnectionCountin interfaceSpaceInstanceStatistics- Returns:
- count of all the active connections to this Space instance.
-
getActiveTransactionCount
public long getActiveTransactionCount()- Specified by:
getActiveTransactionCountin interfaceSpaceInstanceStatistics- Returns:
- count of all the active transactions (of all types) in this Space instance.
-
getTimelineFromTimestamp
Description copied from interface:SpaceInstanceStatisticsReturns the timeline (from newest to oldest) history statistics, including this one.- Specified by:
getTimelineFromTimestampin interfaceSpaceInstanceStatistics- Parameters:
fromTimestamp- brings statistics starting from this timestamp ( not included )
-