Package com.oracle.bmc.opsi.model
Class HostMemoryUsage
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.opsi.model.HostPerformanceMetricGroup
-
- com.oracle.bmc.opsi.model.HostMemoryUsage
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class HostMemoryUsage extends HostPerformanceMetricGroup
Memory usage metric for the host
Note: Objects should always be created or deserialized using theHostMemoryUsage.Builder
.This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the
HostMemoryUsage.Builder
, which maintain a set of all explicitly set fields calledHostMemoryUsage.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostMemoryUsage.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.opsi.model.HostPerformanceMetricGroup
HostPerformanceMetricGroup.MetricName
-
-
Constructor Summary
Constructors Constructor Description HostMemoryUsage(Date timeCollected, Double memoryUsedInGB, Float memoryUtilizationInPercent, Double memoryLoadInGB, Double realMemoryInKB, Double freeMemoryInKB, Double logicalMemoryUsedInGB, Float logicalMemoryUtilizationInPercent, Double freeLogicalMemoryInKB, Integer majorPageFaults, Double swapFreeInKB, Double anonHugePagesInKB, Integer hugePagesFree, Integer hugePagesReserved, Integer hugePagesSurplus)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostMemoryUsage.Builder
builder()
Create a new builder.boolean
equals(Object o)
Double
getAnonHugePagesInKB()
Amount of memory used for anon huge pages in kilobytesDouble
getFreeLogicalMemoryInKB()
Amount of avaiable virtual memory in kilobytesDouble
getFreeMemoryInKB()
Amount of available physical memory in kilobytesInteger
getHugePagesFree()
Number of available huge pagesInteger
getHugePagesReserved()
Number of reserved huge pagesInteger
getHugePagesSurplus()
Number of surplus huge pagesDouble
getLogicalMemoryUsedInGB()
Memory used excluding buffers and cache in gigabytesFloat
getLogicalMemoryUtilizationInPercent()
Amount of logical memory used in percentageInteger
getMajorPageFaults()
Number of major page faultsDouble
getMemoryLoadInGB()
Load on memory in gigabytesDouble
getMemoryUsedInGB()
Amount of physical memory used in gigabytesFloat
getMemoryUtilizationInPercent()
Amount of physical memory used in percentageDouble
getRealMemoryInKB()
Amount of usable physical memory in kilobytesDouble
getSwapFreeInKB()
Amount of available swap space in kilobytesint
hashCode()
HostMemoryUsage.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.opsi.model.HostPerformanceMetricGroup
getTimeCollected
-
-
-
-
Constructor Detail
-
HostMemoryUsage
@Deprecated public HostMemoryUsage(Date timeCollected, Double memoryUsedInGB, Float memoryUtilizationInPercent, Double memoryLoadInGB, Double realMemoryInKB, Double freeMemoryInKB, Double logicalMemoryUsedInGB, Float logicalMemoryUtilizationInPercent, Double freeLogicalMemoryInKB, Integer majorPageFaults, Double swapFreeInKB, Double anonHugePagesInKB, Integer hugePagesFree, Integer hugePagesReserved, Integer hugePagesSurplus)
Deprecated.
-
-
Method Detail
-
builder
public static HostMemoryUsage.Builder builder()
Create a new builder.
-
toBuilder
public HostMemoryUsage.Builder toBuilder()
-
getMemoryUsedInGB
public Double getMemoryUsedInGB()
Amount of physical memory used in gigabytes- Returns:
- the value
-
getMemoryUtilizationInPercent
public Float getMemoryUtilizationInPercent()
Amount of physical memory used in percentage- Returns:
- the value
-
getMemoryLoadInGB
public Double getMemoryLoadInGB()
Load on memory in gigabytes- Returns:
- the value
-
getRealMemoryInKB
public Double getRealMemoryInKB()
Amount of usable physical memory in kilobytes- Returns:
- the value
-
getFreeMemoryInKB
public Double getFreeMemoryInKB()
Amount of available physical memory in kilobytes- Returns:
- the value
-
getLogicalMemoryUsedInGB
public Double getLogicalMemoryUsedInGB()
Memory used excluding buffers and cache in gigabytes- Returns:
- the value
-
getLogicalMemoryUtilizationInPercent
public Float getLogicalMemoryUtilizationInPercent()
Amount of logical memory used in percentage- Returns:
- the value
-
getFreeLogicalMemoryInKB
public Double getFreeLogicalMemoryInKB()
Amount of avaiable virtual memory in kilobytes- Returns:
- the value
-
getMajorPageFaults
public Integer getMajorPageFaults()
Number of major page faults- Returns:
- the value
-
getSwapFreeInKB
public Double getSwapFreeInKB()
Amount of available swap space in kilobytes- Returns:
- the value
-
getAnonHugePagesInKB
public Double getAnonHugePagesInKB()
Amount of memory used for anon huge pages in kilobytes- Returns:
- the value
-
getHugePagesFree
public Integer getHugePagesFree()
Number of available huge pages- Returns:
- the value
-
getHugePagesReserved
public Integer getHugePagesReserved()
Number of reserved huge pages- Returns:
- the value
-
getHugePagesSurplus
public Integer getHugePagesSurplus()
Number of surplus huge pages- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classHostPerformanceMetricGroup
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classHostPerformanceMetricGroup
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classHostPerformanceMetricGroup
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classHostPerformanceMetricGroup
-
-