Class ManifestChainResolver
java.lang.Object
com.tccc.kos.core.util.DirectoryKabSource
com.tccc.kos.core.primary.service.nodemgr.install.ManifestChainResolver
- All Implemented Interfaces:
KabSource
Given a directory containing manifest kabs, organize the manifests
into chains that are compatible with the specified device type
and are complete. This solves the problem of identifying the
head of a manifest chain without requiring any additional hints.
This is typically used on conjunction with USB update where a
drive may just contain a collection of kabs.
As this is also a KabSource, this can also be used to
construct a DeviceInstallBuidler, allowing both chain
resolution and installation to occur using the resolver.
- Version:
- 2024-04-18
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a resolver for manifest kabs in the specified directory.ManifestChainResolver(File dir, String deviceType) Create a resolver for manifest kabs in the specified directory This will resolve the manifest chains for the specified device type. -
Method Summary
Modifier and TypeMethodDescriptionGet the chain with the specified manifestId.Return the list of available chains.Methods inherited from class com.tccc.kos.core.util.DirectoryKabSource
getKabByIdentifier, getKabs
-
Constructor Details
-
ManifestChainResolver
Create a resolver for manifest kabs in the specified directory. This will resolve the manifest chains for the current device type.- Parameters:
dir- the directory containing manifest kabs
-
ManifestChainResolver
Create a resolver for manifest kabs in the specified directory This will resolve the manifest chains for the specified device type.- Parameters:
dir- the directory containing manifest kabsdeviceType- the deviceType to resolve
-
-
Method Details
-
getChains
Return the list of available chains. -
getChain
Get the chain with the specified manifestId.- Parameters:
manifestId- the manifestId of the first manifest in the chain
-