Class DefaultTransportsStatistics
java.lang.Object
org.openspaces.admin.internal.transport.DefaultTransportsStatistics
- All Implemented Interfaces:
TransportsStatistics
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTransportsStatistics(TransportStatistics[] stats, TransportsStatistics previousStats, TransportsDetails details, int historySize) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the summation of all transportTransportStatistics.getActiveThreadsCount().doubleReturns the summation of all transportTransportStatistics.getActiveThreadsPerc().longReturns the summation of all transportTransportStatistics.getCompletedTaskCount()()}.doubleReturns the summation of all transportTransportStatistics.getCompletedTaskPerSecond().Returns the aggregated transports details.Returns the previous statistics.longReturns the previous statistics timestamp.intReturns the summation of all transportTransportStatistics.getQueueSize().intgetSize()Returns the number ofTransportStatisticsthat are aggregated.longReturns the timestamp when this statistics was sampled.booleanisNA()Returnstrueif the statistics are currently not available.voidsetPreviousStats(TransportsStatistics previousStats)
-
Constructor Details
-
DefaultTransportsStatistics
public DefaultTransportsStatistics(TransportStatistics[] stats, TransportsStatistics previousStats, TransportsDetails details, int historySize)
-
-
Method Details
-
isNA
public boolean isNA()Description copied from interface:TransportsStatisticsReturnstrueif the statistics are currently not available.- Specified by:
isNAin interfaceTransportsStatistics
-
getSize
public int getSize()Description copied from interface:TransportsStatisticsReturns the number ofTransportStatisticsthat are aggregated.- Specified by:
getSizein interfaceTransportsStatistics
-
getTimestamp
public long getTimestamp()Description copied from interface:TransportsStatisticsReturns the timestamp when this statistics was sampled.- Specified by:
getTimestampin interfaceTransportsStatistics
-
getPreviousTimestamp
public long getPreviousTimestamp()Description copied from interface:TransportsStatisticsReturns the previous statistics timestamp. Returns-1if this is the first one.- Specified by:
getPreviousTimestampin interfaceTransportsStatistics
-
getPrevious
Description copied from interface:TransportsStatisticsReturns the previous statistics. Returnsnullif this is the first one.- Specified by:
getPreviousin interfaceTransportsStatistics
-
setPreviousStats
-
getDetails
Description copied from interface:TransportsStatisticsReturns the aggregated transports details.- Specified by:
getDetailsin interfaceTransportsStatistics
-
getCompletedTaskCount
public long getCompletedTaskCount()Description copied from interface:TransportsStatisticsReturns the summation of all transportTransportStatistics.getCompletedTaskCount()()}.- Specified by:
getCompletedTaskCountin interfaceTransportsStatistics
-
getCompletedTaskPerSecond
public double getCompletedTaskPerSecond()Description copied from interface:TransportsStatisticsReturns the summation of all transportTransportStatistics.getCompletedTaskPerSecond().- Specified by:
getCompletedTaskPerSecondin interfaceTransportsStatistics
-
getActiveThreadsCount
public int getActiveThreadsCount()Description copied from interface:TransportsStatisticsReturns the summation of all transportTransportStatistics.getActiveThreadsCount().- Specified by:
getActiveThreadsCountin interfaceTransportsStatistics
-
getActiveThreadsPerc
public double getActiveThreadsPerc()Description copied from interface:TransportsStatisticsReturns the summation of all transportTransportStatistics.getActiveThreadsPerc().- Specified by:
getActiveThreadsPercin interfaceTransportsStatistics
-
getQueueSize
public int getQueueSize()Description copied from interface:TransportsStatisticsReturns the summation of all transportTransportStatistics.getQueueSize().- Specified by:
getQueueSizein interfaceTransportsStatistics
-