1 24 package org.objectweb.jalisto.test.core.single; 25 26 import org.objectweb.jalisto.se.test.threads.BookClientBasic; 27 28 public class OneClientTestThread { 29 public static void main(String [] args) { 30 String jalistoPropertiesFilename = args[0]; 31 int nbrBook = Integer.parseInt(args[1]); 32 int nbrRead = Integer.parseInt(args[2]); 33 int nbrCreate = Integer.parseInt(args[3]); 34 int nbrDelete = Integer.parseInt(args[4]); 35 36 BookClientBasic bookClient = new BookClientBasic(jalistoPropertiesFilename, 0, nbrBook, 0, 0); 37 bookClient.setWithTimer(true); 38 bookClient.setNbrRead(nbrRead); 39 bookClient.setNbrCreate(nbrCreate); 40 bookClient.setNbrDelete(nbrDelete); 41 bookClient.define(true); 42 bookClient.populate(); 43 44 try { 45 System.out.println("starting book client"); 46 bookClient.start(); 47 } catch (Exception e) { 48 e.printStackTrace(); 49 } 50 } 51 } 52 | Popular Tags |