org.gcube.vremanagement.softwarerepository.impl
Class SoftwareRepository

java.lang.Object
  extended by org.gcube.vremanagement.softwarerepository.impl.SoftwareRepository
All Implemented Interfaces:
java.io.Serializable

public class SoftwareRepository
extends java.lang.Object
implements java.io.Serializable

Author:
Luca Frosini (ISTI-CNR)
See Also:
Serialized Form

Constructor Summary
SoftwareRepository()
          Clients must pass through createInstance methods.
 
Method Summary
 java.lang.String approve(java.lang.String serviceID)
          Approve Service method.
 java.lang.String delete(java.lang.String serviceID)
          Delete Service method.
 java.lang.String get(GetMessage servicePackage)
          Get Package method.
 boolean isDeployable(java.lang.String serviceID)
          Check if the Service is deployable
 java.lang.String listPending()
          List Services to be approved.
 java.lang.String listPluginsByServiceData(ListPluginsByServiceDataMessage message)
          Lists the plugins belonging the a gCube Service
 java.lang.String listPluginsByServiceID(ListPluginsByServiceIDMessage message)
          Lists the plugins belonging the a gCube Service
 java.lang.String listScopedPackages(ListScopedPackagesMessage serviceIDscope)
          List the dependency with a certain scope of the Service with ID=serviceID.
 java.lang.String listScopedPackagesByServiceData(ListScopedPackagesByServiceDataMessage serviceInfoScope)
          List the dependency with a certain scope of the Service with ID=serviceID.
 StringArray listServicePackages(ListServicePackagesMessage listServicePackagesMessage)
          List the packages a service is composed
 StringArray listUniquesServicePackages(ListServicePackagesMessage listServicePackagesMessage)
          List the packages a service is composed (unique packages)
 java.lang.String store(Store store)
          Store Service method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftwareRepository

public SoftwareRepository()
Clients must pass through createInstance methods.

Method Detail

store

public java.lang.String store(Store store)
                       throws GCUBEFault
Store Service method.

Parameters:
store - each element contains service class, service name, service version, URL where package to upload is available, description and scope of the Service
Returns:
an XML String with the result description http://grids16.eng.it/repository_recent_builds/org.gcube.HEAD/BUILD_187/org.gcube.vo-management.credential-renewal-servicearchive.HEAD/org.gcube.vo-management.credential-renewal-servicearchive-0.0.0-0.tar.gz 082677d0-5cf3-11dd-a000-e94252afcc8c DVOS CredentialsRenewalService 0.0.0 ERROR NEW 1217283477453 http://dlib05.isti.cnr.it:80/report/29-07-2008/082677d0-5cf3-11dd-a000-e94252afcc8c_1217283477453.xml http://grids16.eng.it/repository_recent_builds/org.gcube.HEAD/BUILD_187/org.gcube.vre-management.deployer-servicearchive.HEAD/org.gcube.vre-management.deployer-servicearchive-0.0.0-0.tar.gz d253bca0-5903-11dd-9bc1-c9ec09a1eecb VREManagement Deployer 0.0.0 SUCCESS UPDATE 1217283478524 http://dlib05.isti.cnr.it:80/report/29-07-2008/d253bca0-5903-11dd-9bc1-c9ec09a1eecb_1217283478524.xml http://grids16.eng.it/repository_recent_builds/org.gcube.HEAD/BUILD_187/org.gcube.vre-management.software-repository-servicearchive.HEAD/org.gcube.vre-management.software-repository-servicearchive-0.0.0-0.tar.gz d31c63d0-5903-11dd-9bc1-c9ec09a1eecb VREManagement SoftwareRepository 0.0.0 SUCCESS UPDATE 1217283480125 http://dlib05.isti.cnr.it:80/report/29-07-2008/d31c63d0-5903-11dd-9bc1-c9ec09a1eecb_1217283480125.xml
Throws:
GCUBEFault - if the store of the Service Package fails

approve

public java.lang.String approve(java.lang.String serviceID)
                         throws GCUBEFault
Approve Service method.

Parameters:
serviceID - to approve
Returns:
String with the result description
Throws:
GCUBEFault - if the approve of the Service Package fails

delete

public java.lang.String delete(java.lang.String serviceID)
                        throws GCUBEFault
Delete Service method.

Parameters:
serviceID - to delete
Returns:
String with the result description
Throws:
GCUBEFault - if the delete of the Service Package fails

get

public java.lang.String get(GetMessage servicePackage)
                     throws GCUBEFault
Get Package method.

