git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@466 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
71fe76d29a
commit
5fa66561ff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue