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()
TransportsStatisticstrue if the statistics are currently not available.isNA in interface TransportsStatisticspublic int getSize()
TransportsStatisticsTransportStatistics that are
aggregated.getSize in interface TransportsStatisticspublic long getTimestamp()
TransportsStatisticsgetTimestamp in interface TransportsStatisticspublic long getPreviousTimestamp()
TransportsStatistics-1 if this is the first one.getPreviousTimestamp in interface TransportsStatisticspublic TransportsStatistics getPrevious()
TransportsStatisticsnull if this is the first one.getPrevious in interface TransportsStatisticspublic void setPreviousStats(TransportsStatistics previousStats)
public TransportsDetails getDetails()
TransportsStatisticsgetDetails in interface TransportsStatisticspublic long getCompletedTaskCount()
TransportsStatisticsTransportStatistics.getCompletedTaskCount()
()}.getCompletedTaskCount in interface TransportsStatisticspublic double getCompletedTaskPerSecond()
TransportsStatisticsTransportStatistics.getCompletedTaskPerSecond().getCompletedTaskPerSecond in interface TransportsStatisticspublic int getActiveThreadsCount()
TransportsStatisticsTransportStatistics.getActiveThreadsCount().getActiveThreadsCount in interface TransportsStatisticspublic double getActiveThreadsPerc()
TransportsStatisticsTransportStatistics.getActiveThreadsPerc().getActiveThreadsPerc in interface TransportsStatisticspublic int getQueueSize()
TransportsStatisticsTransportStatistics.getQueueSize().getQueueSize in interface TransportsStatisticsCopyright © GigaSpaces.