JNodeOS v1.2.0 API

edu.utah.janos.nodeos
Class FlowStats

java.lang.Object
  |
  +--edu.utah.janos.nodeos.pj_FlowStats
        |
        +--edu.utah.janos.nodeos.FlowStats

public final class FlowStats
extends edu.utah.janos.nodeos.pj_FlowStats

FlowStats is used to store statistics pertaining to a flow 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
FlowStats()
           
 
Method Summary
 int getActivationCount()
           
 int getCPUUsage()
           
 int getLength()
           
 int getMaxThreads()
           
 int getMemoryUsage()
           
 int getThreadCount()
           
 int marshal(BufferHandle bh, int offset)
           
 java.lang.String toString()
           
 int unmarshal(BufferHandle bh, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowStats

public FlowStats()
Method Detail

getThreadCount

public int getThreadCount()

getMaxThreads

public int getMaxThreads()

getActivationCount

public int getActivationCount()

getCPUUsage

public int getCPUUsage()

getMemoryUsage

public int getMemoryUsage()

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.2.0 API

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