org.gcube.vremanagement.vremodeler.impl
Class ModelerService

java.lang.Object
  extended by org.gcube.vremanagement.vremodeler.impl.ModelerService

public class ModelerService
extends java.lang.Object


Constructor Summary
ModelerService()
           
 
Method Summary
 java.lang.String checkStatus(VOID var)
           
 void deployVRE(VOID var)
           
 int getCloudVMs(VOID r)
           
 CollectionList getCollection(VOID var)
          Return an XML with all the collection selectable
 VREDescription getDescription(VOID var)
           
 FunctionalityList getFunctionality(VOID var)
          Return an xml with the selectable functionalities String
 GHNList getGHNs(VOID var)
          return an XML containing the GHN list
 java.lang.String getQuality(VOID var)
          Return an XML with Quality parameter to insert
 boolean isUseCloud(VOID r)
           
 void setCloudVMs(int numberOfVMs)
           
 void setCollection(CollectionArray request)
          Insert in the DB the selected collection
 void setDescription(VREDescription request)
           
 void setFunctionality(FunctionalityIDArray request)
           
 void setGHNs(GHNArray request)
          Set the GHNs for deploying
 void setQuality(java.lang.String request)
          Sets Quality parameters
 void setUseCloud(boolean val)
           
 void setVREtoPendingState(VOID var)
          set the DL state to Pending
 void undeployVRE(VOID var)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelerService

public ModelerService()
Method Detail

setDescription

public void setDescription(VREDescription request)
                    throws GCUBEFault
Parameters:
request - void
Throws:
java.rmi.RemoteException - -
GCUBEFault

getDescription

public VREDescription getDescription(VOID var)
                              throws GCUBEFault
Parameters:
request - void
Returns:
VoidType
Throws:
java.rmi.RemoteException - -
GCUBEFault

getGHNs

public GHNList getGHNs(VOID var)
                throws GCUBEFault
return an XML containing the GHN list

Parameters:
request - void
Returns:
List of GHNs on the system
Throws:
@throws - GCUBEFault - if the clud is selected as Architecture or something fails on db
GCUBEFault

setGHNs

public void setGHNs(GHNArray request)
             throws GCUBEFault
Set the GHNs for deploying

Parameters:
request - array of GHNs ids
Throws:
GCUBEFault - - if the clud is selected as Architecture or something fails on db

getCollection

public CollectionList getCollection(VOID var)
                             throws GCUBEFault
Return an XML with all the collection selectable

Parameters:
request - void
Returns:
the collection retrieved from the database
Throws:
GCUBEFault - -

setCollection

public void setCollection(CollectionArray request)
                   throws GCUBEFault
Insert in the DB the selected collection

Parameters:
request - An Array that contains the selected collections ids
Throws:
GCUBEFault - -

getFunctionality

public FunctionalityList getFunctionality(VOID var)
                                   throws GCUBEFault
Return an xml with the selectable functionalities String

Parameters:
request - void
Returns:
an xml String containing selectable functionalities
Throws:
GCUBEFault - -

setFunctionality

public void setFunctionality(FunctionalityIDArray request)
                      throws GCUBEFault
Throws:
GCUBEFault - -

getQuality

public java.lang.String getQuality(VOID var)
                            throws GCUBEFault
Return an XML with Quality parameter to insert

Parameters:
request - void
Returns:
a XML format String
Throws:
GCUBEFault - -

setQuality

public void setQuality(java.lang.String request)
                throws GCUBEFault
Sets Quality parameters

Parameters:
request -
Throws:
GCUBEFault - -

setVREtoPendingState

public void setVREtoPendingState(VOID var)
                          throws GCUBEFault
set the DL state to Pending

Parameters:
request -
Throws:
GCUBEFault - -

deployVRE

public void deployVRE(VOID var)
               throws GCUBEFault
Parameters:
request -
Throws:
GCUBEFault - -

checkStatus

public java.lang.String checkStatus(VOID var)
                             throws java.lang.Exception
Parameters:
var -
Returns:
Throws:
java.lang.Exception

undeployVRE

public void undeployVRE(VOID var)
                 throws GCUBEFault
Parameters:
request -
Throws:
java.rmi.RemoteException - -
GCUBEFault

setUseCloud

public void setUseCloud(boolean val)
                 throws java.lang.Exception
Parameters:
val - boolean
Throws:
java.lang.Exception

isUseCloud

public boolean isUseCloud(VOID r)
                   throws java.lang.Exception
Parameters:
r - VOID
Returns:
Throws:
java.lang.Exception

setCloudVMs

public void setCloudVMs(int numberOfVMs)
                 throws java.lang.Exception
Parameters:
numberOfVMs -
Throws:
java.lang.Exception

getCloudVMs

public int getCloudVMs(VOID r)
                throws java.lang.Exception
Parameters:
r - VOID
Returns:
Throws:
java.lang.Exception