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()
TransportStatistics
true
if the statistics are unavailable.isNA
in interface TransportStatistics
public long getTimestamp()
TransportStatistics
getTimestamp
in interface TransportStatistics
public long getAdminTimestamp()
TransportStatistics
getAdminTimestamp
in interface TransportStatistics
public TransportDetails getDetails()
TransportStatistics
getDetails
in interface TransportStatistics
public long getPreviousTimestamp()
TransportStatistics
-1
if this is the first one.getPreviousTimestamp
in interface TransportStatistics
public TransportStatistics getPrevious()
TransportStatistics
null
if this is the first one.getPrevious
in interface TransportStatistics
public void setPreviousStats(TransportStatistics previousStats)
public long getCompletedTaskCount()
TransportStatistics
getCompletedTaskCount
in interface TransportStatistics
public double getCompletedTaskPerSecond()
TransportStatistics
getCompletedTaskPerSecond
in interface TransportStatistics
public int getActiveThreadsCount()
TransportStatistics
getActiveThreadsCount
in interface TransportStatistics
public double getActiveThreadsPerc()
TransportStatistics
getActiveThreadsPerc
in interface TransportStatistics
public int getQueueSize()
TransportStatistics
getQueueSize
in interface TransportStatistics
Copyright © GigaSpaces.