Package org.sf.mustru.utils

Examples of org.sf.mustru.utils.IndexTools.start()


   System.out.println("Started testing repair index");
   int TIMELIMIT = 1000; //*-- time limit to perform the repair operation
   String tmpFile = Constants.MUSTRU_HOME + File.separator + "tmp" + File.separator + "repair.txt";
   IndexTools itools = new IndexTools(tmpFile);
   itools.setRunRepair(true); itools.setRunSummary(false);
   itools.start();
   boolean done = false; long scanStart = new Date().getTime();
   while (!done)
  { done = true;
    long start = new Date().getTime();
    try { itools.join(1000); catch (InterruptedException e) { }
View Full Code Here


   System.out.println("Started testing index summary");
   int TIMELIMIT = 1000; //*-- time limit to perform the summary operation
   String tmpFile = Constants.MUSTRU_HOME + File.separator + "tmp" + File.separator + "summary.txt";
   IndexTools itools = new IndexTools(tmpFile);
   itools.setRunRepair(false); itools.setRunSummary(true);
   itools.start();
   boolean done = false; long scanStart = new Date().getTime();
   while (!done)
   { done = true;
   long start = new Date().getTime();
   try { itools.join(1000); catch (InterruptedException e) { }
View Full Code Here

  public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
  {
   monitor.beginTask("Repairing Index... please be patient", 100);
   IndexTools itools = new IndexTools(tmpFile);
   itools.setRunRepair(true); itools.setRunSummary(false);
   itools.start();
   boolean done = false; long scanStart = new Date().getTime(); int times = 0;
   while (!done)
   { done = true;

   //*-- wait a second
View Full Code Here

  public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
   {
   monitor.beginTask("Summarizing the Index", 100);
   IndexTools itools = new IndexTools(tmpFile);
   itools.setRunRepair(false); itools.setRunSummary(true);
   itools.start();
   boolean done = false; long scanStart = new Date().getTime(); int times = 0;
   while (!done)
   { done = true;

   //*-- wait a second
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.