Class UpdateInfo
java.lang.Object
com.tccc.kos.core.primary.service.update.UpdateInfo
Information about a software update available on a storage device.
UpdateService
will examine all the KABs on the storage
device, identify all the manifest chains and filter out any chains
that are not compatible with the device. Each remaining chain is
a potential software update that can installed.
The notes are intended to be displayed to the user performing
the install to give them a sense of what is being installed.
Given that an update can be defined by a chain of manifests, it
can be difficult to give an update a single release number or
description. UpdateService
extracts the kos.install.summary
and kos.install.detail
properties from the various manifests,
to build a description of the update via the notes list. See
ChainedManifestBuilder
to see how to add notes to a release.
DeviceManifest
notes are provided via kOS Studio.
- Version:
- 2024-05-03
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Notes from a single manifest in the chain. -
Method Summary
Modifier and TypeMethodDescriptionlong
Return the create time of the first manifest in the chain.The id of the storage device that contains the update.The id of the first manifest in the chain.getNotes()
Return the notes extracted from the manifest chain.boolean
isActive()
If true, this update is currently running on this device so there is no need to install it again.boolean
If true, a manifest in this update has been blocked on this device.
-
Method Details
-
getManifestId
The id of the first manifest in the chain. This is used to install the chain. -
getCreateTime
public long getCreateTime()Return the create time of the first manifest in the chain. -
isActive
public boolean isActive()If true, this update is currently running on this device so there is no need to install it again. -
isBlocked
public boolean isBlocked()If true, a manifest in this update has been blocked on this device. This is typically because the device failed to boot correctly using using this manifest at some point in the past. -
getDeviceId
The id of the storage device that contains the update. -
getNotes
Return the notes extracted from the manifest chain. This gathers thekos.install.summary
property andkos.install.details.*
properties from each manifest in the chain. By convention this is used to provide a brief description of what is in each manifest in the chain.
-