Class ServerStats
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.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 Summary
Fields Modifier and Type Field Description java.util.concurrent.atomic.AtomicLong
bufferCompacts
java.util.concurrent.atomic.AtomicLong
connectStart
java.util.concurrent.atomic.AtomicLong
incompleteReads
java.util.concurrent.atomic.AtomicLong
largestRecv
java.util.concurrent.atomic.AtomicLong
largestRpcPacketRecv
java.util.concurrent.atomic.AtomicLong
largestRpcPacketSent
java.util.concurrent.atomic.AtomicLong
largestSend
java.util.concurrent.atomic.AtomicLong
packetsRecv
java.util.concurrent.atomic.AtomicLong
packetsSent
java.util.concurrent.atomic.AtomicLong
recvBufSize
java.util.concurrent.atomic.AtomicLong
sendBufSize
java.util.concurrent.atomic.AtomicLong
serverConnections
Number of actual socket connections made so far.java.util.concurrent.atomic.AtomicLong
streamRecvs
java.util.concurrent.atomic.AtomicLong
streamSends
java.util.concurrent.atomic.AtomicLong
totalBytesRecv
java.util.concurrent.atomic.AtomicLong
totalBytesSent
-
Constructor Summary
Constructors Constructor Description ServerStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
logStats()
-
-
-
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
-
-