Class DefaultTransportStatistics
java.lang.Object
org.openspaces.admin.internal.transport.DefaultTransportStatistics
- All Implemented Interfaces:
TransportStatistics
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTransportStatistics(NIOStatistics stats, TransportStatistics previousStats, TransportDetails details, int historySize, long timeDelta) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of active threads currently processing a communication task.doubleReturns the percentage of active threads out of the maximum threads.longReturns a timestamp that is in sync with where the admin API is running.longReturns the number of communication level tasks that were completed.doubleReturns the number of completed communication level tasks per second.Returns the transport details.Returns the previous statistics sampled.longReturns the previous statistics timestamp.intReturns the number of currently waiting communication tasks to be executed.longReturns the timestamp when the statistics were taken.booleanisNA()Returntrueif the statistics are unavailable.voidsetPreviousStats(TransportStatistics previousStats)
-
Constructor Details
-
DefaultTransportStatistics
public DefaultTransportStatistics() -
DefaultTransportStatistics
public DefaultTransportStatistics(NIOStatistics stats, TransportStatistics previousStats, TransportDetails details, int historySize, long timeDelta)
-
-
Method Details
-
isNA
public boolean isNA()Description copied from interface:TransportStatisticsReturntrueif the statistics are unavailable.- Specified by:
isNAin interfaceTransportStatistics
-
getTimestamp
public long getTimestamp()Description copied from interface:TransportStatisticsReturns the timestamp when the statistics were taken.- Specified by:
getTimestampin interfaceTransportStatistics
-
getAdminTimestamp
public long getAdminTimestamp()Description copied from interface:TransportStatisticsReturns a timestamp that is in sync with where the admin API is running. Can return -1 if the clocks have are not sync yet.- Specified by:
getAdminTimestampin interfaceTransportStatistics
-
getDetails
Description copied from interface:TransportStatisticsReturns the transport details.- Specified by:
getDetailsin interfaceTransportStatistics
-
getPreviousTimestamp
public long getPreviousTimestamp()Description copied from interface:TransportStatisticsReturns the previous statistics timestamp. Returns-1if this is the first one.- Specified by:
getPreviousTimestampin interfaceTransportStatistics
-
getPrevious
Description copied from interface:TransportStatisticsReturns the previous statistics sampled. Returnsnullif this is the first one.- Specified by:
getPreviousin interfaceTransportStatistics
-
setPreviousStats
-
getCompletedTaskCount
public long getCompletedTaskCount()Description copied from interface:TransportStatisticsReturns the number of communication level tasks that were completed.- Specified by:
getCompletedTaskCountin interfaceTransportStatistics
-
getCompletedTaskPerSecond
public double getCompletedTaskPerSecond()Description copied from interface:TransportStatisticsReturns the number of completed communication level tasks per second.- Specified by:
getCompletedTaskPerSecondin interfaceTransportStatistics
-
getActiveThreadsCount
public int getActiveThreadsCount()Description copied from interface:TransportStatisticsReturns the number of active threads currently processing a communication task.- Specified by:
getActiveThreadsCountin interfaceTransportStatistics
-
getActiveThreadsPerc
public double getActiveThreadsPerc()Description copied from interface:TransportStatisticsReturns the percentage of active threads out of the maximum threads.- Specified by:
getActiveThreadsPercin interfaceTransportStatistics
-
getQueueSize
public int getQueueSize()Description copied from interface:TransportStatisticsReturns the number of currently waiting communication tasks to be executed.- Specified by:
getQueueSizein interfaceTransportStatistics
-