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
This commit is contained in:
Giancarlo Panichi 2017-07-28 16:50:29 +00:00
parent d67a87662d
commit 140d909ec0
1 changed files with 5 additions and 4 deletions

View File

@ -67,8 +67,8 @@ public class DataMinerPoolManager {
try { try {
String requestUrl = serverUrl + "/algorithm/stage?gcube-token=" + serviceCredentials.getToken() String requestUrl = serverUrl + "/algorithm/stage?gcube-token=" + serviceCredentials.getToken()
+ "&algorithmPackageURL=" + codeJarAdminCopy.getPublicLink() + "&algorithmPackageURL=" + codeJarAdminCopy.getPublicLink() + "&algorithm_type=transducers"
+ "&algorithm_type=transducers&category=" + infoData.getAlgorithmCategory(); + "&category=" + infoData.getAlgorithmCategory() + "&scopetarget=" + serviceCredentials.getScope();
logger.debug("DataMinerPoolManager request=" + requestUrl); logger.debug("DataMinerPoolManager request=" + requestUrl);
// String authString = user + ":" + password; // String authString = user + ":" + password;
@ -80,7 +80,7 @@ public class DataMinerPoolManager {
URL urlObj = new URL(requestUrl); URL urlObj = new URL(requestUrl);
HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection();
connection.setRequestMethod("GET"); connection.setRequestMethod("GET");
// connection.setRequestProperty("Authorization", "Basic " + // connection.setRequestProperty("Authorization", "Basic " +
// encoded); // encoded);
InputStream is = connection.getInputStream(); InputStream is = connection.getInputStream();
@ -209,7 +209,8 @@ public class DataMinerPoolManager {
} }
private String retrieveDeployOperationLogsLink(String operationId) throws StatAlgoImporterServiceException { 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; String requestUrl = serverUrl + "/log?gcube-token=" + serviceCredentials.getToken() + "&logUrl=" + operationId;
logger.debug("DataMinerPoolManager monitor request=" + requestUrl); logger.debug("DataMinerPoolManager monitor request=" + requestUrl);