|
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
public abstract class AbstractMembershipSession
Constructor Summary | |
---|---|
AbstractMembershipSession()
|
Method Summary | |
---|---|
protected void |
boot()
Initializes any variables needed by this session. |
Membership |
getMembership()
Gets the current Membership. |
MembershipID |
getMembershipID()
Gets the current membership ID |
protected boolean |
hasAllListeners()
Returns true if all listeners are registered. |
protected void |
notifyAndSetMembership(Membership m)
|
protected void |
notifyRemoved()
|
protected void |
setMembership(Membership m)
|
void |
setMembershipListener(MembershipListener listener)
Registers a listener for the membership changes. |
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.ControlSession |
---|
getLocalAddress, isJoined, join, leave, setControlListener, setExceptionListener |
Constructor Detail |
---|
public AbstractMembershipSession()
Method Detail |
---|
protected void boot()
AbstractControlSession
boot
in class AbstractControlSession
public void setMembershipListener(MembershipListener listener)
MembershipSession
setMembershipListener
in interface MembershipSession
listener
- the listener to register.protected boolean hasAllListeners()
AbstractControlSession
hasAllListeners
in class AbstractControlSession
protected void notifyAndSetMembership(Membership m)
protected void notifyRemoved()
public Membership getMembership() throws NotJoinedException
MembershipSession
getMembership
in interface MembershipSession
NotJoinedException
- if the member is not joinedprotected void setMembership(Membership m)
public MembershipID getMembershipID() throws NotJoinedException
MembershipSession
getMembershipID
in interface MembershipSession
NotJoinedException
- if the member is not joined
|
jGCS Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |