JNodeOS v1.1.5 API

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.


Constructor Summary
ChanStats()
           
 
Method Summary
 int getDropBadPacket()
           
 long getDropBytes()
           
 int getDropFailedBuf()
           
 int getDropNoBufs()
           
 int getDropPackets()
           
 int getInBufCopies()
           
 int getInBufQueued()
           
 long getInBytes()
           
 int getInPackets()
           
 int getLength()
           
 int getMaxThreads()
           
 int getOutBufCopies()
           
 long getOutBytes()
           
 int getOutPackets()
           
 int marshal(BufferHandle bh, int offset)
           
 java.lang.String toString()
           
 int unmarshal(BufferHandle bh, int offset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChanStats

public ChanStats()
Method Detail

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

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 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: http://www.cs.utah.edu/flux/janos/