public abstract class KitResolver extends Object
We rely on the Java SPI in order to dynamically load the appropriate implementation according to the type (KIT or SAG based) and the license (OSS or EE).
| Constructor and Description |
|---|
KitResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
createLocalInstallFromInstaller(Version version,
PackageType packageType,
License license,
Path localInstallerPath,
Path rootInstallationPath)
Uses the local installer and create a Terracotta install on the local machine.
|
protected void |
download(URL url,
Path dest) |
void |
downloadLocalInstaller(Version version,
LicenseType licenseType,
PackageType packageType,
Path localInstallerFile)
Downloads the installer on the local machine
|
void |
init(PortAllocator portAllocator) |
abstract Path |
resolveKitInstallationPath(Version version,
PackageType packageType,
Path localInstallerPath,
Path rootInstallationPath)
Resolves the root of the local Terracotta install path.
|
abstract URL[] |
resolveKitUrls(Version version,
LicenseType licenseType,
PackageType packageType)
Resolves the Terracotta installation kit URL.
|
abstract Path |
resolveLocalInstallerPath(Version version,
LicenseType licenseType,
PackageType packageType)
Resolves the installer path on the local machine.
|
abstract boolean |
supports(LicenseType licenseType)
Verifies if the
LicenseType is supported by the KitResolver implementation. |
public void init(PortAllocator portAllocator)
public abstract Path resolveLocalInstallerPath(Version version, LicenseType licenseType, PackageType packageType)
version - VersionlicenseType - LicenseTypepackageType - PackageTypepublic abstract void createLocalInstallFromInstaller(Version version, PackageType packageType, License license, Path localInstallerPath, Path rootInstallationPath)
version - VersionpackageType - PackageTypelicense - LicenselocalInstallerPath - path of the installer on the local machinerootInstallationPath - directory where installs are stored for cachingpublic abstract Path resolveKitInstallationPath(Version version, PackageType packageType, Path localInstallerPath, Path rootInstallationPath)
version - VersionpackageType - PackageTypelocalInstallerPath - path of the installer on the local machinerootInstallationPath - directory where installs are stored for cachingpublic abstract URL[] resolveKitUrls(Version version, LicenseType licenseType, PackageType packageType)
version - VersionlicenseType - LicenseTypepackageType - PackageTypepublic abstract boolean supports(LicenseType licenseType)
LicenseType is supported by the KitResolver implementation.licenseType - LicenseTypepublic void downloadLocalInstaller(Version version, LicenseType licenseType, PackageType packageType, Path localInstallerFile)
version - VersionlicenseType - LicenseTypepackageType - PackageTypelocalInstallerFile - path of the installer on the local machineCopyright © 2022. All rights reserved.