public class VREGeneratorEvo extends Object implements VREGeneratorInterface
Modifier and Type | Field and Description |
---|---|
protected static AtomicInteger |
vreId |
Constructor and Description |
---|
VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session) |
VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session,
String id) |
Modifier and Type | Method and Description |
---|---|
org.gcube.vremanagement.vremodeler.utils.reports.DeployReport |
checkVREStatus() |
void |
deployVRE() |
List<org.gcube.vremanagement.vremodel.cl.stubs.types.Report> |
getAllVREs(org.gcube.application.framework.core.session.ASLSession session) |
int |
getCloudVMSelected() |
String[] |
getExistingNamesVREs() |
List<org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityItem> |
getFunctionality() |
List<org.gcube.vremanagement.vremodel.cl.stubs.types.GHN> |
getGHNs() |
org.gcube.vremanagement.vremodel.cl.stubs.types.GHNsPerFunctionality[] |
getGHNsPerFunctionality() |
String |
getMetadataRelatedToCollection() |
org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityNodes |
getSelectedFunctionality() |
String |
getVREepr() |
org.gcube.vremanagement.vremodel.cl.stubs.types.VREDescription |
getVREModel()
first call
|
boolean |
isCloudAvailable() |
boolean |
isCloudSelected() |
boolean |
isVreModelerServiceUp() |
void |
removeVRE(org.gcube.application.framework.core.session.ASLSession session,
String id) |
boolean |
setCloudDeploy(int virtualMachines) |
void |
setFunctionality(Integer[] funcIds,
org.gcube.vremanagement.vremodel.cl.stubs.types.SelectedResourceDescriptionType[] selResDesc) |
void |
setGHNs(String[] selectedGHNIds) |
void |
setVREModel(String name,
String desc,
String designer,
String manager,
long startTime,
long endTime) |
void |
setVREtoPendingState() |
void |
undeployVRE(String id) |
protected static AtomicInteger vreId
public VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session, String id)
session
- the d4s sessionepr
- the eprpublic VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session)
session
- the sessionpublic boolean isVreModelerServiceUp()
public void setVREModel(String name, String desc, String designer, String manager, long startTime, long endTime) throws RemoteException
setVREModel
in interface VREGeneratorInterface
name
- the VRE namedesc
- a description for the VREdesigner
- the VRE designermanager
- the VRE managerstartTime
- start timeendTime
- end timeRemoteException
public String getVREepr()
getVREepr
in interface VREGeneratorInterface
public List<org.gcube.vremanagement.vremodel.cl.stubs.types.Report> getAllVREs(org.gcube.application.framework.core.session.ASLSession session)
session
- the d4s sessionpublic void removeVRE(org.gcube.application.framework.core.session.ASLSession session, String id)
removeVRE
in interface VREGeneratorInterface
session
- the d4s sessionid
- the id of the VRE to be removedpublic void undeployVRE(String id)
undeployVRE
in interface VREGeneratorInterface
session
- the d4s sessionid
- the id of the VRE to be removedpublic org.gcube.vremanagement.vremodeler.utils.reports.DeployReport checkVREStatus() throws RemoteException
checkVREStatus
in interface VREGeneratorInterface
RemoteException
public void deployVRE() throws RemoteException
deployVRE
in interface VREGeneratorInterface
RemoteException
public String[] getExistingNamesVREs()
public org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityNodes getSelectedFunctionality() throws Exception
getSelectedFunctionality
in interface VREGeneratorInterface
Exception
public List<org.gcube.vremanagement.vremodel.cl.stubs.types.GHN> getGHNs() throws RemoteException
getGHNs
in interface VREGeneratorInterface
RemoteException
public org.gcube.vremanagement.vremodel.cl.stubs.types.GHNsPerFunctionality[] getGHNsPerFunctionality() throws RemoteException
getGHNsPerFunctionality
in interface VREGeneratorInterface
RemoteException
public void setFunctionality(Integer[] funcIds, org.gcube.vremanagement.vremodel.cl.stubs.types.SelectedResourceDescriptionType[] selResDesc) throws RemoteException
setFunctionality
in interface VREGeneratorInterface
RemoteException
public List<org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityItem> getFunctionality() throws Exception
getFunctionality
in interface VREGeneratorInterface
RemoteException
Exception
public String getMetadataRelatedToCollection() throws RemoteException
RemoteException
public org.gcube.vremanagement.vremodel.cl.stubs.types.VREDescription getVREModel() throws RemoteException
getVREModel
in interface VREGeneratorInterface
RemoteException
public void setGHNs(String[] selectedGHNIds) throws RemoteException
setGHNs
in interface VREGeneratorInterface
selectedGHNIds
- the GHNs selectedRemoteException
public void setVREtoPendingState() throws RemoteException
setVREtoPendingState
in interface VREGeneratorInterface
RemoteException
public boolean isCloudAvailable()
isCloudAvailable
in interface VREGeneratorInterface
public boolean isCloudSelected()
isCloudSelected
in interface VREGeneratorInterface
public boolean setCloudDeploy(int virtualMachines)
setCloudDeploy
in interface VREGeneratorInterface
public int getCloudVMSelected()
getCloudVMSelected
in interface VREGeneratorInterface
Copyright © 2017. All Rights Reserved.