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
-
CLIENT_ROLE
-
-
SERVER_ROLE
-
-
GmsImpl(GMS)
-
-
CastMerge(Vector, Vector)
- Public because called by GMS
-
CastSuspect(Object)
-
-
DetermineCoordinator()
-
-
GetLtime()
-
-
GetRole()
-
-
GetViewId()
-
-
IsCoordinator()
-
-
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 !
-
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 !
-
Merge(Vector, Vector, long)
-
-
Ping()
-
-
SetLocalAddress(Address)
- Called by GMS as soon as address is known
-
StartJoin(Vector)
- Called by non-member (client) to join a group.
-
StartLeave(Address)
- Called by members that want to leave group.
-
Suspect(Address)
-
-
ViewChange(ViewId, Vector)
-
CLIENT_ROLE
public static final int CLIENT_ROLE
SERVER_ROLE
public static final int SERVER_ROLE
GmsImpl
public GmsImpl(GMS host)
GetLtime
public long GetLtime()
GetRole
public int GetRole()
CastMerge
public void CastMerge(Vector new_mbrs,
Vector suspects) throws Exception
- Public because called by GMS
CastSuspect
public void CastSuspect(Object suspected) throws Exception
SetLocalAddress
public void SetLocalAddress(Address addr)
- Called by GMS as soon as address is known
IsCoordinator
public boolean IsCoordinator()
DetermineCoordinator
public Address DetermineCoordinator()
GetViewId
public synchronized ViewId GetViewId()
Ping
public PingRsp Ping()
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.
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 !
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.
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 !
ViewChange
public synchronized void ViewChange(ViewId new_view,
Vector mems)
Merge
public synchronized void Merge(Vector new_mems,
Vector suspects,
long other_ltime) throws Exception
Suspect
public synchronized void Suspect(Address suspected_mbr) throws Exception
All Packages Class Hierarchy This Package Previous Next Index