Package org.onosproject.net.behaviour
Class DeviceSystemStats
- java.lang.Object
-
- org.onosproject.net.behaviour.DeviceSystemStats
-
public class DeviceSystemStats extends java.lang.Object
A 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 boolean
equals(java.lang.Object o)
DeviceCpuStats
getCpu()
Get cpu usage statistics.DeviceMemoryStats
getMemory()
Get memory usage statistics.int
hashCode()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-