Class ImageRefPoolSnapshotsDiff

java.lang.Object
io.scanbot.sdk.image.ImageRefPoolSnapshotsDiff

public class ImageRefPoolSnapshotsDiff extends Object
difference between two snapshots.
  • Constructor Details

    • ImageRefPoolSnapshotsDiff

      public ImageRefPoolSnapshotsDiff(long totalMemoryConsumptionDiff, List<String> removed, List<String> added, List<String> modified)
      Constructs ImageRefPoolSnapshotsDiff with the given params.
      Parameters:
      totalMemoryConsumptionDiff - Difference between total memory consumption in two snapshots. Default is `0`.
      removed - Unique ids of ImageRefs that are not present in the second snapshot and present in the first snapshot.
      added - Profiles of ImageRefs that are present in the second snapshot, but not in the first snapshot.
      modified - Profiles of ImageRefs that are present in both snapshots but are different. Profile is considered modified if number of references or memory consumption is different.
    • ImageRefPoolSnapshotsDiff

      public ImageRefPoolSnapshotsDiff(List<String> removed, List<String> added, List<String> modified)
      Constructs ImageRefPoolSnapshotsDiff with default parameters.
      Parameters:
      removed - Unique ids of ImageRefs that are not present in the second snapshot and present in the first snapshot.
      added - Profiles of ImageRefs that are present in the second snapshot, but not in the first snapshot.
      modified - Profiles of ImageRefs that are present in both snapshots but are different. Profile is considered modified if number of references or memory consumption is different.
  • Method Details

    • getTotalMemoryConsumptionDiff

      public long getTotalMemoryConsumptionDiff()
      Getter for totalMemoryConsumptionDiff field. See constructor documentation for more information about the field.
      Returns:
      totalMemoryConsumptionDiff
    • setTotalMemoryConsumptionDiff

      public void setTotalMemoryConsumptionDiff(long totalMemoryConsumptionDiff)
      Setter for totalMemoryConsumptionDiff field. See constructor documentation for more information about the field.
      Parameters:
      totalMemoryConsumptionDiff - Value to set.
    • getRemoved

      public List<String> getRemoved()
      Getter for removed field. See constructor documentation for more information about the field.
      Returns:
      removed
    • setRemoved

      public void setRemoved(List<String> removed)
      Setter for removed field. See constructor documentation for more information about the field.
      Parameters:
      removed - Value to set.
    • getAdded

      public List<String> getAdded()
      Getter for added field. See constructor documentation for more information about the field.
      Returns:
      added
    • setAdded

      public void setAdded(List<String> added)
      Setter for added field. See constructor documentation for more information about the field.
      Parameters:
      added - Value to set.
    • getModified

      public List<String> getModified()
      Getter for modified field. See constructor documentation for more information about the field.
      Returns:
      modified
    • setModified

      public void setModified(List<String> modified)
      Setter for modified field. See constructor documentation for more information about the field.
      Parameters:
      modified - Value to set.