Class Bundle
java.lang.Object
org.esa.snap.core.gpf.descriptor.dependency.Bundle
Descriptor class for a dependency bundle.
A bundle is a set of binaries of the adapted tool.
It can be either in the form of an archive or an executable installer.
It is mandatory to specify the location where the bundle will be installed/extracted.
A bundle must have an entry point. In the case of an installer/executable, it is the name of the executable.
In the case of an archive, it will be the name of the archive.
The source of the bundle can be either local (i.e. from the local filesystem)
or remote (i.e. from an URL)
-
Constructor Summary
ConstructorsConstructorDescriptionBundle()Bundle(ToolAdapterOperatorDescriptor descriptor, BundleType bundleType, String targetLocation) -
Method Summary
Modifier and TypeMethodDescriptionReturns the command line arguments for an installer, if anyReturns the type of the bundle provided with the adapter.static OSFamilyReturns the download URL for this bundle.Returns the entry point of the bundle.Returns the type of the bundle location.getOS()Returns the local source of the bundleReturns the target location of the bundle (i.e.Gets the name of the System Variable to be updated after bundle installation.booleanChecks if the bundle binaries have been installed.booleanisLocal()Checks if the bundle location is local or remote.voidSets the command line arguments for an installervoidsetBundleType(BundleType bundleType) Sets the bundle type of the adapter.voidsetDownloadURL(String url) Sets the download URL for this bundle.voidsetLocation(BundleLocation value) Sets the type of the bundle locationvoidvoidsetParent(ToolAdapterOperatorDescriptor descriptor) voidSets the local source of the bundlevoidsetTargetLocation(String targetLocation) Sets the target location of the bundle (i.e.voidsetUpdateVariable(String name) Sets the name of the System Variable to be updated after bundle installation.
-
Constructor Details
-
Bundle
public Bundle() -
Bundle
public Bundle(ToolAdapterOperatorDescriptor descriptor, BundleType bundleType, String targetLocation) -
Bundle
-
-
Method Details
-
getCurrentOS
-
getParent
-
setParent
-
getBundleType
Returns the type of the bundle provided with the adapter. Can be one ofBundleTypemembers. -
setBundleType
Sets the bundle type of the adapter.- Parameters:
bundleType- The type of the bundle (seeBundleType)
-
getLocation
Returns the type of the bundle location. -
setLocation
Sets the type of the bundle location- Parameters:
value- The bundle location type
-
getSource
Returns the local source of the bundle -
setSource
Sets the local source of the bundle- Parameters:
value- The file representing an archive or an installer
-
getTargetLocation
Returns the target location of the bundle (i.e. the location where the bundle is supposed to be either extracted or installed). -
setTargetLocation
Sets the target location of the bundle (i.e. the location where the bundle is supposed to be either extracted or installed). -
getDownloadURL
Returns the download URL for this bundle. -
setDownloadURL
Sets the download URL for this bundle. -
isLocal
public boolean isLocal()Checks if the bundle location is local or remote. -
isInstalled
public boolean isInstalled()Checks if the bundle binaries have been installed. -
getEntryPoint
Returns the entry point of the bundle. -
getArgumentsParameter
Returns the command line arguments for an installer, if any -
setArgumentsParameter
Sets the command line arguments for an installer -
getUpdateVariable
Gets the name of the System Variable to be updated after bundle installation. This variable will have as value the location in which the bundle was installed. -
setUpdateVariable
Sets the name of the System Variable to be updated after bundle installation. -
getOS
-
setOS
-
getCommandLine
-