Parameters:
servicePackage - (serviceClass, serviceName, serviceVersion, packageName and version) to get from Repository
Returns:
The method return the URL (String) from where the required package can be download
Throws:
GCUBEFault - if the get of the Package fails

listPending

public java.lang.String listPending()
                             throws GCUBEFault
List Services to be approved.

Returns:
an XML string of services to be approved. d253bca0-5903-11dd-9bc1-c9ec09a1eecb VREManagement Deployer 0.0.0
Throws:
GCUBEFault - if the list of service package to be approved fails

isDeployable

public boolean isDeployable(java.lang.String serviceID)
                     throws GCUBEFault
Check if the Service is deployable

Parameters:
serviceID - to check
Returns:
true if and only if the dependency resolution has success and there are not missing dependency, false otherwise
Throws:
GCUBEFault - if fails

listScopedPackagesByServiceData

public java.lang.String listScopedPackagesByServiceData(ListScopedPackagesByServiceDataMessage serviceInfoScope)
                                                 throws GCUBEFault
List the dependency with a certain scope of the Service with ID=serviceID.

Parameters:
serviceInfoScope - contains serviceClass, serviceName, serviceVersion and scope(GHN, VRE, VO) for resolution
Returns:
an XML string with the list of solved dependency or missing dependency Portal ThumbnailService 1.00.00 Thumbnailer-service 1.00.00 Portal ThumbnailService 1.00.00 Thumbnailer-stubs 1.00.00 ExternalSoftware imageJ 1.40.00 imageJ 1.40.00
Throws:
GCUBEFault - if the list fails

listScopedPackages

public java.lang.String listScopedPackages(ListScopedPackagesMessage serviceIDscope)
                                    throws GCUBEFault
List the dependency with a certain scope of the Service with ID=serviceID.

Parameters:
serviceIDscope - contains serviceID and scope(GHN, VRE, VO) for resolution
serviceIDscope -
Returns:
an XML string with the list of solved dependency or missing dependency Portal ThumbnailService 1.00.00 Thumbnailer-service 1.00.00 Portal ThumbnailService 1.00.00 Thumbnailer-stubs 1.00.00 ExternalSoftware imageJ 1.40.00 imageJ 1.40.00
Throws:
GCUBEFault - if the list fails
GCUBEFault

listServicePackages

public StringArray listServicePackages(ListServicePackagesMessage listServicePackagesMessage)
                                throws GCUBEFault
List the packages a service is composed

Parameters:
listServicePackagesMessage - contains service class, service name, service version.
Returns:
a String[] with the packages the service is composed. Each element is an XML string as following VREManagement Deployer 1.00.00 Deployer-service 1.00.02 http://dlib25.isti.cnr.it:80/maven/VREManagement/Deployer/1/00/00/Deployer-service/1.00.02/Deployer-service-1.00.02.tar.gz http://dlib25.isti.cnr.it:80/maven/VREManagement/Deployer/1/00/00/Deployer-service/1.00.02/doc/api/index.html http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/Deployer
Throws:
GCUBEFault - if fails

listUniquesServicePackages

public StringArray listUniquesServicePackages(ListServicePackagesMessage listServicePackagesMessage)
                                       throws GCUBEFault
List the packages a service is composed (unique packages)

Parameters:
listServicePackagesMessage - contains service class, service name, service version.
Returns:
a String[] with the packages the service is composed. Each element is an XML string as following VREManagement Deployer 1.00.00 Deployer-service 1.00.02 http://dlib25.isti.cnr.it:80/maven/VREManagement/Deployer/1/00/00/Deployer-service/1.00.02/Deployer-service-1.00.02.tar.gz http://dlib25.isti.cnr.it:80/maven/VREManagement/Deployer/1/00/00/Deployer-service/1.00.02/doc/api/index.html http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/Deployer
Throws:
GCUBEFault - if fails

listPluginsByServiceID

public java.lang.String listPluginsByServiceID(ListPluginsByServiceIDMessage message)
                                        throws ServiceNotFoundFaultType
Lists the plugins belonging the a gCube Service

Parameters:
message - a message with the Service ID
Returns:
a XML report with the list of plugins. E.g:
Throws:
ServiceNotFoundFaultType - if the service does not exist

listPluginsByServiceData

public java.lang.String listPluginsByServiceData(ListPluginsByServiceDataMessage message)
                                          throws ServiceNotFoundFaultType
Lists the plugins belonging the a gCube Service

Parameters:
message - a message with ServiceClass, ServiceName, ServiceVersion
Returns:
a XML report with the list of plugins. E.g:
Throws:
ServiceNotFoundFaultType - if the service does not exist