Interface Tm1WebSource
- All Known Implementing Classes:
Tm1WebSource.Bundle, Tm1WebSource.BundleUrl, Tm1WebSource.InstallDir, Tm1WebSource.InstallVolume, Tm1WebSource.PrivateImage
public sealed interface Tm1WebSource
permits Tm1WebSource.PrivateImage, Tm1WebSource.InstallDir, Tm1WebSource.InstallVolume, Tm1WebSource.Bundle, Tm1WebSource.BundleUrl
Where a
Tm1WebContainer gets TM1 Web from.
The tm1-web image contains no IBM software, so every container needs one of
these. They mirror Tm1Source, with TM1_WEB_ settings, and the image's
own sources (see the image's README).
discover() finds one from the environment. Each setting is read first as a
system property and then as an environment variable, under the same name. The names
match the tm1-server compose settings. The first source found wins, in this
order:
TM1_WEB_PRIVATE_IMAGE: an image with TM1 Web built in (Tm1WebSource.PrivateImage)TM1_WEB_HOME_DIR: an installedtm1webfolder (Tm1WebSource.InstallDir)TM1_WEB_INSTALL_VOLUME: a Docker volume holding an install (Tm1WebSource.InstallVolume)TM1_WEB_BUNDLE_DIR, optionally withTM1_WEB_BUNDLE: a folder holding IBM's bundle, and the file name to use from it (Tm1WebSource.Bundle)TM1_WEB_BUNDLE_URL, optionally withTM1_WEB_BUNDLE_SHA256: a download link for the bundle (Tm1WebSource.BundleUrl)TM1_BUNDLE_DIR, if it also holds a TM1 Web bundle (orTM1_WEB_BUNDLEnames one in it): the same downloads folder as TM1, as in the compose setup
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA folder holding IBM'stm1web-*-linuxi38664h_bundle.tar.gz, mounted read-only.static final recordA download link for IBM's TM1 Web bundle, such as a pre-signed S3, R2 or GCS URL.static final recordAn installedtm1webfolder, the one containingwlp/,jre/andwebapps/.static final recordA named Docker volume holding a TM1 Web install, such as the one thetm1-servercompose setup creates (tm1-server_tm1-web-install).static final recordAn image built ontm1-webwith TM1 Web inside, from a private registry. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe bundle's file name within the bundle folder; the newest one if unset.static final StringA folder holding IBM's TM1 Web bundle, forTm1WebSource.Bundle.static final StringThe SHA-256 to check theBUNDLE_URLdownload against; optional.static final StringA download link for IBM's TM1 Web bundle, forTm1WebSource.BundleUrl.static final StringAn installedtm1webfolder, forTm1WebSource.InstallDir.static final StringA Docker volume holding an install, forTm1WebSource.InstallVolume.static final StringAn image with TM1 Web built in, forTm1WebSource.PrivateImage. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()A short description for logs and messages.static Optional<Tm1WebSource> discover()Finds a source from system properties and environment variables.static Optional<Tm1WebSource> Finds a source usinglookupto read each setting.
-
Field Details
-
PRIVATE_IMAGE
An image with TM1 Web built in, forTm1WebSource.PrivateImage.- See Also:
-
HOME_DIR
-
INSTALL_VOLUME
A Docker volume holding an install, forTm1WebSource.InstallVolume.- See Also:
-
BUNDLE_DIR
A folder holding IBM's TM1 Web bundle, forTm1WebSource.Bundle.- See Also:
-
BUNDLE
The bundle's file name within the bundle folder; the newest one if unset.- See Also:
-
BUNDLE_URL
A download link for IBM's TM1 Web bundle, forTm1WebSource.BundleUrl.- See Also:
-
BUNDLE_SHA256
The SHA-256 to check theBUNDLE_URLdownload against; optional.- See Also:
-
-
Method Details
-
describe
String describe()A short description for logs and messages. Never includes a URL's query string.- Returns:
- the description
-
discover
Finds a source from system properties and environment variables. See the class docs.- Returns:
- the source, or empty if none is configured
- Throws:
IllegalArgumentException- if a setting is present but invalid
-
discover
Finds a source usinglookupto read each setting. Blank values count as unset.- Parameters:
lookup- reads a setting by name, returningnullif it's unset- Returns:
- the first source found, or empty if none is configured
- Throws:
IllegalArgumentException- if a setting is present but invalid, such as a folder that doesn't exist. A wrong setting fails rather than silently skipping the tests.
-