Package io.scanbot.sdk.image
Class ImageRefPoolSnapshotsDiff
java.lang.Object
io.scanbot.sdk.image.ImageRefPoolSnapshotsDiff
difference between two snapshots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdded()Getter for added field.Getter for modified field.Getter for removed field.longGetter for totalMemoryConsumptionDiff field.voidSetter for added field.voidsetModified(List<String> modified) Setter for modified field.voidsetRemoved(List<String> removed) Setter for removed field.voidsetTotalMemoryConsumptionDiff(long totalMemoryConsumptionDiff) Setter for totalMemoryConsumptionDiff field.
-
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
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
Getter for removed field. See constructor documentation for more information about the field.- Returns:
- removed
-
setRemoved
Setter for removed field. See constructor documentation for more information about the field.- Parameters:
removed- Value to set.
-
getAdded
Getter for added field. See constructor documentation for more information about the field.- Returns:
- added
-
setAdded
Setter for added field. See constructor documentation for more information about the field.- Parameters:
added- Value to set.
-
getModified
Getter for modified field. See constructor documentation for more information about the field.- Returns:
- modified
-
setModified
Setter for modified field. See constructor documentation for more information about the field.- Parameters:
modified- Value to set.
-