This commit is contained in:
Ciro Formisano 2017-12-05 15:21:18 +00:00
parent 45edc13078
commit 8a19184ac3
2 changed files with 5 additions and 9 deletions

View File

@ -1,8 +1,6 @@
package org.gcube.dataanalysis.dataminer.poolmanager.rest;
import static org.gcube.common.authorization.client.Constants.authorizationService;
***REMOVED***
import java.net.MalformedURLException;
***REMOVED***
@ -10,22 +8,17 @@ import java.net.UnknownHostException;
***REMOVED***
import java.util.Set;
import javax.servlet.ServletContext;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
***REMOVED***
import org.gcube.common.authorization.library.AuthorizationEntry;
***REMOVED***
***REMOVED***
import org.gcube.dataanalysis.dataminer.poolmanager.datamodel.Algorithm;
import org.gcube.dataanalysis.dataminer.poolmanager.service.DataminerPoolManager;
import org.gcube.dataanalysis.dataminer.poolmanager.util.AlgorithmBuilder;
import org.gcube.smartgears.ContextProvider;
import org.gcube.smartgears.context.application.ApplicationContext;
***REMOVED***
***REMOVED***
import org.tmatesoft.svn.core.SVNException;

View File

@ -74,7 +74,10 @@ public abstract class DMPMJob {
***REMOVED***
public String start(){
public String start()
{
setStatusInformation(STATUS.PROGRESS);
new Thread(new Runnable() {
@Override
public void run() {
@ -180,7 +183,7 @@ public abstract class DMPMJob {
else if (ret == 0)
{
this.logger.debug("Operation completed");
this.setStatusInformation(STATUS.PROGRESS);
***REMOVED***this.setStatusInformation(STATUS.PROGRESS);
this.logger.debug("Checking the method...");
if (methodChecker.checkMethod(this.configuration.getHost(), SecurityTokenProvider.instance.get())&&(methodChecker.algoExists(this.algorithm)))