This commit is contained in:
Lucio Lelii 2009-01-16 11:31:03 +00:00
parent 58c65de5e3
commit 78a6bd674b
1 changed files with 7 additions and 4 deletions

View File

@ -62,8 +62,9 @@ public class DeployVRE extends Thread{
try { try {
deployManagerOnVRE(); deployManagerOnVRE();
createVRE(); createVRE();
logger.info("FINISHED"); logger.info("Dploying of the VRE with id "+this.resourceId+" FINISHED");
}catch(Exception e){ }catch(Exception e){
logger.error("Error deploying the VRE with id "+this.resourceId+" "+e);
e.printStackTrace(); e.printStackTrace();
} }
} }
@ -125,8 +126,8 @@ public class DeployVRE extends Thread{
return ""; return "";
} }
}; };
System.out.println(vreName);
System.out.println(firstGHNId); vreManagerHandler.clearState();
vreManagerHandler.setHandled(new GCUBEServiceClientImpl()); vreManagerHandler.setHandled(new GCUBEServiceClientImpl());
Couple<String, String> coupleParams= new Couple<String, String>(vreName, firstGHNId); Couple<String, String> coupleParams= new Couple<String, String>(vreName, firstGHNId);
vreManagerHandler.setParameter(coupleParams); vreManagerHandler.setParameter(coupleParams);
@ -135,7 +136,7 @@ public class DeployVRE extends Thread{
try { try {
vreManagerHandler.run(); vreManagerHandler.run();
} catch (Exception e) { } catch (Exception e) {
logger.error("Error deploying the VRE "+e); logger.error("DeployingVRE step 1 -- failed "+e);
throw new GCUBEFault(e); throw new GCUBEFault(e);
} }
this.vreName= vreName; this.vreName= vreName;
@ -146,6 +147,7 @@ public class DeployVRE extends Thread{
VREManagerServiceHandler<String, String> vreManagerHandler= new VREManagerServiceHandler<String,String>(){ VREManagerServiceHandler<String, String> vreManagerHandler= new VREManagerServiceHandler<String,String>(){
//the parameter is resourceID //the parameter is resourceID
@SuppressWarnings("static-access")
@Override @Override
protected String makeCall(VREManagerPortType vreManPortType) protected String makeCall(VREManagerPortType vreManPortType)
throws Exception { throws Exception {
@ -276,6 +278,7 @@ public class DeployVRE extends Thread{
try { try {
vreManagerHandler.run(); vreManagerHandler.run();
} catch (Exception e) { } catch (Exception e) {
logger.error("DeployingVRE step 2 -- failed "+e);
throw new GCUBEFault(e); throw new GCUBEFault(e);
} }