Class ServerStats

java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.ServerStats

public class ServerStats extends 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 Details

    • serverConnections

      public AtomicLong serverConnections
      Number of actual socket connections made so far.
    • streamSends

      public AtomicLong streamSends
    • streamRecvs

      public AtomicLong streamRecvs
    • totalBytesSent

      public AtomicLong totalBytesSent
    • totalBytesRecv

      public AtomicLong totalBytesRecv
    • largestSend

      public AtomicLong largestSend
    • largestRecv

      public AtomicLong largestRecv
    • packetsSent

      public AtomicLong packetsSent
    • packetsRecv

      public AtomicLong packetsRecv
    • bufferCompacts

      public AtomicLong bufferCompacts
    • connectStart

      public AtomicLong connectStart
    • largestRpcPacketSent

      public AtomicLong largestRpcPacketSent
    • largestRpcPacketRecv

      public AtomicLong largestRpcPacketRecv
    • sendBufSize

      public AtomicLong sendBufSize
    • recvBufSize

      public AtomicLong recvBufSize
    • incompleteReads

      public AtomicLong incompleteReads
  • Constructor Details

    • ServerStats

      public ServerStats()
  • Method Details

    • clear

      public void clear()
    • logStats

      public void logStats()