no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package _VisualDVM.TestingSystem.Common.ThreadsPlanner;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Utils.InterruptThread;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
@@ -12,7 +12,7 @@ public abstract class ThreadsPlanner {
|
||||
try {
|
||||
Interrupt();
|
||||
} catch (Exception exception) {
|
||||
CommonUtils.MainLog.PrintException(exception);
|
||||
Utils_.MainLog.PrintException(exception);
|
||||
}
|
||||
System.exit(0);
|
||||
return null;
|
||||
@@ -51,20 +51,20 @@ public abstract class ThreadsPlanner {
|
||||
}
|
||||
//--
|
||||
public void Start() {
|
||||
CommonUtils.MainLog.Print("Planner started");
|
||||
Utils_.MainLog.Print("Planner started");
|
||||
try {
|
||||
//--
|
||||
while (!waitingThreads.isEmpty() || !activeThreads.isEmpty()) {
|
||||
CommonUtils.MainLog.Print(getThreadsSummary());
|
||||
Utils_.MainLog.Print(getThreadsSummary());
|
||||
checkActiveThreads();
|
||||
tryStartThreads();
|
||||
Thread.sleep(wait_ms);
|
||||
}
|
||||
//--
|
||||
} catch (Exception exception) {
|
||||
CommonUtils.MainLog.PrintException(exception);
|
||||
Utils_.MainLog.PrintException(exception);
|
||||
} finally {
|
||||
CommonUtils.MainLog.Print("Planner finished");
|
||||
Utils_.MainLog.Print("Planner finished");
|
||||
finalize();
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public abstract class ThreadsPlanner {
|
||||
activeThreads.removeAll(toExclude);
|
||||
//--
|
||||
double progress = ((double)done_threads/threads.size())*100.0;
|
||||
CommonUtils.MainLog.Print("done_threads="+done_threads+";all_threads="+threads.size()+";progress="+progress);
|
||||
Utils_.MainLog.Print("done_threads="+done_threads+";all_threads="+threads.size()+";progress="+progress);
|
||||
File progress_file = new File("progress");
|
||||
try {
|
||||
FileUtils.writeStringToFile(progress_file, String.valueOf(((int)progress)));
|
||||
|
||||
Reference in New Issue
Block a user