Class ManifestService

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

public final class ManifestService extends AbstractService
Service that tracks the active manifest.
Version:
2023-08-21
  • Method Details

    • setActiveManifest

      public void setActiveManifest(String manifestId, ResolvedDeviceManifest deviceManifest, ResolvedNodeManifest nodeManifest)
      Called during boot to record the currently active manifest. This is called very early in the boot process so the manifest is generally available for use in most code other than core code which typically doesn't rely on the manifest anyways.

      The manifestId is the manifest listed in the kmf which may be the start of a chain of manifests. The deviceManifest is the result of processing the entire chain and resolving everything into a single usable manifest.

      Parameters:
      manifestId - manifest from the kmf
      deviceManifest - the active device manifest
      nodeManifest - the active node manifest
    • getManifestId

      public String getManifestId()
      Return the id of the active device manifest.
    • getDeviceInfo

      public ManifestDeviceInfo getDeviceInfo()
      Return information about the device as declared in the manifest. This defines the shape of the device, including all possible nodes the device can contain.
    • getDeviceManifest

      public ResolvedDeviceManifest getDeviceManifest()
      Return the currently active ResolvedDeviceManifest for this device. This is the manifest that is used across the entire device.
    • getNodeManifest

      public ResolvedNodeManifest getNodeManifest()
      Return the currently active ResolvedNodeManifest for this node within the device.
    • getKosVersion

      public String getKosVersion()
      Return the kOS version.
    • getSoftwareInfo

      public DeviceSoftwareInfo getSoftwareInfo()
      Return the software info for this node.