Package org.openspaces.admin.transport
Interface TransportStatistics
- All Known Implementing Classes:
DefaultTransportStatistics
public interface TransportStatistics
A transport level statistics.
- Author:
- kimchy
-
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.
-
Method Details
-
isNA
boolean isNA()Returntrueif the statistics are unavailable. -
getTimestamp
long getTimestamp()Returns the timestamp when the statistics were taken. -
getAdminTimestamp
long getAdminTimestamp()Returns a timestamp that is in sync with where the admin API is running. Can return -1 if the clocks have are not sync yet. -
getPreviousTimestamp
long getPreviousTimestamp()Returns the previous statistics timestamp. Returns-1if this is the first one. -
getDetails
TransportDetails getDetails()Returns the transport details. -
getPrevious
TransportStatistics getPrevious()Returns the previous statistics sampled. Returnsnullif this is the first one. -
getCompletedTaskCount
long getCompletedTaskCount()Returns the number of communication level tasks that were completed. -
getCompletedTaskPerSecond
double getCompletedTaskPerSecond()Returns the number of completed communication level tasks per second. -
getActiveThreadsCount
int getActiveThreadsCount()Returns the number of active threads currently processing a communication task. -
getActiveThreadsPerc
double getActiveThreadsPerc()Returns the percentage of active threads out of the maximum threads. -
getQueueSize
int getQueueSize()Returns the number of currently waiting communication tasks to be executed.
-