Interface TransportStatistics

All Known Implementing Classes:
DefaultTransportStatistics

public interface TransportStatistics
A transport level statistics.
Author:
kimchy
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of active threads currently processing a communication task.
    double
    Returns the percentage of active threads out of the maximum threads.
    long
    Returns a timestamp that is in sync with where the admin API is running.
    long
    Returns the number of communication level tasks that were completed.
    double
    Returns the number of completed communication level tasks per second.
    Returns the transport details.
    Returns the previous statistics sampled.
    long
    Returns the previous statistics timestamp.
    int
    Returns the number of currently waiting communication tasks to be executed.
    long
    Returns the timestamp when the statistics were taken.
    boolean
    Return true if the statistics are unavailable.
  • Method Details

    • isNA

      boolean isNA()
      Return true if 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 -1 if this is the first one.
    • getDetails

      TransportDetails getDetails()
      Returns the transport details.
    • getPrevious

      TransportStatistics getPrevious()
      Returns the previous statistics sampled. Returns null if 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.