edu.utah.janos.nodeos
Class ChanStats
java.lang.Object
|
+--edu.utah.janos.nodeos.pj_ChanStats
|
+--edu.utah.janos.nodeos.ChanStats
- public final class ChanStats
- extends edu.utah.janos.nodeos.pj_ChanStats
ChanStats is used to store statistics pertaining to in/out channels in the
system.
XXX This interface is pretty terrible, we should just have a few functions
for each return type (int/long/float) and then pass in a constant
indicating which stat we're intereseted in.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ChanStats
public ChanStats()
getInPackets
public int getInPackets()
getInBytes
public long getInBytes()
getOutPackets
public int getOutPackets()
getOutBytes
public long getOutBytes()
getDropPackets
public int getDropPackets()
getDropNoBufs
public int getDropNoBufs()
getDropFailedBuf
public int getDropFailedBuf()
getDropBadPacket
public int getDropBadPacket()
getDropBytes
public long getDropBytes()
getInBufQueued
public int getInBufQueued()
getInBufCopies
public int getInBufCopies()
getOutBufCopies
public int getOutBufCopies()
getMaxThreads
public int getMaxThreads()
getLength
public int getLength()
- Returns:
- The length, in bytes, of the space required
to store a linearized version of this stats
buffer.
marshal
public int marshal(BufferHandle bh,
int offset)
- Parameters:
bh
- The BufferHandle to marshal the stats into.offset
- The offset into the BufferHandle where the stats
should be marshalled.- Returns:
- The number of bytes written.
unmarshal
public int unmarshal(BufferHandle bh,
int offset)
- Parameters:
bh
- The BufferHandle to unmarshal the stats from.offset
- The position in the buffer where the marshalled stats
are located.- Returns:
- The number of bytes consumed.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002