org.jgroups.protocols
Class DEADLOCK
- RequestHandler
Tests the deadlock detection mechanism of RequestCorrelator.
down_handler , down_prot , down_queue , down_thread , down_thread_prio , log , observer , props , stack , up_handler , up_prot , up_queue , up_thread , up_thread_prio |
callRemoteMethod , callRemoteMethod , callRemoteMethod , callRemoteMethod , callRemoteMethods , callRemoteMethods , callRemoteMethods , getName , handle , handleDownEvent , handleUpEvent |
destroy , down , getDownProtocol , getDownQueue , getName , getProperties , getUpProtocol , getUpQueue , handleSpecialDownEvent , init , passDown , passUp , providedDownServices , providedUpServices , receiveDownEvent , receiveUpEvent , requiredDownServices , requiredUpServices , setDownProtocol , setObserver , setProperties , setPropertiesInternal , setProtocolStack , setUpProtocol , start , startDownHandler , startUpHandler , stop , stopInternal , up |
getCombinedResults
public int getCombinedResults()
Mcasts getResult() to all members (including itself). Returns the sum of all results.
getName
public String getName()
- getName in interface RpcProtocol
getResult
public 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 !
- handleDownEvent in interface RpcProtocol
- 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 !
- handleUpEvent in interface RpcProtocol
- boolean Defaults to true. If false, event will not be passed up the stack.
sendRequest
public int sendRequest(Address dest)
start
public void start()
throws Exception
- start in interface MessageProtocol
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.