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() {
|
||||
// shutdown threads
|
||||
executorService.shutdown();
|
||||
if (writerScheduler != null) {
|
||||
try {
|
||||
writerScheduler.cancel();
|
||||
// writerScheduler.purge();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
// shutdown connection
|
||||
stopInterrupt = true;
|
||||
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");
|
||||
dbHibConnection.close();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue