Class InstallViewDeviceManifest

java.lang.Object
com.tccc.kos.commons.manifest.BaseDeviceManifest
com.tccc.kos.commons.manifest.install.InstallViewDeviceManifest
All Implemented Interfaces:
PrimaryManifestInstallView

public class InstallViewDeviceManifest extends BaseDeviceManifest implements PrimaryManifestInstallView
Base class for all future DeviceManifest implementations which implements the @{code PrimaryManifestInstallView} interface which is sufficient for a primary node to identify any missing artifacts and install them, even if it doesn't understand the actual manifest format.

This was introduced in manifest V1 and should be used for all future manifest formats to ensure the ability to install newer manifests from older versions of kOS.

Version:
2023-10-01
  • Constructor Details

    • InstallViewDeviceManifest

      public InstallViewDeviceManifest()
  • Method Details

    • getDeviceType

      public String getDeviceType()
      Description copied from interface: PrimaryManifestInstallView
      Return the deviceType this manifest is compatible with.
      Specified by:
      getDeviceType in interface PrimaryManifestInstallView
    • getLayers

      public List<BaseManifestArtifact> getLayers()
      Description copied from interface: PrimaryManifestInstallView
      Return the list of layers required for the primary node only. This is a subset of getKabs() and indicates to the installer which layers must be installed on the primary node to be properly updated. This must not include layers for other nodes in the device.
      Specified by:
      getLayers in interface PrimaryManifestInstallView
    • getKabs

      public List<BaseManifestArtifact> getKabs()
      Description copied from interface: PrimaryManifestInstallView
      Return the list of kabs required for the entire device. This should include all kabs required by all nodes in the device. This should include all the kabs specified in getLayers() along with any other kabs used on the primary node and any kabs / layers required by any other node in the device.

      This is the list of kabs that must be available on the primary node in order to guarantee that the device can be updated.

      Specified by:
      getKabs in interface PrimaryManifestInstallView
    • setDeviceType

      public void setDeviceType(String deviceType)
    • setLayers

      public void setLayers(List<BaseManifestArtifact> layers)
    • setKabs

      public void setKabs(List<BaseManifestArtifact> kabs)