From 140d909ec00ee15ef33e37b96eae482c27d36bcb Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 28 Jul 2017 16:50:29 +0000 Subject: [PATCH] ref 8819: Extend The Algorithms Importer to Manage Many Processes as Black Boxes https://support.d4science.org/issues/8819 Updated the support Pre-Installed software git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@151440 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/poolmanager/DataMinerPoolManager.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java index 99134a9..9c6f86a 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/poolmanager/DataMinerPoolManager.java @@ -67,8 +67,8 @@ public class DataMinerPoolManager { try { String requestUrl = serverUrl + "/algorithm/stage?gcube-token=" + serviceCredentials.getToken() - + "&algorithmPackageURL=" + codeJarAdminCopy.getPublicLink() - + "&algorithm_type=transducers&category=" + infoData.getAlgorithmCategory(); + + "&algorithmPackageURL=" + codeJarAdminCopy.getPublicLink() + "&algorithm_type=transducers" + + "&category=" + infoData.getAlgorithmCategory() + "&scopetarget=" + serviceCredentials.getScope(); logger.debug("DataMinerPoolManager request=" + requestUrl); // String authString = user + ":" + password; @@ -80,7 +80,7 @@ public class DataMinerPoolManager { URL urlObj = new URL(requestUrl); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.setRequestMethod("GET"); - + // connection.setRequestProperty("Authorization", "Basic " + // encoded); InputStream is = connection.getInputStream(); @@ -209,7 +209,8 @@ public class DataMinerPoolManager { } private String retrieveDeployOperationLogsLink(String operationId) throws StatAlgoImporterServiceException { - logger.info("Retrieve deploy operation logs link for: [operationId="+operationId+", server=" + serverUrl+"]"); + logger.info( + "Retrieve deploy operation logs link for: [operationId=" + operationId + ", server=" + serverUrl + "]"); String requestUrl = serverUrl + "/log?gcube-token=" + serviceCredentials.getToken() + "&logUrl=" + operationId; logger.debug("DataMinerPoolManager monitor request=" + requestUrl);