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

  Summary

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




  Fields

· MID

Summary  |  Top

   private static final byte[] MID


· PID

Summary  |  Top
   private static final byte[] PID


· infosource

Summary  |  Top
   public int infosource


· parentnode

Summary  |  Top
   public int parentnode


· capTime

Summary  |  Top
   public long capTime


· latency

Summary  |  Top
   public long latency


· nodessentto

Summary  |  Top
   public int nodessentto


· branches

Summary  |  Top
   public Vector branches


  Constructors

· StatsReturnCapsule

Summary  |  Top

   public StatsReturnCapsule() 


· StatsReturnCapsule

Summary  |  Top
   public StatsReturnCapsule(int d) 


· StatsReturnCapsule

Summary  |  Top
   public StatsReturnCapsule(short sa, 
                             short da, 
                             int na, 
                             ByteArray d) 


  Methods

· mid

Summary  |  Top
   protected byte[] mid() 
Overrides:
mid in class DataCapsule


· pid

Summary  |  Top
   protected byte[] pid() 
Overrides:
pid in class DataCapsule


· length

Summary  |  Top
   public int length() 
Overrides:
length in class DataCapsule


· encode

Summary  |  Top
   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


· decode

Summary  |  Top
   public Xdr decode() 
Overrides:
decode in class DataCapsule


· evaluate

Summary  |  Top
   public boolean evaluate(Node n) 
Overrides:
evaluate in class DataCapsule


· showInformation

Summary  |  Top
   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