Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class fi.hut.tcm.jacob.conduits.Session

java.lang.Object
  |
  +--fi.hut.tcm.jacob.conduits.BaseConduit
        |
        +--fi.hut.tcm.jacob.conduits.Sedaptor
              |
              +--fi.hut.tcm.jacob.conduits.Session

public abstract class Session
extends Sedaptor
implements SessionEventListener
Session A session represents an (active) protocol session or connection. Connectionless protocols (e.g. IP or UDP) typically contain one session per protocol entity (e.g. IP address or UDP port). Connection-oriented protocols (e.g. TCP), on the other hand, typically contain a session for each active connection.


Fields inherited from class fi.hut.tcm.jacob.conduits.BaseConduit
id, SIDE_NUMBER, sides
 
Constructor Summary
Session(State initialState)
           
 
Method Summary
void accept(Visitor visitor, Side from)
           
void apply(Message message)
           
void setState(State state)
           
 
Methods inherited from class fi.hut.tcm.jacob.conduits.Sedaptor
addTimeout, cancelTimeout, getMessageSource, newMessage, releaseMessage, returnMessage, sendMessage, stopMessage
 
Methods inherited from class fi.hut.tcm.jacob.conduits.BaseConduit
accept, clone, dump, getId, getSide, getSideCount, initialSideCount, initSides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

Session

protected Session(State initialState)
Method Detail

accept

protected final void accept(Visitor visitor,
                            Side from)
                    throws ConductingException,
                           java.lang.IllegalArgumentException
Overrides:
accept in class BaseConduit

apply

public void apply(Message message)
Description copied from interface:
 
Specified by:
apply in interface SessionEventListener

setState

public void setState(State state)
             throws java.lang.IllegalArgumentException

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD