public class DefaultTransportsStatistics extends Object implements TransportsStatistics
Constructor and Description |
---|
DefaultTransportsStatistics(TransportStatistics[] stats,
TransportsStatistics previousStats,
TransportsDetails details,
int historySize) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveThreadsCount()
Returns the summation of all transport
TransportStatistics.getActiveThreadsCount() . |
double |
getActiveThreadsPerc()
Returns the summation of all transport
TransportStatistics.getActiveThreadsPerc() . |
long |
getCompletedTaskCount()
Returns the summation of all transport
TransportStatistics.getCompletedTaskCount()
()}. |
double |
getCompletedTaskPerSecond()
Returns the summation of all transport
TransportStatistics.getCompletedTaskPerSecond() . |
TransportsDetails |
getDetails()
Returns the aggregated transports details.
|
TransportsStatistics |
getPrevious()
Returns the previous statistics.
|
long |
getPreviousTimestamp()
Returns the previous statistics timestamp.
|
int |
getQueueSize()
Returns the summation of all transport
TransportStatistics.getQueueSize() . |
int |
getSize()
Returns the number of
TransportStatistics that are
aggregated. |
long |
getTimestamp()
Returns the timestamp when this statistics was sampled.
|
boolean |
isNA()
Returns
true if the statistics are currently not available. |
void |
setPreviousStats(TransportsStatistics previousStats) |
public DefaultTransportsStatistics(TransportStatistics[] stats, TransportsStatistics previousStats, TransportsDetails details, int historySize)
public boolean isNA()
TransportsStatistics
true
if the statistics are currently not available.isNA
in interface TransportsStatistics
public int getSize()
TransportsStatistics
TransportStatistics
that are
aggregated.getSize
in interface TransportsStatistics
public long getTimestamp()
TransportsStatistics
getTimestamp
in interface TransportsStatistics
public long getPreviousTimestamp()
TransportsStatistics
-1
if this is the first one.getPreviousTimestamp
in interface TransportsStatistics
public TransportsStatistics getPrevious()
TransportsStatistics
null
if this is the first one.getPrevious
in interface TransportsStatistics
public void setPreviousStats(TransportsStatistics previousStats)
public TransportsDetails getDetails()
TransportsStatistics
getDetails
in interface TransportsStatistics
public long getCompletedTaskCount()
TransportsStatistics
TransportStatistics.getCompletedTaskCount()
()}.getCompletedTaskCount
in interface TransportsStatistics
public double getCompletedTaskPerSecond()
TransportsStatistics
TransportStatistics.getCompletedTaskPerSecond()
.getCompletedTaskPerSecond
in interface TransportsStatistics
public int getActiveThreadsCount()
TransportsStatistics
TransportStatistics.getActiveThreadsCount()
.getActiveThreadsCount
in interface TransportsStatistics
public double getActiveThreadsPerc()
TransportsStatistics
TransportStatistics.getActiveThreadsPerc()
.getActiveThreadsPerc
in interface TransportsStatistics
public int getQueueSize()
TransportsStatistics
TransportStatistics.getQueueSize()
.getQueueSize
in interface TransportsStatistics
Copyright © GigaSpaces.