jGCS Documentation

net.sf.jgcs.membership
Class AbstractBlockSession

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

public abstract class AbstractBlockSession
extends AbstractMembershipSession
implements BlockSession


Constructor Summary
AbstractBlockSession()
           
 
Method Summary
protected  void boot()
          Initializes any variables needed by this session.
protected  boolean hasAllListeners()
          Returns true if all listeners are registered.
protected  void notifyBlock()
           
 void setBlockListener(BlockListener listener)
          Registers a listener for the block notification.
protected  void setJoined(boolean joined)
           
 
Methods inherited from class net.sf.jgcs.membership.AbstractMembershipSession
getMembership, getMembershipID, notifyAndSetMembership, notifyRemoved, setMembership, 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.BlockSession
blockOk, isBlocked
 
Methods inherited from interface net.sf.jgcs.membership.MembershipSession
getMembership, getMembershipID, setMembershipListener
 
Methods inherited from interface net.sf.jgcs.ControlSession
getLocalAddress, isJoined, join, leave, setControlListener, setExceptionListener
 

Constructor Detail

AbstractBlockSession

public AbstractBlockSession()
Method Detail

boot

protected void boot()
Description copied from class: AbstractControlSession
Initializes any variables needed by this session.

Overrides:
boot in class AbstractMembershipSession

setBlockListener

public void setBlockListener(BlockListener listener)
                      throws JGCSException
Description copied from interface: BlockSession
Registers a listener for the block notification.

Specified by:
setBlockListener in interface BlockSession
Parameters:
listener - the listener to register.
Throws:
JGCSException - if an error ocurs.

hasAllListeners

protected boolean hasAllListeners()
Description copied from class: AbstractControlSession
Returns true if all listeners are registered.

Overrides:
hasAllListeners in class AbstractMembershipSession
Returns:

notifyBlock

protected void notifyBlock()

setJoined

protected void setJoined(boolean joined)

jGCS Documentation

Copyright (c) 2006, Universidade de Lisboa
For updates and related information please see jGCS home page