This commit is contained in:
Lucio Lelii 2009-01-12 23:41:00 +00:00
parent a39c32f346
commit a1e9228094
1 changed files with 5 additions and 1 deletions

View File

@ -105,6 +105,7 @@ public class DeployVRE implements Runnable{
System.out.println("fin qui ci sono 2");
services.setGHN(new String[]{this.getParameter().second});
arp.setServices(services);
System.out.println(ServiceContext.getContext().getScope().toString());
arp.setTargetScope(ServiceContext.getContext().getScope().toString()+"/"+this.getParameter().first);
String reportId=mbportType.addResources(arp);
System.out.println("fin qui ci sono 3");
@ -114,12 +115,15 @@ public class DeployVRE implements Runnable{
this.wait(30000);
report=mbportType.getReport(reportId);
attempt++;
System.out.println("report:");
System.out.println(report);
}while (!isDeploymentStatusFinished(report) && attempt<10);
}catch(Exception e){e.printStackTrace(); throw e;}
return "";
}
};
System.out.println(vreName);
System.out.println(firstGHNId);
vreManagerHandler.setHandled(new GCUBEServiceClientImpl());
Couple<String, String> coupleParams= new Couple<String, String>(vreName, firstGHNId);
vreManagerHandler.setParameter(coupleParams);