public class Bundle extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
bundleDir |
protected ArrayList<File> |
filesArray |
protected Metadata |
metadata |
protected String |
outputDir |
protected String |
outputZip |
protected String |
permanentBundleLocation |
Constructor and Description |
---|
Bundle()
Constructor for Bundle.
|
Bundle(Metadata metadata,
Map<String,String> config)
Constructor for Bundle.
|
Modifier and Type | Method and Description |
---|---|
ReturnValue |
copyBundle(String sourceFile,
String targetDir)
copyBundle.
|
ReturnValue |
copyBundleToS3(File bundle,
String bundleOutputPrefix)
copyBundleToS3.
|
static BundleInfo |
findBundleInfo(File bundleDir) |
BundleInfo |
getBundleInfo(File bundle,
File metadataFile)
getBundleInfo.
|
ArrayList<File> |
getFilesArray()
Getter for the field
filesArray . |
Metadata |
getMetadata()
Getter for the field
metadata . |
String |
getOutputDir()
Getter for the field
outputDir . |
protected ReturnValue |
installBundle(File bundle,
File metadataFile,
boolean packageIntoZip,
boolean unzipIntoDir,
List<String> workflows)
This method allows you to install the workflow bundle to the metadb optionally building a zip file along the way and archiving it to
a safe location.
|
ReturnValue |
installBundle(File bundle,
File metadataFile,
List<String> workflows)
installBundle.
|
ReturnValue |
installBundleDirOnly(File bundle,
File metadataFile,
List<String> workflows)
installBundleDirOnly.
|
ReturnValue |
installBundleZipOnly(File bundle,
File metadataFile,
List<String> workflows)
installBundleZipOnly.
|
ReturnValue |
packageBundle(File bundlePath,
File bundleOutput)
packageBundle.
|
ReturnValue |
packageBundleToS3(File bundlePath,
String bundleOutputPrefix)
packageBundleToS3.
|
static String |
resolveWorkflowBundleDirPath(File bundleDir,
String path) |
void |
setFilesArray(ArrayList<File> filesArray)
Setter for the field
filesArray . |
void |
setMetadata(Metadata metadata)
Setter for the field
metadata . |
void |
setOutputDir(String outputDir)
Setter for the field
outputDir . |
ReturnValue |
unpackageBundle(File bundle)
unpackageBundle.
|
ReturnValue |
unpackageBundleFromS3(String bundleURL)
unpackageBundleFromS3.
|
ReturnValue |
validateBundle(File bundle)
validateBundle.
|
protected String permanentBundleLocation
protected String bundleDir
protected Metadata metadata
protected String outputDir
protected String outputZip
public static BundleInfo findBundleInfo(File bundleDir)
public static String resolveWorkflowBundleDirPath(File bundleDir, String path)
public BundleInfo getBundleInfo(File bundle, File metadataFile)
getBundleInfo.
bundle
- a File
object.metadataFile
- a File
object.BundleInfo
object.public ReturnValue unpackageBundle(File bundle)
unpackageBundle.
bundle
- a File
object.ReturnValue
object.public ReturnValue unpackageBundleFromS3(String bundleURL)
unpackageBundleFromS3.
bundleURL
- a String
object.ReturnValue
object.public ReturnValue packageBundle(File bundlePath, File bundleOutput)
packageBundle.
bundlePath
- a File
object.bundleOutput
- a File
object.ReturnValue
object.public ReturnValue packageBundleToS3(File bundlePath, String bundleOutputPrefix)
packageBundleToS3.
bundlePath
- a File
object.bundleOutputPrefix
- a String
object.ReturnValue
object.public ReturnValue copyBundleToS3(File bundle, String bundleOutputPrefix)
copyBundleToS3.
bundle
- a File
object.bundleOutputPrefix
- a String
object.ReturnValue
object.public ReturnValue copyBundle(String sourceFile, String targetDir)
copyBundle.
sourceFile
- a String
object.targetDir
- a String
object.ReturnValue
object.public ReturnValue validateBundle(File bundle)
validateBundle.
bundle
- a File
object.ReturnValue
object.public ReturnValue installBundleZipOnly(File bundle, File metadataFile, List<String> workflows)
installBundleZipOnly.
bundle
- a File
object.metadataFile
- a File
object.workflows
- ReturnValue
object.public ReturnValue installBundleDirOnly(File bundle, File metadataFile, List<String> workflows)
installBundleDirOnly.
bundle
- a File
object.metadataFile
- a File
object.workflows
- ReturnValue
object.public ReturnValue installBundle(File bundle, File metadataFile, List<String> workflows)
installBundle.
bundle
- a File
object.metadataFile
- a File
object.workflows
- ReturnValue
object.protected ReturnValue installBundle(File bundle, File metadataFile, boolean packageIntoZip, boolean unzipIntoDir, List<String> workflows)
bundle
- a File
object.metadataFile
- a File
object.packageIntoZip
- a boolean.unzipIntoDir
- a boolean.workflows
- a list to store installed workflows for outputReturnValue
object.public void setMetadata(Metadata metadata)
Setter for the field metadata
.
metadata
- a Metadata
object.public void setOutputDir(String outputDir)
Setter for the field outputDir
.
outputDir
- a String
object.public ArrayList<File> getFilesArray()
Getter for the field filesArray
.
ArrayList
object.Copyright © 2015 SeqWare. All rights reserved.