org.nuiton.wikitty.perftest
Class PerfTestSearch

java.lang.Object
  extended by org.nuiton.wikitty.perftest.PerfTestSearch

public class PerfTestSearch
extends Object


Constructor Summary
PerfTestSearch()
           
 
Method Summary
static void nThreadsSearch(WikittyService ws, WikittyExtension ext, int loopsToAvg, int researches, int wikittiesCreated, int threadsNb, String searchIn, String searched, boolean withRestore)
          Searches with n threads and then displays the result
static void oneThreadSearch(WikittyService ws, WikittyExtension ext, int loopsToAvg, int researches, int wikittiesCreated, String searchIn, String searched, boolean withRestore)
          Searches with one thread and then displays the result
static void search(WikittyService ws, WikittyExtension ext, int loopsToAvg, int researches, int wikittiesCreated, int threadsNb, String searchIn, String searched, boolean withRestore)
          Launches the searches with one thread and then with n threads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerfTestSearch

public PerfTestSearch()
Method Detail

oneThreadSearch

public static void oneThreadSearch(WikittyService ws,
                                   WikittyExtension ext,
                                   int loopsToAvg,
                                   int researches,
                                   int wikittiesCreated,
                                   String searchIn,
                                   String searched,
                                   boolean withRestore)
Searches with one thread and then displays the result

Parameters:
ws - : the wikitty service
ext - : the wikitty extension
loopsToAvg - : the number of times the labels searches will be made in order to give a more accurate result
researches - : the number of researches
wikittiesCreated - : the number of wikitties in the proxy
searchIn - : the field name
searched - : the field value to search
withRestore - : if the wikitty will be restored after the search

nThreadsSearch

public static void nThreadsSearch(WikittyService ws,
                                  WikittyExtension ext,
                                  int loopsToAvg,
                                  int researches,
                                  int wikittiesCreated,
                                  int threadsNb,
                                  String searchIn,
                                  String searched,
                                  boolean withRestore)
Searches with n threads and then displays the result

Parameters:
ws - : the wikitty service
ext - : the wikitty extension
loopsToAvg - : the number of times the labels searches will be made in order to give a more accurate result
researches - : the number of researches
wikittiesCreated - : the number of wikitties in the proxy
threadsNb - : the number of threads that will be created to do a part of the search
searchIn - : the field name
searched - : the field value to search
withRestore - : if the wikitty will be restored after the search

search

public static void search(WikittyService ws,
                          WikittyExtension ext,
                          int loopsToAvg,
                          int researches,
                          int wikittiesCreated,
                          int threadsNb,
                          String searchIn,
                          String searched,
                          boolean withRestore)
Launches the searches with one thread and then with n threads

Parameters:
ws - : the wikitty service
ext - : the wikitty extension
loopsToAvg - : the number of times the labels searches will be made in order to give a more accurate result
researches - : the number of researches
wikittiesCreated - : the number of wikitties in the proxy
threadsNb - : the number of threads that will be created to do a part of the search
searchIn - : the field name
searched - : the field value to search
withRestore - : if the wikitty will be restored after the search


Copyright © 2010 CodeLutin. All Rights Reserved.