Class SessionConnectionStatistics

java.lang.Object
com.iizix.comm.statistics.SessionConnectionStatistics
All Implemented Interfaces:
Cloneable

public class SessionConnectionStatistics extends Object implements Cloneable
Session connection statistics used on a connection basis.
Author:
Christopher Mindus
  • Field Details Link icon

    • timeStart Link icon

      public long timeStart
      The start time of the connection (never zero).
    • timeStop Link icon

      public long timeStop
      The stop time of the connection, zero for never.
    • timeLastSent Link icon

      public long timeLastSent
      The time of the last sent transaction, zero for never.
    • timeLastReceived Link icon

      public long timeLastReceived
      The time of the last received transaction, zero for never.
    • lastActivityTime Link icon

      public long lastActivityTime
      The time of the last activity (never zero).
    • bytesSent Link icon

      public long bytesSent
      Size of data sent.
    • bytesReceived Link icon

      public long bytesReceived
      Size of data received.
    • transactionsSent Link icon

      public long transactionsSent
      Count of transactions sent.
    • transactionsReceived Link icon

      public long transactionsReceived
      Count of transactions received.
    • lastPingPongDuration Link icon

      public long lastPingPongDuration
      Elapsed time in nanoseconds for last ping-pong transaction turn-around on the application level, i.e. not at system level like the heart-beat duration that measures more the "link quality". Here the value is more the server-to-app-and-back response time, including queued messages, thread switching, etc.

      The value is zero if ping-pong has not been fired yet.

    • lastHeartBeatDuration Link icon

      public long lastHeartBeatDuration
      The last web socket heart-beat duration (the PING-PONG message exchange in nanoseconds), zero for none yet.
    • properties Link icon

      public HashMap<String,String> properties
      The map of properties for the connection, null if none are present.
  • Method Details Link icon

    • getGlobalInstance Link icon

      public static SessionConnectionStatistics.Global getGlobalInstance()
      Gets a snapshot of the global instance of the transaction information for the server.
    • clone Link icon

      protected SessionConnectionStatistics clone()
      Clones this instance.
      Overrides:
      clone in class Object
    • getState Link icon

      Gets the session state, when not the "last" connection, it indicates the last state of this connection.
    • getDormantStartTime Link icon

      public long getDormantStartTime()
      Gets the time when the session began to be dormant.
      Returns:
      Zero if session is not dormant.
    • getProperties Link icon

      public Map<String,String> getProperties()
      Gets a copy of all properties of the last or current connection.
      Returns:
      The copy of the properties, or null if none are present.
    • transferProperties Link icon

      public void transferProperties(SessionConnectionStatistics other)
      Transfers properties from another instance, used when reconnecting a session.