org.jgroups.protocols

Class DEADLOCK

public class DEADLOCK extends RpcProtocol

Tests the deadlock detection mechanism of RequestCorrelator.
Method Summary
intgetCombinedResults()
Mcasts getResult() to all members (including itself).
StringgetName()
static intgetResult()
Returns a random integer value between 1 and 10
booleanhandleDownEvent(Event evt)
Callback.
booleanhandleUpEvent(Event evt)
Callback.
intsendRequest(Address dest)
voidstart()
voidstop()

Method Detail

getCombinedResults

public int getCombinedResults()
Mcasts getResult() to all members (including itself). Returns the sum of all results.

getName

public String getName()

getResult

public static int getResult()
Returns a random integer value between 1 and 10

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.

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.

sendRequest

public int sendRequest(Address dest)

start

public void start()

stop

public void stop()
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.