All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.ants.ants.ProtocolBooster
java.lang.Object
   |
   +----edu.utah.janos.core.FlowRun
           |
           +----edu.utah.janos.ants.ants.Booster
                   |
                   +----edu.utah.janos.ants.ants.ProtocolBooster

  Summary

public class  ProtocolBooster
     extends edu.utah.janos.ants.ants.Booster
{
          // Constructors 1
     public ProtocolBooster(ClassInstantiationKey) throws SecurityException;

          // Methods 3
     private void newMidLoop(CommQueue, Node);
     public void run(Flow, ThreadPool, String[], CommSpaceHandle) throws Exception;
     private void startNewMid(Node, TypeID, int);
}

This is invoked by PrimordialNode as the intial class in a new flow. This new flow is charged with taking the new (unknown protocol) packet, requesting and loading the code associated with that packet and then processing the packet.

CommSpaceHandle should point to a valid CSH for the Booster class, plus: [2] a byte[]. The MID of the protocol this Booster is working for. [3] an integer -- the logical ANTS address of the node that sent the packet. [4] a slot to write an InChannelHandle into.




  Constructors

· ProtocolBooster

Summary  |  Top

   public ProtocolBooster(ClassInstantiationKey key)  throws SecurityException


  Methods

· run

Summary  |  Top
   public void run(Flow flow, 
                   ThreadPool threadPool, 
                   String[] args, 
                   CommSpaceHandle commSpaceHandle)  throws Exception
Overrides:
run in class FlowRun


· newMidLoop

Summary  |  Top
   private void newMidLoop(CommQueue queue, 
                           Node node) 


· startNewMid

Summary  |  Top
   private void startNewMid(Node node, 
                            TypeID mid, 
                            int prev) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7