public class DefaultTransportStatistics extends Object implements TransportStatistics
| Constructor and Description |
|---|
DefaultTransportStatistics() |
DefaultTransportStatistics(NIOStatistics stats,
TransportStatistics previousStats,
TransportDetails details,
int historySize,
long timeDelta) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveThreadsCount()
Returns the number of active threads currently processing a communication task.
|
double |
getActiveThreadsPerc()
Returns the percentage of active threads out of the maximum threads.
|
long |
getAdminTimestamp()
Returns a timestamp that is in sync with where the admin API is running.
|
long |
getCompletedTaskCount()
Returns the number of communication level tasks that were completed.
|
double |
getCompletedTaskPerSecond()
Returns the number of completed communication level tasks per second.
|
TransportDetails |
getDetails()
Returns the transport details.
|
TransportStatistics |
getPrevious()
Returns the previous statistics sampled.
|
long |
getPreviousTimestamp()
Returns the previous statistics timestamp.
|
int |
getQueueSize()
Returns the number of currently waiting communication tasks to be executed.
|
long |
getTimestamp()
Returns the timestamp when the statistics were taken.
|
boolean |
isNA()
Return
true if the statistics are unavailable. |
void |
setPreviousStats(TransportStatistics previousStats) |
public DefaultTransportStatistics()
public DefaultTransportStatistics(NIOStatistics stats, TransportStatistics previousStats, TransportDetails details, int historySize, long timeDelta)
public boolean isNA()
TransportStatisticstrue if the statistics are unavailable.isNA in interface TransportStatisticspublic long getTimestamp()
TransportStatisticsgetTimestamp in interface TransportStatisticspublic long getAdminTimestamp()
TransportStatisticsgetAdminTimestamp in interface TransportStatisticspublic TransportDetails getDetails()
TransportStatisticsgetDetails in interface TransportStatisticspublic long getPreviousTimestamp()
TransportStatistics-1 if this is the first one.getPreviousTimestamp in interface TransportStatisticspublic TransportStatistics getPrevious()
TransportStatisticsnull if this is the first one.getPrevious in interface TransportStatisticspublic void setPreviousStats(TransportStatistics previousStats)
public long getCompletedTaskCount()
TransportStatisticsgetCompletedTaskCount in interface TransportStatisticspublic double getCompletedTaskPerSecond()
TransportStatisticsgetCompletedTaskPerSecond in interface TransportStatisticspublic int getActiveThreadsCount()
TransportStatisticsgetActiveThreadsCount in interface TransportStatisticspublic double getActiveThreadsPerc()
TransportStatisticsgetActiveThreadsPerc in interface TransportStatisticspublic int getQueueSize()
TransportStatisticsgetQueueSize in interface TransportStatisticsCopyright © GigaSpaces.