|
jGCS Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jgcs.AbstractControlSession
net.sf.jgcs.membership.AbstractMembershipSession
net.sf.jgcs.membership.AbstractBlockSession
public abstract class AbstractBlockSession
| 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 |
|---|
public AbstractBlockSession()
| Method Detail |
|---|
protected void boot()
AbstractControlSession
boot in class AbstractMembershipSession
public void setBlockListener(BlockListener listener)
throws JGCSException
BlockSession
setBlockListener in interface BlockSessionlistener - the listener to register.
JGCSException - if an error ocurs.protected boolean hasAllListeners()
AbstractControlSession
hasAllListeners in class AbstractMembershipSessionprotected void notifyBlock()
protected void setJoined(boolean joined)
|
jGCS Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||