git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@55128 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a02f727d43
commit
1854ca9591
|
@ -198,13 +198,6 @@ public class LocalSplitGenerator implements Generator {
|
||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
// shutdown threads
|
// shutdown threads
|
||||||
executorService.shutdown();
|
executorService.shutdown();
|
||||||
if (writerScheduler != null) {
|
|
||||||
try {
|
|
||||||
writerScheduler.cancel();
|
|
||||||
// writerScheduler.purge();
|
|
||||||
} catch (Exception e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// shutdown connection
|
// shutdown connection
|
||||||
stopInterrupt = true;
|
stopInterrupt = true;
|
||||||
if (!distributionModel.isSynchronousProbabilityWrite()) {
|
if (!distributionModel.isSynchronousProbabilityWrite()) {
|
||||||
|
@ -215,8 +208,17 @@ public class LocalSplitGenerator implements Generator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (writerScheduler != null) {
|
||||||
|
try {
|
||||||
|
writerScheduler.cancel();
|
||||||
|
writerScheduler.purge();
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
AnalysisLogger.getLogger().trace("CLOSING CONNECTIONS");
|
AnalysisLogger.getLogger().trace("CLOSING CONNECTIONS");
|
||||||
dbHibConnection.close();
|
dbHibConnection.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue