diff --git a/src/main/java/teetime/framework/Analysis.java b/src/main/java/teetime/framework/Analysis.java index 42d141bdbe6d502d4ec84331bb9062ad024ac391..4f74c80be244499727b066bb593b08b2b1ebe29d 100644 --- a/src/main/java/teetime/framework/Analysis.java +++ b/src/main/java/teetime/framework/Analysis.java @@ -118,7 +118,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught * @deprecated since 1.1, analysis will be initialized automatically by the framework */ @Deprecated - public final void init() { + private final void init() { if (initialized) { return; } @@ -182,46 +182,6 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught } } - /** - * This method will start the Analysis and all containing stages. - * - * @return a collection of thread/throwable pairs - * - * @deprecated since 1.1, replaced by {@link #executeBlocking()} - */ - @Deprecated - public Collection<Pair<Thread, Throwable>> start() { - // start analysis - startThreads(this.consumerThreads); - startThreads(this.finiteProducerThreads); - startThreads(this.infiniteProducerThreads); - - // wait for the analysis to complete - try { - for (Thread thread : this.finiteProducerThreads) { - thread.join(); - } - - for (Thread thread : this.consumerThreads) { - thread.join(); - } - } catch (InterruptedException e) { - LOGGER.error("Analysis has stopped unexpectedly", e); - for (Thread thread : this.finiteProducerThreads) { - thread.interrupt(); - } - - for (Thread thread : this.consumerThreads) { - thread.interrupt(); - } - } - - for (Thread thread : this.infiniteProducerThreads) { - thread.interrupt(); - } - return this.exceptions; - } - /** * Calling this method will block the current thread, until the analysis terminates. *