com.threerings.presents.peer.server
Class PeerManager.Stats

java.lang.Object
  extended by com.threerings.presents.peer.server.PeerManager.Stats
All Implemented Interfaces:
Cloneable
Enclosing class:
PeerManager

public static class PeerManager.Stats
extends Object
implements Cloneable

Returned by PeerManager.getStats().


Field Summary
 long lockAcquireWait
          The number of milliseconds spent waiting to acquire locks.
 long locksAcquired
          The number of locks this node has acquired.
 long locksHijacked
          The number of locks this node has had hijacked.
 long locksReleased
          The number of locks this node has released.
 long lockTimeouts
          The number of lock requests that have timed out.
 long nodeActionsInvoked
          The number of node actions we've invoked.
 AtomicLong peerMessagesIn
          The total number of messages received from all of our peers.
 long peerMessagesOut
          The total number of messages sent to all of our peers.
 
Constructor Summary
PeerManager.Stats()
           
 
Method Summary
 PeerManager.Stats clone()
           
 void noteNodeActionInvoked(PeerManager.NodeAction action)
           
 void notePeerMessageReceived(Message msg)
           
 void notePeerMessageSent(DownstreamMessage msg)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locksAcquired

public long locksAcquired
The number of locks this node has acquired.


lockAcquireWait

public long lockAcquireWait
The number of milliseconds spent waiting to acquire locks.


locksReleased

public long locksReleased
The number of locks this node has released.


locksHijacked

public long locksHijacked
The number of locks this node has had hijacked.


lockTimeouts

public long lockTimeouts
The number of lock requests that have timed out.


nodeActionsInvoked

public long nodeActionsInvoked
The number of node actions we've invoked.


peerMessagesIn

public AtomicLong peerMessagesIn
The total number of messages received from all of our peers. This is updated on the conmgr thread which is why it's atomic.


peerMessagesOut

public long peerMessagesOut
The total number of messages sent to all of our peers.

Constructor Detail

PeerManager.Stats

public PeerManager.Stats()
Method Detail

noteNodeActionInvoked

public void noteNodeActionInvoked(PeerManager.NodeAction action)

notePeerMessageReceived

public void notePeerMessageReceived(Message msg)

notePeerMessageSent

public void notePeerMessageSent(DownstreamMessage msg)

clone

public PeerManager.Stats clone()
Overrides:
clone in class Object