CVS update: JGroups/tests/perf/org/jgroups/tests/perf Test.java

"Bela Ban" <[email protected]>
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/09/10 10:13:20

  Modified:    tests/perf/org/jgroups/tests/perf Test.java
  Log:
  added -name option
  
  Revision  Changes    Path
  1.71      +6 -2      JGroups/tests/perf/org/jgroups/tests/perf/Test.java
  
  Index: Test.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/tests/perf/org/jgroups/tests/perf/Test.java,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- Test.java	6 Apr 2010 08:15:19 -0000	1.70
  +++ Test.java	10 Sep 2010 10:13:20 -0000	1.71
  @@ -194,7 +194,6 @@
           if(tmp3 != null)
               this.processing_delay=Long.parseLong(tmp3);
   
  -
           String transport_name=this.config.getProperty("transport");
           transport=(Transport)Util.loadClass(transport_name, this.getClass()).newInstance();
           transport.create(this.config);
  @@ -853,6 +852,11 @@
                   warmup=Integer.parseInt(args[++i]);
                   continue;
               }
  +            if("-name".equals(args[i])) {
  +                String name=args[++i];
  +                config.setProperty("name", name);
  +                continue;
  +            }
               help();
               return;
           }
  @@ -910,7 +914,7 @@
                   "[-dump_stats] [-f <filename>] [-interval <ms between sends>] " +
                   "[-nanos <additional nanos to sleep in interval>] [-busy_sleep (cancels out -nanos)] " +
                   "[-num_buddies <number of backup buddies>, this enables buddy replication] " +
  -                "[-warmup <num messages>]");
  +                "[-warmup <num messages>] [-name <logical name>]");
       }
   
   
  
  
  

------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.