public class DefaultSpaceStatistics extends Object implements SpaceStatistics
Constructor and Description |
---|
DefaultSpaceStatistics(SpaceInstanceStatistics[] stats,
SpaceStatistics previous,
int historySize) |
Modifier and Type | Method and Description |
---|---|
long |
getActiveConnectionCount() |
long |
getActiveTransactionCount() |
long |
getChangeCount() |
double |
getChangePerSecond() |
long |
getCleanCount() |
double |
getCleanPerSecond() |
long |
getExecuteCount() |
double |
getExecutePerSecond() |
long |
getNotifyAckCount() |
double |
getNotifyAckPerSecond() |
long |
getNotifyRegistrationCount() |
double |
getNotifyRegistrationPerSecond() |
long |
getNotifyTemplateCount() |
long |
getNotifyTriggerCount() |
double |
getNotifyTriggerPerSecond() |
long |
getObjectCount() |
SpaceStatistics |
getPrevious()
Returns the previous statistics,
null if not available. |
long |
getReadCount() |
double |
getReadPerSecond() |
long |
getRemoveCount()
Remove happens when an entry is removed due to lease expiration or lease cancel.
|
double |
getRemovePerSecond() |
int |
getSize()
Returns the number of
SpaceInstanceStatistics that are
being aggregated. |
long |
getTakeCount() |
double |
getTakePerSecond() |
List<SpaceStatistics> |
getTimelineFromTimestamp(long fromTimestamp)
Returns the timeline (from newest to oldest) history statistics, including this one.
|
long |
getTimestamp()
Returns the timestamp this space statistics were taken.
|
long |
getUpdateCount() |
double |
getUpdatePerSecond() |
long |
getWriteCount() |
double |
getWritePerSecond() |
boolean |
isNA()
Returns
true if the statistics are not available. |
void |
setPrevious(SpaceStatistics previous) |
public DefaultSpaceStatistics(SpaceInstanceStatistics[] stats, SpaceStatistics previous, int historySize)
public boolean isNA()
SpaceStatistics
true
if the statistics are not available.isNA
in interface SpaceStatistics
public SpaceStatistics getPrevious()
SpaceStatistics
null
if not available.getPrevious
in interface SpaceStatistics
public void setPrevious(SpaceStatistics previous)
public int getSize()
SpaceStatistics
SpaceInstanceStatistics
that are
being aggregated.getSize
in interface SpaceStatistics
public long getTimestamp()
SpaceStatistics
getTimestamp
in interface SpaceStatistics
public long getWriteCount()
getWriteCount
in interface SpaceStatistics
public double getWritePerSecond()
getWritePerSecond
in interface SpaceStatistics
public long getReadCount()
getReadCount
in interface SpaceStatistics
public double getReadPerSecond()
getReadPerSecond
in interface SpaceStatistics
public long getTakeCount()
getTakeCount
in interface SpaceStatistics
public double getTakePerSecond()
getTakePerSecond
in interface SpaceStatistics
public long getNotifyRegistrationCount()
getNotifyRegistrationCount
in interface SpaceStatistics
public double getNotifyRegistrationPerSecond()
getNotifyRegistrationPerSecond
in interface SpaceStatistics
public long getCleanCount()
getCleanCount
in interface SpaceStatistics
public double getCleanPerSecond()
getCleanPerSecond
in interface SpaceStatistics
public long getUpdateCount()
getUpdateCount
in interface SpaceStatistics
public double getUpdatePerSecond()
getUpdatePerSecond
in interface SpaceStatistics
public long getNotifyTriggerCount()
getNotifyTriggerCount
in interface SpaceStatistics
public double getNotifyTriggerPerSecond()
getNotifyTriggerPerSecond
in interface SpaceStatistics
public long getNotifyAckCount()
getNotifyAckCount
in interface SpaceStatistics
public double getNotifyAckPerSecond()
getNotifyAckPerSecond
in interface SpaceStatistics
public long getExecuteCount()
getExecuteCount
in interface SpaceStatistics
public double getExecutePerSecond()
getExecutePerSecond
in interface SpaceStatistics
public long getRemoveCount()
SpaceStatistics
getRemoveCount
in interface SpaceStatistics
public double getRemovePerSecond()
getRemovePerSecond
in interface SpaceStatistics
public long getChangeCount()
getChangeCount
in interface SpaceStatistics
public double getChangePerSecond()
getChangePerSecond
in interface SpaceStatistics
public long getObjectCount()
getObjectCount
in interface SpaceStatistics
public long getNotifyTemplateCount()
getNotifyTemplateCount
in interface SpaceStatistics
public long getActiveConnectionCount()
getActiveConnectionCount
in interface SpaceStatistics
public long getActiveTransactionCount()
getActiveTransactionCount
in interface SpaceStatistics
public List<SpaceStatistics> getTimelineFromTimestamp(long fromTimestamp)
SpaceStatistics
getTimelineFromTimestamp
in interface SpaceStatistics
fromTimestamp
- brings statistics starting from this timestamp ( not included )Copyright © GigaSpaces.