org.gcube.common.vremanagement.deployer.impl.operators.deployment
Class PackageExtractor

java.lang.Object
  extended by org.gcube.common.vremanagement.deployer.impl.operators.deployment.BaseExtractor
      extended by org.gcube.common.vremanagement.deployer.impl.operators.deployment.PackageExtractor
All Implemented Interfaces:
Extractor

public class PackageExtractor
extends BaseExtractor

Author:
manuele simi (CNR)

Field Summary
protected  org.gcube.common.core.resources.service.Package packageprofile
           
protected  org.gcube.common.core.resources.GCUBEService serviceProfile
           
protected  String serviceprofileFileName
          Name of the service profile file found in the downloaded package
protected  String serviceprofileFullPath
          Full path of the service profile file found in the downloaded package
 
Fields inherited from class org.gcube.common.vremanagement.deployer.impl.operators.deployment.BaseExtractor
downloader, logger, run
 
Constructor Summary
PackageExtractor(Downloader downloader)
           
 
Method Summary
 Deployable getPackage()
          Gets the downloaded package
 org.gcube.common.core.resources.GCUBEService getServiceProfile()
           
 String getServiceProfileFileName()
           
 String getServiceProfileFullPath()
           
 
Methods inherited from class org.gcube.common.vremanagement.deployer.impl.operators.deployment.BaseExtractor
getDownloadedFile, getName, getPackagedir, getPackageFilesDir, getServiceClass, getServiceKey, getServiceName, getServiceVersion, getVersion, isUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceprofileFullPath

protected String serviceprofileFullPath
Full path of the service profile file found in the downloaded package


serviceProfile

protected org.gcube.common.core.resources.GCUBEService serviceProfile

packageprofile

protected org.gcube.common.core.resources.service.Package packageprofile

serviceprofileFileName

protected String serviceprofileFileName
Name of the service profile file found in the downloaded package

Constructor Detail

PackageExtractor

public PackageExtractor(Downloader downloader)
                 throws Exception
Throws:
Exception
Method Detail

getServiceProfileFileName

public String getServiceProfileFileName()

getServiceProfileFullPath

public String getServiceProfileFullPath()

getServiceProfile

public org.gcube.common.core.resources.GCUBEService getServiceProfile()

getPackage

public Deployable getPackage()
                      throws InvalidPackageArchiveException,
                             Exception
Description copied from interface: Extractor
Gets the downloaded package

Returns:
the deployable package
Throws:
InvalidPackageArchiveException - if the package is not found or valid
Exception


Copyright © 2012. All Rights Reserved.