Java Doc for FlushTest.java in  » Net » JGroups-2.4.1-sp3 » org » jgroups » tests » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » JGroups 2.4.1 sp3 » org.jgroups.tests 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jgroups.tests.ChannelTestBase
   org.jgroups.tests.FlushTest

FlushTest
public class FlushTest extends ChannelTestBase (Code)
Tests the FLUSH protocol, requires flush-udp.xml in ./conf to be present and configured to use FLUSH
author:
   Bela Ban
version:
   $Id: FlushTest.java,v 1.16.2.2 2007/04/25 15:24:21 vlada Exp $


Field Summary
final static  StringCONFIG
    
 Channelc1c2c3
    

Constructor Summary
public  FlushTest()
    
public  FlushTest(String name)
    

Method Summary
protected  ChannelcreateChannel()
    
public static  voidmain(String[] args)
    
public  voidsetUp()
    
public static  Testsuite()
    
public  voidtearDown()
    
public  voidtestBlockingNoStateTransfer()
     Tests emition of block/unblock/get|set state events in both mux and bare channel mode.
public  voidtestBlockingSharedMuxFactory()
     Tests emition of block/unblock/get|set state events in mux mode.
public  voidtestBlockingUnsharedMuxFactoryMultipleService()
     Tests emition of block/unblock/get|set state events in mux mode.
public  voidtestBlockingWithStateTransfer()
     Tests emition of block/unblock/set|get state events for both mux and bare channel depending on mux.on parameter.
public  voidtestBlockingWithStateTransferAndMultipleServiceMuxChannel()
     Tests emition of block/unblock/set|get state events in mux mode setup where each "real" channel has two mux service on top of it.
public  voidtestChannels(String names, boolean useTransfer, int viewSize)
    
public  voidtestJoinFollowedByUnicast()
    
public  voidtestSingleChannel()
    
public  voidtestStateTransferFollowedByUnicast()
    
public  booleanuseBlocking()
    

Field Detail
CONFIG
final static String CONFIG(Code)



c1c2c3
Channel c1c2c3(Code)




Constructor Detail
FlushTest
public FlushTest()(Code)



FlushTest
public FlushTest(String name)(Code)




Method Detail
createChannel
protected Channel createChannel() throws ChannelException(Code)



main
public static void main(String[] args)(Code)



setUp
public void setUp() throws Exception(Code)



suite
public static Test suite()(Code)



tearDown
public void tearDown() throws Exception(Code)



testBlockingNoStateTransfer
public void testBlockingNoStateTransfer()(Code)
Tests emition of block/unblock/get|set state events in both mux and bare channel mode. In mux mode this test creates getFactoryCount() real channels and creates only one mux application on top of each channel. In bare channel mode 4 real channels are created.



testBlockingSharedMuxFactory
public void testBlockingSharedMuxFactory()(Code)
Tests emition of block/unblock/get|set state events in mux mode. In this test all mux applications share the same "real" channel. This test runs only when mux.on=true. This test does not take into account -Dmux.factorycount parameter.



testBlockingUnsharedMuxFactoryMultipleService
public void testBlockingUnsharedMuxFactoryMultipleService()(Code)
Tests emition of block/unblock/get|set state events in mux mode. In this test there will be exactly two real channels created where each real channel has two mux applications on top of it. This test runs only when mux.on=true. This test does not take into account -Dmux.factorycount parameter.



testBlockingWithStateTransfer
public void testBlockingWithStateTransfer()(Code)
Tests emition of block/unblock/set|get state events for both mux and bare channel depending on mux.on parameter. In mux mode there will be only one mux channel for each "real" channel created and the number of real channels created is getMuxFactoryCount().



testBlockingWithStateTransferAndMultipleServiceMuxChannel
public void testBlockingWithStateTransferAndMultipleServiceMuxChannel()(Code)
Tests emition of block/unblock/set|get state events in mux mode setup where each "real" channel has two mux service on top of it. The number of real channels created is getMuxFactoryCount(). This test runs only when mux.on=true.



testChannels
public void testChannels(String names, boolean useTransfer, int viewSize)(Code)



testJoinFollowedByUnicast
public void testJoinFollowedByUnicast() throws ChannelException(Code)
Tests issue #1 in http://jira.jboss.com/jira/browse/JGRP-335



testSingleChannel
public void testSingleChannel() throws Exception(Code)



testStateTransferFollowedByUnicast
public void testStateTransferFollowedByUnicast() throws ChannelException(Code)
Tests issue #2 in http://jira.jboss.com/jira/browse/JGRP-335



useBlocking
public boolean useBlocking()(Code)



Fields inherited from org.jgroups.tests.ChannelTestBase
protected static String CHANNEL_CONFIG(Code)(Java Doc)
protected static String DEFAULT_MUX_FACTORY_COUNT(Code)(Java Doc)
protected static String MUX_CHANNEL_CONFIG(Code)(Java Doc)
protected static String MUX_CHANNEL_CONFIG_STACK_NAME(Code)(Java Doc)
final protected static Random RANDOM(Code)(Java Doc)
protected int active_threads(Code)(Java Doc)
protected int currentChannelGeneratedName(Code)(Java Doc)
final protected Log log(Code)(Java Doc)
protected JChannelFactory muxFactory(Code)(Java Doc)
protected String thread_dump(Code)(Java Doc)

Methods inherited from org.jgroups.tests.ChannelTestBase
public static void acquireSemaphore(Semaphore semaphore, long timeout, int count) throws Exception(Code)(Java Doc)
public static boolean areViewsComplete(MemberRetrievable[] channels, int memberCount)(Code)(Java Doc)
public static void blockUntilViewsReceived(MemberRetrievable[] channels, long timeout)(Code)(Java Doc)
public static void blockUntilViewsReceived(Collection channels, long timeout)(Code)(Java Doc)
public static void blockUntilViewsReceived(MemberRetrievable[] channels, int count, long timeout)(Code)(Java Doc)
public static void blockUntilViewsReceived(Collection channels, int count, long timeout)(Code)(Java Doc)
protected String[] createApplicationNames(int applicationCount)(Code)(Java Doc)
protected Channel createChannel(Object id) throws Exception(Code)(Java Doc)
protected Channel createChannel() throws Exception(Code)(Java Doc)
protected String[] createMuxApplicationNames(int muxApplicationstPerChannelCount)(Code)(Java Doc)
protected String[] createMuxApplicationNames(int muxApplicationstPerChannelCount, int muxFactoryCount)(Code)(Java Doc)
protected int getMuxFactoryCount()(Code)(Java Doc)
protected String getNextChannelName()(Code)(Java Doc)
protected boolean isMuxChannelUsed()(Code)(Java Doc)
public static boolean isViewComplete(MemberRetrievable channel, int memberCount)(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
protected boolean shouldCompareThreadCount()(Code)(Java Doc)
public static void sleepRandom(int maxTime)(Code)(Java Doc)
public static void sleepThread(long sleeptime)(Code)(Java Doc)
public static void takeAllPermits(Semaphore semaphore, int count)(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)
protected boolean useBlocking()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.