com.perforce.p4java.impl.mapbased.rpc
Class ServerStats

java.lang.Object
  extended by 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 Summary
 AtomicLong bufferCompacts
           
 AtomicLong connectStart
           
 AtomicLong incompleteReads
           
 AtomicLong largestRecv
           
 AtomicLong largestRpcPacketRecv
           
 AtomicLong largestRpcPacketSent
           
 AtomicLong largestSend
           
 AtomicLong packetsRecv
           
 AtomicLong packetsSent
           
 AtomicLong recvBufSize
           
 AtomicLong sendBufSize
           
 AtomicLong serverConnections
          Number of actual socket connections made so far.
 AtomicLong streamRecvs
           
 AtomicLong streamSends
           
 AtomicLong totalBytesRecv
           
 AtomicLong totalBytesSent
           
 
Constructor Summary
ServerStats()
           
 
Method Summary
 void clear()
           
 void logStats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Detail

ServerStats

public ServerStats()
Method Detail

clear

public void clear()

logStats

public void logStats()


Copyright © 2015 Perforce Software. All Rights Reserved.