jGCS Documentation

net.sf.jgcs.membership
Interface MembershipSession

All Superinterfaces:
ControlSession
All Known Subinterfaces:
BlockSession
All Known Implementing Classes:
AbstractBlockSession, AbstractMembershipSession

public interface MembershipSession
extends ControlSession

This class defines a MembershipSession. This session should be implemented when the underlying toolkit provides extended view synchrony semantics.

Version:
1.0
Author:
Nuno Carvalho

Method Summary
 Membership getMembership()
          Gets the current Membership.
 MembershipID getMembershipID()
          Gets the current membership ID
 void setMembershipListener(MembershipListener listener)
          Registers a listener for the membership changes.
 
Methods inherited from interface net.sf.jgcs.ControlSession
getLocalAddress, isJoined, join, leave, setControlListener, setExceptionListener
 

Method Detail

getMembership

Membership getMembership()
                         throws NotJoinedException
Gets the current Membership.

Returns:
a membership.
Throws:
NotJoinedException - if the member is not joined

getMembershipID

MembershipID getMembershipID()
                             throws NotJoinedException
Gets the current membership ID

Returns:
the current membership ID
Throws:
NotJoinedException - if the member is not joined

setMembershipListener

void setMembershipListener(MembershipListener listener)
Registers a listener for the membership changes.

Parameters:
listener - the listener to register.

jGCS Documentation

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