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