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.
-
DEADLOCK()
-
-
GetCombinedResults()
- Mcasts GetResult() to all members (including itself).
-
GetName()
-
-
GetResult()
- Returns a random integer value between 1 and 10
-
HandleDownEvent(Event)
- Callback.
-
HandleUpEvent(Event)
- Callback.
-
SendRequest(Object)
-
-
SetProperties(Properties)
- Configures the protocol initially.
DEADLOCK
public DEADLOCK()
GetName
public String GetName()
- Overrides:
- GetName in class RpcProtocol
SendRequest
public int SendRequest(Object dest)
GetCombinedResults
public int GetCombinedResults()
- Mcasts GetResult() to all members (including itself). Returns the sum of all results.
GetResult
public int GetResult()
- Returns a random integer value between 1 and 10
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
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
SetProperties
public boolean SetProperties(Properties props)
- Configures the protocol initially.
- Overrides:
- SetProperties in class Protocol
All Packages Class Hierarchy This Package Previous Next Index