diff --git a/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/VREGeneratorInterface.java b/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/VREGeneratorInterface.java index e7afa3a..f2b14e2 100644 --- a/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/VREGeneratorInterface.java +++ b/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/VREGeneratorInterface.java @@ -4,12 +4,12 @@ import java.rmi.RemoteException; import java.util.List; import org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityItem; -import org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityList; import org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityNodes; import org.gcube.vremanagement.vremodel.cl.stubs.types.GHN; import org.gcube.vremanagement.vremodel.cl.stubs.types.GHNsPerFunctionality; import org.gcube.vremanagement.vremodel.cl.stubs.types.SelectedResourceDescriptionType; import org.gcube.vremanagement.vremodel.cl.stubs.types.VREDescription; +import org.gcube.vremanagement.vremodeler.utils.reports.DeployReport; public interface VREGeneratorInterface { @@ -19,8 +19,7 @@ public interface VREGeneratorInterface { * @return what the vVRE modeler returns * @throws RemoteException */ - String checkVREStatus() - throws RemoteException; + DeployReport checkVREStatus() throws RemoteException; /** * @throws RemoteException diff --git a/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/impl/VREGeneratorEvo.java b/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/impl/VREGeneratorEvo.java index e19cc67..951ea50 100644 --- a/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/impl/VREGeneratorEvo.java +++ b/src/main/java/org/gcube/application/framework/vremanagement/vremanagement/impl/VREGeneratorEvo.java @@ -25,6 +25,7 @@ import org.gcube.vremanagement.vremodel.cl.stubs.types.GHNsPerFunctionality; import org.gcube.vremanagement.vremodel.cl.stubs.types.Report; import org.gcube.vremanagement.vremodel.cl.stubs.types.SelectedResourceDescriptionType; import org.gcube.vremanagement.vremodel.cl.stubs.types.VREDescription; +import org.gcube.vremanagement.vremodeler.utils.reports.DeployReport; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -136,10 +137,10 @@ protected static AtomicInteger vreId = new AtomicInteger(0); } @Override - public String checkVREStatus() throws RemoteException { + public DeployReport checkVREStatus() throws RemoteException { String currScope = ScopeProvider.instance.get(); ScopeProvider.instance.set(scope); - String toReturn = modelPortType.checkStatus().getStatus().name(); + DeployReport toReturn = modelPortType.checkStatus(); ScopeProvider.instance.set(currScope); return toReturn; }