All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.antsr.apps.stats.StatsReturnCapsule
java.lang.Object
|
+----edu.utah.janos.antsr.core.Capsule
|
+----edu.utah.janos.antsr.core.DataCapsule
|
+----edu.utah.janos.antsr.apps.stats.StatsReturnCapsule
public class StatsReturnCapsule
extends edu.utah.janos.antsr.core.DataCapsule
{
// Fields 8
private static final byte[] MID;
private static final byte[] PID;
public Vector branches;
public long capTime;
public int infosource;
public long latency;
public int nodessentto;
public int parentnode;
// Constructors 3
public StatsReturnCapsule();
public StatsReturnCapsule(int);
public StatsReturnCapsule(short, short, int, ByteArray);
// Methods 7
public Xdr decode();
public Xdr encode();
public boolean evaluate(Node);
public int length();
protected byte[] mid();
protected byte[] pid();
public void showInformation(Node);
}
Stats return capsule.
- Author:
-
Janos Ministry of Development
private static final byte[] MID
private static final byte[] PID
public int infosource
public int parentnode
public long capTime
public long latency
public int nodessentto
public Vector branches
public StatsReturnCapsule()
public StatsReturnCapsule(int d)
public StatsReturnCapsule(short sa,
short da,
int na,
ByteArray d)
protected byte[] mid()
- Overrides:
- mid in class DataCapsule
protected byte[] pid()
- Overrides:
- pid in class DataCapsule
public int length()
- Overrides:
- length in class DataCapsule
public Xdr encode()
Return capsule looks like:
4 Address of the actual source of the information
4 Address of the node that requested stats from source node
4 Time capsule this is a response to was sent
4 Latency (0 if latency has yet to be figured)
4 Number of nodes the source of this return sent to
The data in the datacapsule contains strings which specify the
actual statistics of the node this is returning from
- Overrides:
- encode in class DataCapsule
public Xdr decode()
- Overrides:
- decode in class DataCapsule
public boolean evaluate(Node n)
- Overrides:
- evaluate in class DataCapsule
public void showInformation(Node n)
Print out the information that is contained in this capsule
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7