All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.JavaStack.Protocols.GmsImpl

java.lang.Object
   |
   +----JavaGroups.JavaStack.Protocols.GmsImpl

public class GmsImpl
extends Object

Variable Index

 o CLIENT_ROLE
 o SERVER_ROLE

Constructor Index

 o GmsImpl(GMS)

Method Index

 o CastMerge(Vector, Vector)
Public because called by GMS
 o CastSuspect(Object)
 o DetermineCoordinator()
 o GetLtime()
 o GetRole()
 o GetViewId()
 o IsCoordinator()
 o Join(Address)
Will always be called via unicast message ! Should NOT be called via mcast, because every non-coordinator would try to forward to the coord, resulting in a broadcast storm !
 o Leave(Address)
Will always be called via unicast message ! Should NOT be called via mcast, because every non-coordinator would try to forward to the coord, resulting in a broadcast storm !
 o Merge(Vector, Vector, long)
 o Ping()
 o SetLocalAddress(Address)
Called by GMS as soon as address is known
 o StartJoin(Vector)
Called by non-member (client) to join a group.
 o StartLeave(Address)
Called by members that want to leave group.
 o Suspect(Address)
 o ViewChange(ViewId, Vector)

Variables

 o CLIENT_ROLE
 public static final int CLIENT_ROLE
 o SERVER_ROLE
 public static final int SERVER_ROLE

Constructors

 o GmsImpl
 public GmsImpl(GMS host)

Methods

 o GetLtime
 public long GetLtime()
 o GetRole
 public int GetRole()
 o CastMerge
 public void CastMerge(Vector new_mbrs,
                       Vector suspects) throws Exception
Public because called by GMS

 o CastSuspect
 public void CastSuspect(Object suspected) throws Exception
 o SetLocalAddress
 public void SetLocalAddress(Address addr)
Called by GMS as soon as address is known

 o IsCoordinator
 public boolean IsCoordinator()
 o DetermineCoordinator
 public Address DetermineCoordinator()
 o GetViewId
 public synchronized ViewId GetViewId()
 o Ping
 public PingRsp Ping()
 o StartJoin
 public void StartJoin(Vector initial_mbrs)
Called by non-member (client) to join a group. Will result in a unicast Join message to be sent to the coordinator.

 o Join
 public boolean Join(Address new_member)
Will always be called via unicast message ! Should NOT be called via mcast, because every non-coordinator would try to forward to the coord, resulting in a broadcast storm !

 o StartLeave
 public void StartLeave(Address mbr)
Called by members that want to leave group. Will in turn send a unicast Leave message to the coordinator.

 o Leave
 public boolean Leave(Address addr)
Will always be called via unicast message ! Should NOT be called via mcast, because every non-coordinator would try to forward to the coord, resulting in a broadcast storm !

 o ViewChange
 public synchronized void ViewChange(ViewId new_view,
                                     Vector mems)
 o Merge
 public synchronized void Merge(Vector new_mems,
                                Vector suspects,
                                long other_ltime) throws Exception
 o Suspect
 public synchronized void Suspect(Address suspected_mbr) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index