method shutdown of algorithm SubmitQuery implemeted in order to allow a user to cancel a submit query operation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManagerAlgorithms@99190 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-08-01 15:15:43 +00:00
parent d74564df6d
commit bdf8449fd0
1 changed files with 5 additions and 0 deletions

View File

@ -263,7 +263,12 @@ public class SubmitQuery extends StandardLocalExternalAlgorithm {
@Override
public void shutdown() {
AnalysisLogger.getLogger().debug("In SubmitQuery->Shutdown");
if (sf.isClosed() == false) {
mgt.closeConnection();
}
}
// Method that recovers the info useful for the connection