Interface SystemCpuState
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,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;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module openconfig-system -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn hardwareInterrupt, ornullif it is not present.getIdle()Return idle, ornullif it is not present.getIndex()Return index, ornullif it is not present.Return kernel, ornullif it is not present.getNice()Return nice, ornullif it is not present.Return softwareInterrupt, ornullif it is not present.getTotal()Return total, ornullif it is not present.getUser()Return user, ornullif it is not present.getWait()Return wait, ornullif it is not present.Class<? extends SystemCpuState>@NonNull HardwareInterruptReturn hardwareInterrupt, or an empty instance if it is not present.@NonNull IdleReturn idle, or an empty instance if it is not present.@NonNull KernelReturn kernel, or an empty instance if it is not present.@NonNull NiceReturn nice, or an empty instance if it is not present.@NonNull SoftwareInterruptReturn softwareInterrupt, or an empty instance if it is not present.@NonNull TotalReturn total, or an empty instance if it is not present.@NonNull UserReturn user, or an empty instance if it is not present.@NonNull WaitReturn wait, or an empty instance if it is not present.default @NonNull SystemCpuState.IndexReturn index, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends SystemCpuState> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.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
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.
-
nonnullTotal
@NonNull Total nonnullTotal()Return total, or an empty instance if it is not present.- Returns:
Totaltotal, or an empty instance if 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.
-
nonnullUser
@NonNull User nonnullUser()Return user, or an empty instance if it is not present.- Returns:
Useruser, or an empty instance if 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.
-
nonnullKernel
@NonNull Kernel nonnullKernel()Return kernel, or an empty instance if it is not present.- Returns:
Kernelkernel, or an empty instance if 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.
-
nonnullNice
@NonNull Nice nonnullNice()Return nice, or an empty instance if it is not present.- Returns:
Nicenice, or an empty instance if 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.
-
nonnullIdle
@NonNull Idle nonnullIdle()Return idle, or an empty instance if it is not present.- Returns:
Idleidle, or an empty instance if 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.
-
nonnullWait
@NonNull Wait nonnullWait()Return wait, or an empty instance if it is not present.- Returns:
Waitwait, or an empty instance if 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.
-
nonnullHardwareInterrupt
@NonNull HardwareInterrupt nonnullHardwareInterrupt()Return hardwareInterrupt, or an empty instance if it is not present.- Returns:
HardwareInterrupthardwareInterrupt, or an empty instance if 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.
-
nonnullSoftwareInterrupt
@NonNull SoftwareInterrupt nonnullSoftwareInterrupt()Return softwareInterrupt, or an empty instance if it is not present.- Returns:
SoftwareInterruptsoftwareInterrupt, or an empty instance if it is not present.
-