Class ServerStats


  • public class ServerStats
    extends java.lang.Object
    Simple class to centralize statistics gathering and reporting for the RPC implementation server objects. Access to these is basically thread-safe because we're using the Atomic series of classes, but in any case the stats gathered here aren't intended to be exact or precise....
    • Field Detail

      • serverConnections

        public java.util.concurrent.atomic.AtomicLong serverConnections
        Number of actual socket connections made so far.
      • streamSends

        public java.util.concurrent.atomic.AtomicLong streamSends
      • streamRecvs

        public java.util.concurrent.atomic.AtomicLong streamRecvs
      • totalBytesSent

        public java.util.concurrent.atomic.AtomicLong totalBytesSent
      • totalBytesRecv

        public java.util.concurrent.atomic.AtomicLong totalBytesRecv
      • largestSend

        public java.util.concurrent.atomic.AtomicLong largestSend
      • largestRecv

        public java.util.concurrent.atomic.AtomicLong largestRecv
      • packetsSent

        public java.util.concurrent.atomic.AtomicLong packetsSent
      • packetsRecv

        public java.util.concurrent.atomic.AtomicLong packetsRecv
      • bufferCompacts

        public java.util.concurrent.atomic.AtomicLong bufferCompacts
      • connectStart

        public java.util.concurrent.atomic.AtomicLong connectStart
      • largestRpcPacketSent

        public java.util.concurrent.atomic.AtomicLong largestRpcPacketSent
      • largestRpcPacketRecv

        public java.util.concurrent.atomic.AtomicLong largestRpcPacketRecv
      • sendBufSize

        public java.util.concurrent.atomic.AtomicLong sendBufSize
      • recvBufSize

        public java.util.concurrent.atomic.AtomicLong recvBufSize
      • incompleteReads

        public java.util.concurrent.atomic.AtomicLong incompleteReads
    • Constructor Detail

      • ServerStats

        public ServerStats()
    • Method Detail

      • clear

        public void clear()
      • logStats

        public void logStats()