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 Object
implements VREGeneratorInterface

Author:
Massimiliano Assante - ISTI-CNR

Field Summary
protected static AtomicInteger vreId
           
 
Constructor Summary
VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session)
           
VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session, String id)
           
 
Method Summary
protected  org.gcube.vremanagement.vremodeler.stubs.ModelerServicePortType applySecurityEPR(org.apache.axis.message.addressing.EndpointReferenceType epr)
           
 String checkVREStatus()
           
 void deployVRE()
           
 org.gcube.vremanagement.vremodeler.stubs.ReportList getAllVREs(org.gcube.application.framework.core.session.ASLSession session)
           
 int getCloudVMSelected()
           
 String[] getExistingNamesVREs()
           
 org.gcube.vremanagement.vremodeler.stubs.FunctionalityList getFunctionality()
           
 List<org.gcube.vremanagement.vremodeler.stubs.GHNType> getGHNs()
           
 org.gcube.vremanagement.vremodeler.stubs.GHNsPerFunctionality[] getGHNsPerFunctionality()
           
 String getMetadataRelatedToCollection()
           
 String getQuality()
           
 org.gcube.vremanagement.vremodeler.stubs.FunctionalityNodes getSelectedFunctionality()
           
 String getVREepr()
          
 org.gcube.vremanagement.vremodeler.stubs.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(int[] funcIds, org.gcube.vremanagement.vremodeler.stubs.SelectedResourceDescriptionType[] selResDesc)
           
 void setGHNs(String[] selectedGHNIds)
           
 void setVREModel(String VREName, String VREDescription, String VREDesigner, String VREManager, long startTime, long endTime)
           
 void setVREtoPendingState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vreId

protected static AtomicInteger vreId
Constructor Detail

VREGeneratorEvo

public VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session,
                       String id)
Parameters:
session - the d4s session
epr - the epr

VREGeneratorEvo

public VREGeneratorEvo(org.gcube.application.framework.core.session.ASLSession session)
Parameters:
session - the d4s session
Method Detail

isVreModelerServiceUp

public boolean isVreModelerServiceUp()

getAllVREs

public org.gcube.vremanagement.vremodeler.stubs.ReportList getAllVREs(org.gcube.application.framework.core.session.ASLSession session)
Parameters:
session - the d4s session
Returns:
the VRE names

removeVRE

public void removeVRE(org.gcube.application.framework.core.session.ASLSession session,
                      String id)
Parameters:
session - the d4s session
id - the id of the VRE to be removed

applySecurityEPR

protected org.gcube.vremanagement.vremodeler.stubs.ModelerServicePortType applySecurityEPR(org.apache.axis.message.addressing.EndpointReferenceType epr)
Parameters:
epr -
Returns:

checkVREStatus

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

deployVRE

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

getExistingNamesVREs

public String[] getExistingNamesVREs()

getSelectedFunctionality

public org.gcube.vremanagement.vremodeler.stubs.FunctionalityNodes getSelectedFunctionality()
                                                                                     throws Exception
Specified by:
getSelectedFunctionality in interface VREGeneratorInterface
Throws:
Exception

getGHNs

public List<org.gcube.vremanagement.vremodeler.stubs.GHNType> getGHNs()
                                                               throws RemoteException
Specified by:
getGHNs in interface VREGeneratorInterface
Returns:
what the vVRE modeler returns
Throws:
RemoteException

getGHNsPerFunctionality

public org.gcube.vremanagement.vremodeler.stubs.GHNsPerFunctionality[] getGHNsPerFunctionality()
                                                                                        throws RemoteException
Specified by:
getGHNsPerFunctionality in interface VREGeneratorInterface
Returns:
GHNsPerFunctionality
Throws:
RemoteException

setFunctionality

public void setFunctionality(int[] funcIds,
                             org.gcube.vremanagement.vremodeler.stubs.SelectedResourceDescriptionType[] selResDesc)
                      throws RemoteException
Specified by:
setFunctionality in interface VREGeneratorInterface
Throws:
RemoteException

getFunctionality

public org.gcube.vremanagement.vremodeler.stubs.FunctionalityList getFunctionality()
                                                                            throws Exception
Specified by:
getFunctionality in interface VREGeneratorInterface
Returns:
what the vVRE modeler returns
Throws:
RemoteException
Exception

getMetadataRelatedToCollection

public String getMetadataRelatedToCollection()
                                      throws RemoteException
Throws:
RemoteException

getQuality

public String getQuality()
                  throws RemoteException
Throws:
RemoteException

getVREModel

public org.gcube.vremanagement.vremodeler.stubs.VREDescription getVREModel()
                                                                    throws RemoteException
first call

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

setGHNs

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

setVREModel

public void setVREModel(String VREName,
                        String VREDescription,
                        String VREDesigner,
                        String VREManager,
                        long startTime,
                        long endTime)
                 throws 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:
RemoteException

setVREtoPendingState

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

getVREepr

public 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


Copyright © 2013. All Rights Reserved.