Appia Documentation

net.sf.appia.jgcs
Class AppiaControlSession

java.lang.Object
  extended by net.sf.jgcs.AbstractControlSession
      extended by net.sf.jgcs.membership.AbstractMembershipSession
          extended by net.sf.jgcs.membership.AbstractBlockSession
              extended by net.sf.appia.jgcs.AppiaControlSession
All Implemented Interfaces:
net.sf.jgcs.ControlSession, net.sf.jgcs.membership.BlockSession, net.sf.jgcs.membership.MembershipSession

public class AppiaControlSession
extends net.sf.jgcs.membership.AbstractBlockSession


Constructor Summary
AppiaControlSession(AppiaGroup g, java.util.List<Channel> channels)
           
 
Method Summary
 void blockOk()
           
 java.net.SocketAddress getLocalAddress()
           
 net.sf.jgcs.membership.Membership getMembership()
           
 boolean isBlocked()
           
 boolean isJoined()
           
 void join()
           
 void leave()
           
protected  void setMembership(net.sf.jgcs.membership.Membership m)
           
 
Methods inherited from class net.sf.jgcs.membership.AbstractBlockSession
boot, hasAllListeners, notifyBlock, setBlockListener, setJoined
 
Methods inherited from class net.sf.jgcs.membership.AbstractMembershipSession
getMembershipID, notifyAndSetMembership, notifyRemoved, setMembershipListener
 
Methods inherited from class net.sf.jgcs.AbstractControlSession
notifyExceptionListeners, notifyFailed, notifyJoin, notifyLeave, setControlListener, setExceptionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jgcs.membership.MembershipSession
getMembershipID, setMembershipListener
 
Methods inherited from interface net.sf.jgcs.ControlSession
setControlListener, setExceptionListener
 

Constructor Detail

AppiaControlSession

public AppiaControlSession(AppiaGroup g,
                           java.util.List<Channel> channels)
Method Detail

blockOk

public void blockOk()
             throws net.sf.jgcs.NotJoinedException,
                    net.sf.jgcs.JGCSException
Throws:
net.sf.jgcs.NotJoinedException
net.sf.jgcs.JGCSException

isBlocked

public boolean isBlocked()
                  throws net.sf.jgcs.NotJoinedException
Throws:
net.sf.jgcs.NotJoinedException

join

public void join()
          throws net.sf.jgcs.ClosedSessionException,
                 net.sf.jgcs.JGCSException
Throws:
net.sf.jgcs.ClosedSessionException
net.sf.jgcs.JGCSException

leave

public void leave()
           throws net.sf.jgcs.ClosedSessionException,
                  net.sf.jgcs.JGCSException
Throws:
net.sf.jgcs.ClosedSessionException
net.sf.jgcs.JGCSException

getLocalAddress

public java.net.SocketAddress getLocalAddress()

getMembership

public net.sf.jgcs.membership.Membership getMembership()
                                                throws net.sf.jgcs.NotJoinedException
Specified by:
getMembership in interface net.sf.jgcs.membership.MembershipSession
Overrides:
getMembership in class net.sf.jgcs.membership.AbstractMembershipSession
Throws:
net.sf.jgcs.NotJoinedException
See Also:
AbstractMembershipSession.getMembership()

setMembership

protected void setMembership(net.sf.jgcs.membership.Membership m)
Overrides:
setMembership in class net.sf.jgcs.membership.AbstractMembershipSession
See Also:
AbstractMembershipSession.setMembership(net.sf.jgcs.membership.Membership)

isJoined

public boolean isJoined()

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