Skip to content
Snippets Groups Projects
Commit fdf3698a authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

removed deprecated methods #102

parent eda362bd
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment