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.
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
FlowStats
public FlowStats()
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
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/