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

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

public class VREGenerator
extends java.lang.Object
implements VREGeneratorI

Author:
Massimiliano Assante ISTI-CNR

Constructor Summary
VREGenerator(ASLSession session)
           
VREGenerator(ASLSession session, java.lang.String id)
           
 
Method Summary
 java.lang.String[] checkVREStatus()
          
 void deployVRE()
          
static ReportList getAllVREs(ASLSession session)
           
 java.lang.String getCollection()
          
 java.lang.String[] getExistingNamesVREs()
          
 java.lang.String getFunctionality()
          
 java.lang.String getGHNs()
          
 java.lang.String getMetadataRelatedToCollection()
          
 java.lang.String getQuality()
          
 java.lang.String getVREepr()
          
 java.lang.String getVREModel()
          
static void removeVRE(ASLSession session, java.lang.String id)
           
 void setCollection(java.lang.String[] collections)
          
 void setFunctionality(java.lang.String[] csIDElement, java.lang.String[] functionalityIDElement)
          
 void setGHNs(java.lang.String[] GHNElements, java.lang.String candidateGHN)
          
 void setMetadataRelatedToCollection(java.lang.String[] collectionIDArray, boolean[][] checkedArray, java.lang.String[] mdFormatIDArray)
          
 void setQuality(java.lang.String quality)
          
 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

VREGenerator

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

VREGenerator

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

getAllVREs

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

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 VREGeneratorI
Returns:
what the vVRE modeler returns
Throws:
java.rmi.RemoteException

deployVRE

public void deployVRE()
               throws java.rmi.RemoteException

Specified by:
deployVRE in interface VREGeneratorI
Throws:
java.rmi.RemoteException

getCollection

public java.lang.String getCollection()
                               throws java.rmi.RemoteException

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

getGHNs

public java.lang.String getGHNs()
                         throws java.rmi.RemoteException

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

getVREModel

public java.lang.String getVREModel()
                             throws java.rmi.RemoteException

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

getExistingNamesVREs

public java.lang.String[] getExistingNamesVREs()

Specified by:
getExistingNamesVREs in interface VREGeneratorI

getFunctionality

public java.lang.String getFunctionality()
                                  throws java.rmi.RemoteException

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

getMetadataRelatedToCollection

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

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

getQuality

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

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

setCollection

public void setCollection(java.lang.String[] collections)
                   throws java.rmi.RemoteException

Specified by:
setCollection in interface VREGeneratorI
Parameters:
collections - the collections to be set
Throws:
java.rmi.RemoteException

setGHNs

public void setGHNs(java.lang.String[] GHNElements,
                    java.lang.String candidateGHN)
             throws java.rmi.RemoteException

Specified by:
setGHNs in interface VREGeneratorI
Parameters:
GHNElements - the GHNs
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 VREGeneratorI
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 VREGeneratorI
Throws:
java.rmi.RemoteException

setFunctionality

public void setFunctionality(java.lang.String[] csIDElement,
                             java.lang.String[] functionalityIDElement)
                      throws java.rmi.RemoteException

Specified by:
setFunctionality in interface VREGeneratorI
Throws:
java.rmi.RemoteException

setMetadataRelatedToCollection

public void setMetadataRelatedToCollection(java.lang.String[] collectionIDArray,
                                           boolean[][] checkedArray,
                                           java.lang.String[] mdFormatIDArray)
                                    throws java.rmi.RemoteException

Specified by:
setMetadataRelatedToCollection in interface VREGeneratorI
Parameters:
collectionIDArray - an array containing all the collection IDs
checkedArray - an array containing whether with IDs are checked (probably)
mdFormatIDArray - an array containing
Throws:
java.rmi.RemoteException

setQuality

public void setQuality(java.lang.String quality)
                throws java.rmi.RemoteException

Specified by:
setQuality in interface VREGeneratorI
Parameters:
quality - the quality
Throws:
java.rmi.RemoteException

getVREepr

public java.lang.String getVREepr()

Specified by:
getVREepr in interface VREGeneratorI
Returns: