diff --git a/src/org/gcube/vremanagement/vremodeler/db/DIStoDBUtil.java b/src/org/gcube/vremanagement/vremodeler/db/DIStoDBUtil.java index b1407bd..ab26833 100644 --- a/src/org/gcube/vremanagement/vremodeler/db/DIStoDBUtil.java +++ b/src/org/gcube/vremanagement/vremodeler/db/DIStoDBUtil.java @@ -131,9 +131,10 @@ public class DIStoDBUtil { * @throws RemoteException */ private static String makeQueryDIS(EndpointReferenceType epr, ExtendedGSSCredential cred, String query) throws RemoteException{ - GeneralQueryManager q; - String results; + //GeneralQueryManager q; + String results= null; + /* try { DISHLSClient.init(); q= DISHLSClient.getGeneralQueryManager(cred, epr); @@ -142,7 +143,7 @@ public class DIStoDBUtil { //logger.error("VDL Model Service: error initializing database"); throw new RemoteException(e1.getMessage(), e1); } - + */ return results; } @@ -420,6 +421,8 @@ public class DIStoDBUtil { for (String[] singleDHN:resultsDHNParsed) { String[] riID; + + /* try { riID=DISHLSClient.getRunningInstanceManager(cred,epr).getAllRunningInstancesOnDHN(singleDHN[0], cred, epr); } catch (DISHLSClientException e) { @@ -429,8 +432,10 @@ public class DIStoDBUtil { //logger.error("VDLModel: Error initializing DB with DHN and RI (Credential error)"); throw new RemoteException("Error querying DIS-IP (Credential error)", e); } + */ //retreiving related RIID with DHNID + /* String[] temp; for (String id: riID){ temp=new String[2]; @@ -438,7 +443,7 @@ public class DIStoDBUtil { temp[1]=id; DNHRelatedRIArray.add(temp); } - + */ } /* @@ -543,6 +548,7 @@ public class DIStoDBUtil { String[][] resultsRIParsed= parseResults(results, "r"); String[] riID; + /* try { riID=DISHLSClient.getRunningInstanceManager(cred,epr).getAllRunningInstancesOnDHN(resourceID, cred, epr); } catch (DISHLSClientException e) { @@ -552,17 +558,18 @@ public class DIStoDBUtil { //logger.error("VDLModel: Error initializing DB with DHN and RI (Credential error)"); throw new RemoteException("Error querying DIS-IP (Credential error)", e); } - + */ //retreiving related RIID with DHNID String[] temp; + /* for (String id: riID){ temp=new String[2]; temp[0]=resourceID; temp[1]=id; DNHRelatedRIArray.add(temp); } - + */ try{ DBInterface.connect(); DBInterface.InsertInto("dhn", resultsDHNParsed, false);