Appia Documentation

net.sf.appia.protocols.loopBack
Class LoopBackLayer

java.lang.Object
  extended by net.sf.appia.core.Layer
      extended by net.sf.appia.protocols.loopBack.LoopBackLayer

public class LoopBackLayer
extends Layer

LoopBackLayer is the Layer that sends back a copy of the GroupSendableEvents received from the upper Layers. This is intedende to simulate Broadcast funcionality and it's useful for implementing Atomic Broadcast protocols.

This Layer should be placed above the group communication layers and doesn't provide uniform guarantees. This protocol accepts the following events:

See Also:
GroupSendableEvent, ChannelInit

Field Summary
 
Fields inherited from class net.sf.appia.core.Layer
evAccept, evProvide, evRequire
 
Constructor Summary
LoopBackLayer()
          A simple constructor.
 
Method Summary
 Session createSession()
          Standard session instantiation
 
Methods inherited from class net.sf.appia.core.Layer
channelDispose, getAcceptedEvents, getProvidedEvents, getRequiredEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopBackLayer

public LoopBackLayer()
A simple constructor.

Method Detail

createSession

public Session createSession()
Standard session instantiation

Specified by:
createSession in class Layer

Appia Documentation

COPYRIGHT 2006-2009, University of Lisbon and INESC-ID
For updates and related information please see Appia Home Page
Send questions, sugestions or remarks to the appia-users mailing list