Class ManifestService

java.lang.Object
com.kosdev.kos.core.service.manifest.ManifestService

public final class ManifestService extends Object
Service that tracks the active manifest.
Since:
1
Version:
1
  • Method Details

    • getManifestId

      public String getManifestId()
      Return the id of the active device manifest.
      Since:
      1
    • 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.
      Since:
      1
    • getDeviceManifest

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

      public ResolvedNodeManifest getNodeManifest()
      Return the currently active ResolvedNodeManifest for this node within the device.
      Since:
      1
    • getNodes

      public List<ManifestNodeInfo> getNodes()
      Return the list of nodes defined for this device.
      Since:
      1
    • getNodeIds

      public Collection<NodeId> getNodeIds()
      Return a list of nodeId's that are defined for this device.
      Since:
      1
    • getNodeInfo

      public ManifestNodeInfo getNodeInfo(NodeId nodeId)
      Return node information for the specified nodeId.
      Since:
      1
    • getNodeInfo

      public ManifestNodeInfo getNodeInfo(String nodeId)
      Return node information for the specified nodeId.
      Since:
      1
    • getKosVersion

      public String getKosVersion()
      Return the KOS version.
      Since:
      1
    • getSoftwareInfo

      public DeviceSoftwareInfo getSoftwareInfo()
      Return the software info for this node.
      Since:
      1
    • getManifestCreateTime

      public long getManifestCreateTime()
      Return the create time for the device manifest kab
      Since:
      9