massivesubtestone.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 58 行

JAVA
58
字号
/*------------------------------------------------------------------------------Name:      MassiveSubTestOne.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Load test for xmlBlasterVersion:   $Id: MassiveSubTestOne.java 12937 2004-11-24 20:15:11Z ruff $------------------------------------------------------------------------------*/package org.xmlBlaster.test.stress;import org.xmlBlaster.util.Global;import junit.framework.*;/** * Run massive with with only the one connection aproach read settings from env. * <p>Here is one possible setting:</p> * <pre>numSubscribers=2500maxSubPerCon=500withEmbedded=falsenoToPub=4protocol=IOR</pre> * * * @author Peter Antman * @version $Revision: 1.2 $ $Date: 2004-11-24 20:15:11 +0000 (Wed, 24 Nov 2004) $ */public class MassiveSubTestOne extends MassiveSubTest {      public MassiveSubTestOne(Global glob, String testName, String loginName, boolean useOneConnection) {      super(glob,testName,loginName,useOneConnection);   }   /**    * Method is used by TestRunner to load these tests    */   public static Test suite()   {      TestSuite suite= new TestSuite();      String loginName = "Tim";      suite.addTest(new MassiveSubTestOne(new Global(), "testManyClients", loginName,true));            return suite;   }   /**    * An example of how to run it:    java  -Xms18M -Xmx256M -classpath lib/junit.jar:lib/testsuite.jar:lib/xmlBlaster.jar -Dtrace=false org.xmlBlaster.test.stress.MassiveSubTestOne -numSubscribers 2500 -maxSubPerCon 500 -protocol LOCAL -withEmbedded true > log 2>&1    * tail -f log | egrep 'Threads created|messages updated'    */   public static void main(String[] args) {      Global glob = new Global(args);      MassiveSubTestOne m = new MassiveSubTestOne(glob, "testManyClients", "testManyClients", true);      m.setUp();      m.testManyClients();      m.tearDown();   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?