All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.JavaStack.Protocols.GMS

java.lang.Object
   |
   +----JavaGroups.JavaStack.Protocol
           |
           +----JavaGroups.JavaStack.Protocols.GMS

public class GMS
extends Protocol
implements Transportable

Variable Index

 o type

Constructor Index

 o GMS()

Method Index

 o Down(Event)
An event is to be sent down the stack.
 o FindInitialMembers(String)
 o GetName()
 o GetPingNum()
 o GetPingTime()
 o GetProtocolStack()
 o Join(Address)
 o Leave(Address)
 o Receive(long)
Remove a message from the rsp_queue
 o Send(Message)
Used e.g.
 o SetProperties(Properties)
Setup the Protocol instance acording to the configuration string
 o StartWork()
Initialize data structures, start own threads etc.
 o StopWork()
Delete data structures, stop own threads etc.
 o toString()
 o Up(Event)
In case of a request, forward the message to the method invoker.
 o UseGossip()

Variables

 o type
 public final int type

Constructors

 o GMS
 public GMS()

Methods

 o GetProtocolStack
 public ProtocolStack GetProtocolStack()
 o GetName
 public String GetName()
Overrides:
GetName in class Protocol
 o UseGossip
 public boolean UseGossip()
 o GetPingTime
 public long GetPingTime()
 o GetPingNum
 public int GetPingNum()
 o FindInitialMembers
 public Vector FindInitialMembers(String channel_name)
 o Join
 public void Join(Address new_member)
 o Leave
 public void Leave(Address member)
 o Send
 public void Send(Message msg) throws Exception
Used e.g. by MethodInvoker to return a response. Tag the message with our type, this result in our the message being caught by the corresponding GMS layer in the other protocol stack(s). The assumption here is that all messages sent using the Send method will always only be sent to other GMSs ! If this is not the case, then the Down method should be used, with the type field set accordingly

 o Receive
 public Message Receive(long timeout) throws Exception
Remove a message from the rsp_queue

 o Up
 public void Up(Event evt)
In case of a request, forward the message to the method invoker. In case of a response, put it on the response queue, to be retrieved by later Receive() calls.

Overrides:
Up in class Protocol
 o Down
 public void Down(Event evt)
An event is to be sent down the stack.

Overrides:
Down in class Protocol
 o StartWork
 public void StartWork()
Initialize data structures, start own threads etc.

Overrides:
StartWork in class Protocol
 o StopWork
 public void StopWork()
Delete data structures, stop own threads etc.

Overrides:
StopWork in class Protocol
 o SetProperties
 public void SetProperties(Properties props)
Setup the Protocol instance acording to the configuration string

Overrides:
SetProperties in class Protocol
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index