public class DefaultSpaceInstanceStatistics extends Object implements SpaceInstanceStatistics
Constructor and Description |
---|
DefaultSpaceInstanceStatistics() |
DefaultSpaceInstanceStatistics(StatisticsHolder statisticsHolder,
SpaceInstanceStatistics previousStats,
int historySize,
long timeDelta) |
Modifier and Type | Method and Description |
---|---|
long |
getActiveConnectionCount() |
long |
getActiveTransactionCount() |
long |
getAdminTimestamp()
Returns a timestamp that is in sync with where the admin API is running.
|
BlobStoreStatistics |
getBlobStoreStatistics() |
long |
getChangeCount() |
double |
getChangePerSecond() |
long |
getCleanCount() |
double |
getCleanPerSecond() |
long |
getExecuteCount() |
double |
getExecutePerSecond() |
MirrorStatistics |
getMirrorStatistics() |
int |
getNotifierQueueSize()
Gets the current number of pending notifications that needs to be sent to different clients.
|
long |
getNotifyAckCount() |
double |
getNotifyAckPerSecond() |
long |
getNotifyRegistrationCount() |
double |
getNotifyRegistrationPerSecond() |
long |
getNotifyTemplateCount() |
long |
getNotifyTriggerCount() |
double |
getNotifyTriggerPerSecond() |
long |
getObjectCount() |
SpaceInstanceStatistics |
getPrevious()
Returns the previous statistics.
|
long |
getPreviousTimestamp()
Returns the previous statistics timestamp, or
-1 if not available. |
int |
getProcessorQueueSize()
Gets the current number of pending tasks in the space processor queue.
|
long |
getReadCount() |
double |
getReadPerSecond() |
long |
getRemoveCount()
Remove happens when an entry is removed due to lease expiration or lease cancel.
|
double |
getRemovePerSecond() |
ReplicationStatistics |
getReplicationStatistics() |
long |
getTakeCount() |
double |
getTakePerSecond() |
List<SpaceInstanceStatistics> |
getTimelineFromTimestamp(long fromTimestamp)
Returns the timeline (from newest to oldest) history statistics, including this one.
|
long |
getTimestamp()
Returns the timestamp the statistics were taken at.
|
long |
getUpdateCount() |
double |
getUpdatePerSecond() |
long |
getWriteCount() |
double |
getWritePerSecond() |
boolean |
isNA()
Returns
true if this statistics are not available. |
void |
setPreviousStats(SpaceInstanceStatistics previousStats) |
public DefaultSpaceInstanceStatistics()
public DefaultSpaceInstanceStatistics(StatisticsHolder statisticsHolder, SpaceInstanceStatistics previousStats, int historySize, long timeDelta)
public boolean isNA()
SpaceInstanceStatistics
true
if this statistics are not available.isNA
in interface SpaceInstanceStatistics
public long getTimestamp()
SpaceInstanceStatistics
getTimestamp
in interface SpaceInstanceStatistics
public long getAdminTimestamp()
SpaceInstanceStatistics
getAdminTimestamp
in interface SpaceInstanceStatistics
public long getPreviousTimestamp()
SpaceInstanceStatistics
-1
if not available.getPreviousTimestamp
in interface SpaceInstanceStatistics
public SpaceInstanceStatistics getPrevious()
SpaceInstanceStatistics
getPrevious
in interface SpaceInstanceStatistics
public void setPreviousStats(SpaceInstanceStatistics previousStats)
public long getWriteCount()
getWriteCount
in interface SpaceInstanceStatistics
public double getWritePerSecond()
getWritePerSecond
in interface SpaceInstanceStatistics
public long getReadCount()
getReadCount
in interface SpaceInstanceStatistics
public double getReadPerSecond()
getReadPerSecond
in interface SpaceInstanceStatistics
public long getTakeCount()
getTakeCount
in interface SpaceInstanceStatistics
public double getTakePerSecond()
getTakePerSecond
in interface SpaceInstanceStatistics
public long getNotifyRegistrationCount()
getNotifyRegistrationCount
in interface SpaceInstanceStatistics
public double getNotifyRegistrationPerSecond()
getNotifyRegistrationPerSecond
in interface SpaceInstanceStatistics
public long getCleanCount()
getCleanCount
in interface SpaceInstanceStatistics
public double getCleanPerSecond()
getCleanPerSecond
in interface SpaceInstanceStatistics
public long getUpdateCount()
getUpdateCount
in interface SpaceInstanceStatistics
public double getUpdatePerSecond()
getUpdatePerSecond
in interface SpaceInstanceStatistics
public long getNotifyTriggerCount()
getNotifyTriggerCount
in interface SpaceInstanceStatistics
public double getNotifyTriggerPerSecond()
getNotifyTriggerPerSecond
in interface SpaceInstanceStatistics
public long getNotifyAckCount()
getNotifyAckCount
in interface SpaceInstanceStatistics
public double getNotifyAckPerSecond()
getNotifyAckPerSecond
in interface SpaceInstanceStatistics
public long getExecuteCount()
getExecuteCount
in interface SpaceInstanceStatistics
public double getExecutePerSecond()
getExecutePerSecond
in interface SpaceInstanceStatistics
public long getRemoveCount()
getRemoveCount
in interface SpaceInstanceStatistics
public double getRemovePerSecond()
getRemovePerSecond
in interface SpaceInstanceStatistics
public long getChangeCount()
getChangeCount
in interface SpaceInstanceStatistics
public double getChangePerSecond()
getChangePerSecond
in interface SpaceInstanceStatistics
public ReplicationStatistics getReplicationStatistics()
getReplicationStatistics
in interface SpaceInstanceStatistics
public MirrorStatistics getMirrorStatistics()
getMirrorStatistics
in interface SpaceInstanceStatistics
public BlobStoreStatistics getBlobStoreStatistics()
getBlobStoreStatistics
in interface SpaceInstanceStatistics
public int getProcessorQueueSize()
SpaceInstanceStatistics
getProcessorQueueSize
in interface SpaceInstanceStatistics
public int getNotifierQueueSize()
SpaceInstanceStatistics
getNotifierQueueSize
in interface SpaceInstanceStatistics
public long getObjectCount()
getObjectCount
in interface SpaceInstanceStatistics
public long getNotifyTemplateCount()
getNotifyTemplateCount
in interface SpaceInstanceStatistics
public long getActiveConnectionCount()
getActiveConnectionCount
in interface SpaceInstanceStatistics
public long getActiveTransactionCount()
getActiveTransactionCount
in interface SpaceInstanceStatistics
public List<SpaceInstanceStatistics> getTimelineFromTimestamp(long fromTimestamp)
SpaceInstanceStatistics
getTimelineFromTimestamp
in interface SpaceInstanceStatistics
fromTimestamp
- brings statistics starting from this timestamp ( not included )Copyright © GigaSpaces.