Interface SystemCpuState
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator") public interface SystemCpuState extends org.opendaylight.yangtools.yang.binding.DataObject
Operational state data for the system CPU(s)This class represents the following YANG schema fragment defined in module openconfig-system
grouping system-cpu-state { leaf index { type union { type enumeration { enum ALL { } } type uint32; } } container total { uses oc-types:avg-min-max-instant-stats-pct; } container user { uses oc-types:avg-min-max-instant-stats-pct; } container kernel { uses oc-types:avg-min-max-instant-stats-pct; } container nice { uses oc-types:avg-min-max-instant-stats-pct; } container idle { uses oc-types:avg-min-max-instant-stats-pct; } container wait { uses oc-types:avg-min-max-instant-stats-pct; } container hardware-interrupt { uses oc-types:avg-min-max-instant-stats-pct; } container software-interrupt { uses oc-types:avg-min-max-instant-stats-pct; } }The schema path to identify an instance is openconfig-systemsystem-cpu-state
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSystemCpuState.Index
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HardwareInterruptgetHardwareInterrupt()Return hardwareInterrupt, ornullif it is not present.IdlegetIdle()Return idle, ornullif it is not present.SystemCpuState.IndexgetIndex()Return index, ornullif it is not present.KernelgetKernel()Return kernel, ornullif it is not present.NicegetNice()Return nice, ornullif it is not present.SoftwareInterruptgetSoftwareInterrupt()Return softwareInterrupt, ornullif it is not present.TotalgetTotal()Return total, ornullif it is not present.UsergetUser()Return user, ornullif it is not present.WaitgetWait()Return wait, ornullif it is not present.Class<? extends SystemCpuState>implementedInterface()default @NonNull SystemCpuState.IndexrequireIndex()Return index, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends SystemCpuState> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getIndex
SystemCpuState.Index getIndex()
Return index, ornullif it is not present.The CPU index for each processor core on the system. On a single-core system, the index should be zero. The ALL index signifies an aggregation of the CPU utilization statistics over all cores in the system.- Returns:
Indexindex, ornullif it is not present.
-
requireIndex
default @NonNull SystemCpuState.Index requireIndex()
Return index, guaranteed to be non-null.The CPU index for each processor core on the system. On a single-core system, the index should be zero. The ALL index signifies an aggregation of the CPU utilization statistics over all cores in the system.- Returns:
Indexindex, guaranteed to be non-null.- Throws:
NoSuchElementException- if index is not present
-
getTotal
Total getTotal()
Return total, ornullif it is not present.Total CPU utilization.- Returns:
Totaltotal, ornullif it is not present.
-
getUser
User getUser()
Return user, ornullif it is not present.Percentage of CPU time spent running in user space.- Returns:
Useruser, ornullif it is not present.
-
getKernel
Kernel getKernel()
Return kernel, ornullif it is not present.Percentage of CPU time spent running in kernel space.- Returns:
Kernelkernel, ornullif it is not present.
-
getNice
Nice getNice()
Return nice, ornullif it is not present.Percentage of CPU time spent running low-priority (niced) user processes.- Returns:
Nicenice, ornullif it is not present.
-
getIdle
Idle getIdle()
Return idle, ornullif it is not present.Percentage of CPU time spent idle.- Returns:
Idleidle, ornullif it is not present.
-
getWait
Wait getWait()
Return wait, ornullif it is not present.Percentage of CPU time spent waiting for I/O.- Returns:
Waitwait, ornullif it is not present.
-
getHardwareInterrupt
HardwareInterrupt getHardwareInterrupt()
Return hardwareInterrupt, ornullif it is not present.Percentage of CPU time spent servicing hardware interrupts.- Returns:
HardwareInterrupthardwareInterrupt, ornullif it is not present.
-
getSoftwareInterrupt
SoftwareInterrupt getSoftwareInterrupt()
Return softwareInterrupt, ornullif it is not present.Percentage of CPU time spent servicing software interrupts- Returns:
SoftwareInterruptsoftwareInterrupt, ornullif it is not present.
-
-