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

moved one method to init

parent b06c9cb4
No related branches found
No related tags found
No related merge requests found
...@@ -144,6 +144,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught ...@@ -144,6 +144,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught
intraStage.setExceptionHandler(newListener); intraStage.setExceptionHandler(newListener);
} }
this.consumerThreads.add(thread); this.consumerThreads.add(thread);
thread.setUncaughtExceptionHandler(this);
thread.setName(stage.getId()); thread.setName(stage.getId());
break; break;
} }
...@@ -156,6 +157,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught ...@@ -156,6 +157,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught
intraStage.setExceptionHandler(newListener); intraStage.setExceptionHandler(newListener);
} }
this.finiteProducerThreads.add(thread); this.finiteProducerThreads.add(thread);
thread.setUncaughtExceptionHandler(this);
thread.setName(stage.getId()); thread.setName(stage.getId());
break; break;
} }
...@@ -168,6 +170,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught ...@@ -168,6 +170,7 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught
intraStage.setExceptionHandler(newListener); intraStage.setExceptionHandler(newListener);
} }
this.infiniteProducerThreads.add(thread); this.infiniteProducerThreads.add(thread);
thread.setUncaughtExceptionHandler(this);
thread.setName(stage.getId()); thread.setName(stage.getId());
break; break;
} }
...@@ -298,7 +301,6 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught ...@@ -298,7 +301,6 @@ public final class Analysis<T extends AnalysisConfiguration> implements Uncaught
private void startThreads(final Iterable<Thread> threads) { private void startThreads(final Iterable<Thread> threads) {
for (Thread thread : threads) { for (Thread thread : threads) {
thread.setUncaughtExceptionHandler(this);
thread.start(); thread.start();
} }
} }
......
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