git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@8277 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d481ab99de
commit
6721cdbd26
|
@ -73,7 +73,7 @@ public class DeployVRE implements Runnable{
|
|||
if (!resGenericInfo.next()) {
|
||||
throw new GCUBEFault("The VRE with ID "+this.resourceId+" cannot be retrieved on the DB");
|
||||
}
|
||||
vreName= resGenericInfo.getString("name");
|
||||
vreName= resGenericInfo.getString(1);
|
||||
ResultSet resRelatedGHN=DBInterface.queryDB("select VRERELATEDGHN.ghnid from VRERELATEDGHN where VRERELATEDGHN.vreid='"+this.resourceId+"'; ");
|
||||
if (!resRelatedGHN.next()){
|
||||
DBInterface.ExecuteUpdate("UPDATE VRE SET STATUS='Failed' WHERE VRE.id='"+this.resourceId+"';");
|
||||
|
|
|
@ -49,6 +49,7 @@ public abstract class VREManagerServiceHandler<T, P> extends GCUBEServiceHandler
|
|||
List<EndpointReferenceType> eprs = new ArrayList<EndpointReferenceType>();
|
||||
for (GCUBERunningInstance instance : client.execute(query, ServiceContext.getContext().getScope()))
|
||||
eprs.add(instance.getAccessPoint().getEndpoint("gcube/vremanagement/VREManager"));
|
||||
System.out.println(eprs.size());
|
||||
return eprs;
|
||||
}catch(Exception e){e.printStackTrace(); throw e;}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue