org.gcube.application.framework.vremanagement.vremanagement.impl
Class VREGeneratorEvo

java.lang.Object
  extended by org.gcube.application.framework.vremanagement.vremanagement.impl.VREGeneratorEvo
All Implemented Interfaces:
VREGeneratorInterface

public class VREGeneratorEvo
extends java.lang.Object
implements VREGeneratorInterface

Author:
Massimiliano Assante - ISTI-CNR

Constructor Summary
VREGeneratorEvo(ASLSession session)
           
VREGeneratorEvo(ASLSession session, java.lang.String id)
           
 
Method Summary
 java.lang.String checkVREStatus()
           
 void deployVRE()
           
static ReportList getAllVREs(ASLSession session)
           
 int getCloudVMSelected()
           
 java.lang.String[] getExistingNamesVREs()
           
 FunctionalityList getFunctionality()
           
 java.util.List<GHNType> getGHNs()
           
 GHNsPerFunctionality[] getGHNsPerFunctionality()
           
 java.lang.String getMetadataRelatedToCollection()
           
 java.lang.String getQuality()
           
 FunctionalityNodes getSelectedFunctionality()
           
 java.lang.String getVREepr()
          
 VREDescription getVREModel()
          first call
 boolean isCloudAvailable()
           
 boolean isCloudSelected()
           
 boolean isVreModelerServiceUp()
           
static void removeVRE(ASLSession session, java.lang.String id)
           
 boolean setCloudDeploy(int virtualMachines)
           
 void setFunctionality(int[] funcIds, SelectedResourceDescriptionType[] selResDesc)
           
 void setGHNs(java.lang.String[] selectedGHNIds)
           
 void setVREModel(java.lang.String VREName, java.lang.String VREDescription, java.lang.String VREDesigner, java.lang.String VREManager, long startTime, long endTime)
           
 void setVREtoPendingState()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VREGeneratorEvo

public VREGeneratorEvo(ASLSession session,
                       java.lang.String id)
Parameters:
session - the d4s session
epr - the epr

VREGeneratorEvo

public VREGeneratorEvo(ASLSession session)
Parameters:
session - the d4s session
Method Detail

isVreModelerServiceUp

public boolean isVreModelerServiceUp()

getAllVREs

public static ReportList getAllVREs(ASLSession session)
Parameters:
session - the d4s session
Returns:
the VRE names

removeVRE

public static void removeVRE(ASLSession session,
                             java.lang.String id)
Parameters:
session - the d4s session
id - the id of the VRE to be removed

checkVREStatus

public java.lang.String checkVREStatus()
                                throws java.rmi.RemoteException
Specified by:
checkVREStatus in interface VREGeneratorInterface
Returns:
what the vVRE modeler returns
Throws:
java.rmi.RemoteException

deployVRE

public void deployVRE()
               throws java.rmi.RemoteException
Specified by:
deployVRE in interface VREGeneratorInterface
Throws:
java.rmi.RemoteException

getExistingNamesVREs

public java.lang.String[] getExistingNamesVREs()

getSelectedFunctionality

public FunctionalityNodes getSelectedFunctionality()
                                            throws java.lang.Exception
Specified by:
getSelectedFunctionality in interface VREGeneratorInterface
Throws:
java.lang.Exception

getGHNs

public java.util.List<GHNType> getGHNs()
                                throws java.rmi.RemoteException
Specified by:
getGHNs in interface VREGeneratorInterface
Returns:
what the vVRE modeler returns
Throws:
java.rmi.RemoteException

getGHNsPerFunctionality

public GHNsPerFunctionality[] getGHNsPerFunctionality()
                                               throws java.rmi.RemoteException
Specified by:
getGHNsPerFunctionality in interface VREGeneratorInterface
Returns:
GHNsPerFunctionality
Throws:
java.rmi.RemoteException

setFunctionality

public void setFunctionality(int[] funcIds,
                             SelectedResourceDescriptionType[] selResDesc)
                      throws java.rmi.RemoteException
Specified by:
setFunctionality in interface VREGeneratorInterface
Throws:
java.rmi.RemoteException

getFunctionality

public FunctionalityList getFunctionality()
                                   throws java.lang.Exception
Specified by:
getFunctionality in interface VREGeneratorInterface
Returns:
what the vVRE modeler returns
Throws:
java.rmi.RemoteException
java.lang.Exception

getMetadataRelatedToCollection

public java.lang.String getMetadataRelatedToCollection()
                                                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getQuality

public java.lang.String getQuality()
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getVREModel

public VREDescription getVREModel()
                           throws java.rmi.RemoteException
first call

Specified by:
getVREModel in interface VREGeneratorInterface
Returns:
what the vVRE modeler returns
Throws:
java.rmi.RemoteException

setGHNs

public void setGHNs(java.lang.String[] selectedGHNIds)
             throws java.rmi.RemoteException
Specified by:
setGHNs in interface VREGeneratorInterface
Parameters:
selectedGHNIds - the GHNs selected
Throws:
java.rmi.RemoteException

setVREModel

public void setVREModel(java.lang.String VREName,
                        java.lang.String VREDescription,
                        java.lang.String VREDesigner,
                        java.lang.String VREManager,
                        long startTime,
                        long endTime)
                 throws java.rmi.RemoteException
Specified by:
setVREModel in interface VREGeneratorInterface
Parameters:
VREName - the VRE name
VREDescription - a description for the VRE
VREDesigner - the VRE designer
VREManager - the VRE manager
startTime - start time
endTime - end time
Throws:
java.rmi.RemoteException

setVREtoPendingState

public void setVREtoPendingState()
                          throws java.rmi.RemoteException
Specified by:
setVREtoPendingState in interface VREGeneratorInterface
Throws:
java.rmi.RemoteException

getVREepr

public java.lang.String getVREepr()

Specified by:
getVREepr in interface VREGeneratorInterface
Returns:

isCloudAvailable

public boolean isCloudAvailable()
Specified by:
isCloudAvailable in interface VREGeneratorInterface

isCloudSelected

public boolean isCloudSelected()
Specified by:
isCloudSelected in interface VREGeneratorInterface

setCloudDeploy

public boolean setCloudDeploy(int virtualMachines)
Specified by:
setCloudDeploy in interface VREGeneratorInterface

getCloudVMSelected

public int getCloudVMSelected()
Specified by:
getCloudVMSelected in interface VREGeneratorInterface