This commit is contained in:
Lucio Lelii 2009-01-19 18:33:36 +00:00
parent 7491ee3434
commit 77a14668ae
2 changed files with 5 additions and 17 deletions

View File

@ -94,11 +94,9 @@ public class DeployVRE extends Thread{
try {
DBInterface.ExecuteUpdate("UPDATE VRE SET STATUS='"+ModelerService.FAILED+"' WHERE VRE.id='"+this.resourceId+"';");
} catch (Exception e1) {
logger.error("impossible to update the VRE Status");
e1.printStackTrace();
logger.error("impossible to update the VRE Status"+e1);
}
logger.error("Error deploying the VRE with id "+this.resourceId+" "+e);
e.printStackTrace();
}
}
@ -147,12 +145,10 @@ public class DeployVRE extends Thread{
report=mbportType.getReport(reportId);
attempt++;
getResource().setReportFirstStep(report);
System.out.println("---step 1------");
System.out.println(report);
System.out.println("---------");
}while (!isDeploymentStatusFinished(report) && attempt<10);
}catch(Exception e){e.printStackTrace(); throw e;}
System.out.println( "is something failed in the first step?"+isSomethingFailed(report));
logger.trace("report step 1: "+report);
logger.info("is something failed in the first step?"+isSomethingFailed(report));
return isSomethingFailed(report);
}
};
@ -189,9 +185,6 @@ public class DeployVRE extends Thread{
List<EndpointReferenceType> eprs = new ArrayList<EndpointReferenceType>();
for (GCUBERunningInstance instance : client.execute(query, scope))
eprs.add(instance.getAccessPoint().getEndpoint("gcube/vremanagement/VREManager"));
System.out.println("EPRs: ");
for (EndpointReferenceType epr: eprs)
System.out.println(epr);
return eprs;
}catch(Exception e){e.printStackTrace(); throw e;}
}
@ -304,14 +297,12 @@ public class DeployVRE extends Thread{
do{
Thread.currentThread().sleep(20000);
report=vreManPortType.getReport(reportId);
System.out.println("---step 2------");
System.out.println(report);
System.out.println("---------");
attempt++;
getResource().setReportSecondStep(report);
}while (!isDeploymentStatusFinished(report) && attempt<20);
System.out.println( "is something failed in the second step?"+isSomethingFailed(report));
logger.info("is something failed in the second step?"+isSomethingFailed(report));
logger.trace("report step 2: "+report);
return isSomethingFailed(report);
}
};

View File

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