All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.JavaStack.Protocols.DEADLOCK

java.lang.Object
   |
   +----JavaGroups.JavaStack.Protocol
           |
           +----JavaGroups.JavaStack.MessageProtocol
                   |
                   +----JavaGroups.JavaStack.RpcProtocol
                           |
                           +----JavaGroups.JavaStack.Protocols.DEADLOCK

public class DEADLOCK
extends RpcProtocol
Tests the deadlock detection mechanism of RequestCorrelator.


Constructor Index

 o DEADLOCK()

Method Index

 o GetCombinedResults()
Mcasts GetResult() to all members (including itself).
 o GetName()
 o GetResult()
Returns a random integer value between 1 and 10
 o HandleDownEvent(Event)
Callback.
 o HandleUpEvent(Event)
Callback.
 o SendRequest(Object)
 o SetProperties(Properties)
Configures the protocol initially.

Constructors

 o DEADLOCK
 public DEADLOCK()

Methods

 o GetName
 public String GetName()
Overrides:
GetName in class RpcProtocol
 o SendRequest
 public int SendRequest(Object dest)
 o GetCombinedResults
 public int GetCombinedResults()
Mcasts GetResult() to all members (including itself). Returns the sum of all results.

 o GetResult
 public int GetResult()
Returns a random integer value between 1 and 10

 o HandleUpEvent
 public boolean HandleUpEvent(Event evt)
Callback. Called by superclass when event may be handled.

Do not use PassUp in this method as the event is passed up by default by the superclass after this method returns !

Returns:
boolean Defaults to true. If false, event will not be passed up the stack.
Overrides:
HandleUpEvent in class RpcProtocol
 o HandleDownEvent
 public boolean HandleDownEvent(Event evt)
Callback. Called by superclass when event may be handled.

Do not use PassDown in this method as the event is passed down by default by the superclass after this method returns !

Returns:
boolean Defaults to true. If false, event will not be passed down the stack.
Overrides:
HandleDownEvent in class RpcProtocol
 o SetProperties
 public boolean SetProperties(Properties props)
Configures the protocol initially.

Overrides:
SetProperties in class Protocol

All Packages  Class Hierarchy  This Package  Previous  Next  Index