Package org.onosproject.net.behaviour
Class DeviceSystemStats
- java.lang.Object
-
- org.onosproject.net.behaviour.DeviceSystemStats
-
public class DeviceSystemStats extends java.lang.ObjectA representation of system stats of device.
-
-
Constructor Summary
Constructors Constructor Description DeviceSystemStats(DeviceMemoryStats memoryStats, DeviceCpuStats cpuStats)Creates deviceSystemStats object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)DeviceCpuStatsgetCpu()Get cpu usage statistics.DeviceMemoryStatsgetMemory()Get memory usage statistics.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DeviceSystemStats
public DeviceSystemStats(DeviceMemoryStats memoryStats, DeviceCpuStats cpuStats)
Creates deviceSystemStats object.- Parameters:
memoryStats- memory statisics of the devicecpuStats- cpu statistics of the device
-
-
Method Detail
-
getMemory
public DeviceMemoryStats getMemory()
Get memory usage statistics.- Returns:
- deviceMemoryStats, device memory usage stats in KB
-
getCpu
public DeviceCpuStats getCpu()
Get cpu usage statistics.- Returns:
- deviceCpuStats, device cpu usage stats
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-