appia.test.applflow
Class ApplFlowSession

java.lang.Object
  |
  +--appia.Session
        |
        +--appia.test.applflow.ApplFlowSession

public class ApplFlowSession
extends appia.Session

Class Application Session provides the dynamic behaviour for the simple user interface with Appia. This interface accepts a predefined set of commands, forwarding them to Appia. It is mainly used for testing flow control protocols and semantic buffers.


Field Summary
 appia.Channel channel
          Keeps the reference of the channel that will be used
 
Fields inherited from class appia.Session
layer
 
Constructor Summary
ApplFlowSession(ApplFlowLayer l)
          Constructor of the Session.
 
Method Summary
 void handle(appia.Event e)
          Main Event handler function.
 void init(int myPort, appia.protocols.udpsimple.InetWithPort gossip, appia.protocols.udpsimple.InetWithPort ip_multicast, java.lang.String[] view, int off)
          Inits some parameters of the session.
 
Methods inherited from class appia.Session
boundSessions, getLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

public appia.Channel channel
Keeps the reference of the channel that will be used

Constructor Detail

ApplFlowSession

public ApplFlowSession(ApplFlowLayer l)
Constructor of the Session.

Parameters:
l - Corresponding layer.
Method Detail

init

public void init(int myPort,
                 appia.protocols.udpsimple.InetWithPort gossip,
                 appia.protocols.udpsimple.InetWithPort ip_multicast,
                 java.lang.String[] view,
                 int off)
          throws appia.protocols.group.AppiaGroupException,
                 java.net.UnknownHostException
Inits some parameters of the session.

Parameters:
myPort - local port.
gossip - gossip address.
ip_multicast - multicast address. null if the user doesn't want multicast address.
view - initial view.
off - offset of the view.
appia.protocols.group.AppiaGroupException
java.net.UnknownHostException

handle

public void handle(appia.Event e)
Main Event handler function. Accepts all incoming events and dispatches them to the appropriate methods.

Overrides:
handle in class appia.Session
Parameters:
e - The incoming event.
See Also:
Session