Package org.onosproject.net.behaviour
Class DeviceCpuStats
- java.lang.Object
-
- org.onosproject.net.behaviour.DeviceCpuStats
-
public class DeviceCpuStats extends java.lang.Object
A representation of cpu stats of device.
-
-
Constructor Summary
Constructors Constructor Description DeviceCpuStats()
Instantiates DeviceCpuStats object with default value.DeviceCpuStats(float used)
Creates DeviceCpuStats object with given value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
float
getUsed()
Get cpu usage of device.int
hashCode()
void
setUsed(float used)
Set cpu usage of device.java.lang.String
toString()
-
-
-
Method Detail
-
getUsed
public float getUsed()
Get cpu usage of device.- Returns:
- usedCpu, cpu usage stats of device
-
setUsed
public void setUsed(float used)
Set cpu usage of device.- Parameters:
used
- cpu usage of device
-
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
-
-