JavaGroups.JavaStack.Protocols
Class 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.
| Methods inherited from class JavaGroups.JavaStack.RpcProtocol |
CallRemoteMethod,
CallRemoteMethod,
CallRemoteMethod,
CallRemoteMethod,
CallRemoteMethod,
CallRemoteMethod,
CallRemoteMethod,
CallRemoteMethods,
CallRemoteMethods,
CallRemoteMethods,
CallRemoteMethods,
CallRemoteMethods,
CallRemoteMethods,
CallRemoteMethods,
Handle |
| Methods inherited from class JavaGroups.JavaStack.Protocol |
GetDownProtocol,
GetProperties,
GetUpProtocol,
PassDown,
PassUp,
ProvidedDownServices,
ProvidedUpServices,
RequiredDownServices,
RequiredUpServices,
Reset,
SetDownProtocol,
SetProtocolStack,
SetUpProtocol,
StartDownHandler,
StartUpHandler,
StopInternal |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEADLOCK
public DEADLOCK()
GetName
public java.lang.String GetName()
- Overrides:
- GetName in class RpcProtocol
SendRequest
public int SendRequest(java.lang.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 !
- Overrides:
- HandleUpEvent in class RpcProtocol
- Returns:
- boolean Defaults to true. If false, event will not be passed up the stack.
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 !
- Overrides:
- HandleDownEvent in class RpcProtocol
- Returns:
- boolean Defaults to true. If false, event will not be passed down the stack.
SetProperties
public boolean SetProperties(java.util.Properties props)
- Description copied from class: Protocol
- Configures the protocol initially. A configuration string consists of name=value
items, separated by a ';' (semicolon), e.g.:
"loopback=false;unicast_inport=4444"
- Overrides:
- SetProperties in class Protocol