| org.jgroups.tests.Deadlock2Test
Deadlock2Test | public class Deadlock2Test extends TestCase (Code) | | Test the distributed RPC deadlock detection mechanism, using one or two channels.
author: John Giorgiadis author: Ovidiu Feodorov version: $Revision: 1.10 $ |
Inner Class :public class ServerObject | |
suite | public static Test suite()(Code) | | |
testOneChannel | public void testOneChannel() throws Exception(Code) | | Tests the deadlock resolution using self-calls on a single channel. The deadlock detection
is turned on so the method call should go straight through. If there is a problem, JUnit will
timeout.
throws: Exception - |
testTwoChannels | public void testTwoChannels() throws Throwable(Code) | | Tests the deadlock resolution using two different channels. The deadlock detection
is turned on. It implements the following scenario:
Channel1 Channel2
| |
+ -------------------------------> outerMethod()
| RPC
| |
| |
| |
| <-- innerMethod() <-----------------+ ---------+
| | |
| | <-- innerMethod()
If there is a deadlock, JUnit will timeout and fail the test.
|
testTwoChannelsWithInitialMulticast | public void testTwoChannelsWithInitialMulticast() throws Exception(Code) | | |
|
|