This commit is contained in:
Lucio Lelii 2009-01-12 22:58:33 +00:00
parent d481ab99de
commit 6721cdbd26
2 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class DeployVRE implements Runnable{
if (!resGenericInfo.next()) { if (!resGenericInfo.next()) {
throw new GCUBEFault("The VRE with ID "+this.resourceId+" cannot be retrieved on the DB"); 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+"'; "); ResultSet resRelatedGHN=DBInterface.queryDB("select VRERELATEDGHN.ghnid from VRERELATEDGHN where VRERELATEDGHN.vreid='"+this.resourceId+"'; ");
if (!resRelatedGHN.next()){ if (!resRelatedGHN.next()){
DBInterface.ExecuteUpdate("UPDATE VRE SET STATUS='Failed' WHERE VRE.id='"+this.resourceId+"';"); DBInterface.ExecuteUpdate("UPDATE VRE SET STATUS='Failed' WHERE VRE.id='"+this.resourceId+"';");

View File

@ -49,6 +49,7 @@ public abstract class VREManagerServiceHandler<T, P> extends GCUBEServiceHandler
List<EndpointReferenceType> eprs = new ArrayList<EndpointReferenceType>(); List<EndpointReferenceType> eprs = new ArrayList<EndpointReferenceType>();
for (GCUBERunningInstance instance : client.execute(query, ServiceContext.getContext().getScope())) for (GCUBERunningInstance instance : client.execute(query, ServiceContext.getContext().getScope()))
eprs.add(instance.getAccessPoint().getEndpoint("gcube/vremanagement/VREManager")); eprs.add(instance.getAccessPoint().getEndpoint("gcube/vremanagement/VREManager"));
System.out.println(eprs.size());
return eprs; return eprs;
}catch(Exception e){e.printStackTrace(); throw e;} }catch(Exception e){e.printStackTrace(); throw e;}
} }