All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface iBus.Membership

public interface Membership
Interface Membership is used for receiving membership change notifications. If a Java object implements that interface, then the iBus virtual synchrony layer will invoke objectSubscribed/objectUnsubscribed on that member when another member subscribes/unsubscribes to/from a channel, or when a membsr crashes.


Method Index

 o getState(iBusURL)
Invoked on a receiver that is a member of channel, to obtain its internal object state such that it can be transmitted to to a newcomer receiver object.
 o setState(iBusURL, Serializable)
Invoked on a receiver object that is subscribing to a channel to assign application specific state information to it.
 o viewChange(View)
Upcall that is invoked by iBus when a receiver object has subscribed or unsubscribed from a channel, or when a receiver crashes.

Methods

 o getState
 public abstract Serializable getState(iBusURL channel)
Invoked on a receiver that is a member of channel, to obtain its internal object state such that it can be transmitted to to a newcomer receiver object.

Parameters:
channel - is the channel being joined by the newcomer
Returns:
the state to be transfered to the newcomer.
 o setState
 public abstract void setState(iBusURL channel,
                               Serializable state)
Invoked on a receiver object that is subscribing to a channel to assign application specific state information to it.

Parameters:
channel - the channel being joined
state - the state assigned to the newcomer
 o viewChange
 public abstract void viewChange(View newView)
Upcall that is invoked by iBus when a receiver object has subscribed or unsubscribed from a channel, or when a receiver crashes.

Parameters:
newView - the new view object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index