Interface ProcmonProcessAttributesState
- 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 ProcmonProcessAttributesState
extends org.opendaylight.yangtools.yang.binding.DataObject
Attributes state definitions for a process
This class represents the following YANG schema fragment defined in module openconfig-procmon
grouping procmon-process-attributes-state {
leaf pid {
type uint64;
}
leaf name {
type string;
}
leaf-list args {
type string;
}
leaf start-time {
type oc-types:timeticks64;
}
leaf cpu-usage-user {
type oc-yang:counter64;
units nanoseconds;
}
leaf cpu-usage-system {
type oc-yang:counter64;
units nanoseconds;
}
leaf cpu-utilization {
type oc-types:percentage;
}
leaf memory-usage {
type uint64;
units bytes;
}
leaf memory-utilization {
type oc-types:percentage;
}
}
-
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 TypeMethodDescriptiongetArgs()Return args, ornullif it is not present.Return cpuUsageSystem, ornullif it is not present.Return cpuUsageUser, ornullif it is not present.Return cpuUtilization, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64Return memoryUsage, ornullif it is not present.Return memoryUtilization, ornullif it is not present.getName()Return name, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64getPid()Return pid, ornullif it is not present.Return startTime, ornullif it is not present.Class<? extends ProcmonProcessAttributesState>Return args, guaranteed to be non-null.default @NonNull Counter64Return cpuUsageSystem, guaranteed to be non-null.default @NonNull Counter64Return cpuUsageUser, guaranteed to be non-null.default @NonNull PercentageReturn cpuUtilization, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return memoryUsage, guaranteed to be non-null.default @NonNull PercentageReturn memoryUtilization, guaranteed to be non-null.default @NonNull StringReturn name, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return pid, guaranteed to be non-null.default @NonNull Timeticks64Return startTime, 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 ProcmonProcessAttributesState> 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
-
getPid
org.opendaylight.yangtools.yang.common.Uint64 getPid()Return pid, ornullif it is not present.The process pid- Returns:
Uint64pid, ornullif it is not present.
-
requirePid
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requirePid()Return pid, guaranteed to be non-null.The process pid- Returns:
Uint64pid, guaranteed to be non-null.- Throws:
NoSuchElementException- if pid is not present
-
getName
String getName()Return name, ornullif it is not present.The process name- Returns:
Stringname, ornullif it is not present.
-
requireName
Return name, guaranteed to be non-null.The process name- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getArgs
Return args, ornullif it is not present.Current process command line arguments. Arguments with a parameter (e.g., --option 10 or -option=10) should be represented as a single element of the list with the argument name and parameter together. Flag arguments, i.e., those without a parameter should also be in their own list element.- Returns:
Set<String>args, ornullif it is not present.
-
requireArgs
Return args, guaranteed to be non-null.Current process command line arguments. Arguments with a parameter (e.g., --option 10 or -option=10) should be represented as a single element of the list with the argument name and parameter together. Flag arguments, i.e., those without a parameter should also be in their own list element.- Returns:
Set<String>args, guaranteed to be non-null.- Throws:
NoSuchElementException- if args is not present
-
getStartTime
Timeticks64 getStartTime()Return startTime, ornullif it is not present.The time at which this process started, relative to the UNIX epoch. The system must be synchronized such that the start-time can be reported accurately, otherwise it should not be reported.- Returns:
Timeticks64startTime, ornullif it is not present.
-
requireStartTime
Return startTime, guaranteed to be non-null.The time at which this process started, relative to the UNIX epoch. The system must be synchronized such that the start-time can be reported accurately, otherwise it should not be reported.- Returns:
Timeticks64startTime, guaranteed to be non-null.- Throws:
NoSuchElementException- if startTime is not present
-
getCpuUsageUser
Counter64 getCpuUsageUser()Return cpuUsageUser, ornullif it is not present.CPU time consumed by this process in user mode in nanoseconds.- Returns:
Counter64cpuUsageUser, ornullif it is not present.
-
requireCpuUsageUser
Return cpuUsageUser, guaranteed to be non-null.CPU time consumed by this process in user mode in nanoseconds.- Returns:
Counter64cpuUsageUser, guaranteed to be non-null.- Throws:
NoSuchElementException- if cpuUsageUser is not present
-
getCpuUsageSystem
Counter64 getCpuUsageSystem()Return cpuUsageSystem, ornullif it is not present.CPU time consumed by this process in kernel mode.- Returns:
Counter64cpuUsageSystem, ornullif it is not present.
-
requireCpuUsageSystem
Return cpuUsageSystem, guaranteed to be non-null.CPU time consumed by this process in kernel mode.- Returns:
Counter64cpuUsageSystem, guaranteed to be non-null.- Throws:
NoSuchElementException- if cpuUsageSystem is not present
-
getCpuUtilization
Percentage getCpuUtilization()Return cpuUtilization, ornullif it is not present.The percentage of CPU that is being used by the process.- Returns:
PercentagecpuUtilization, ornullif it is not present.
-
requireCpuUtilization
Return cpuUtilization, guaranteed to be non-null.The percentage of CPU that is being used by the process.- Returns:
PercentagecpuUtilization, guaranteed to be non-null.- Throws:
NoSuchElementException- if cpuUtilization is not present
-
getMemoryUsage
org.opendaylight.yangtools.yang.common.Uint64 getMemoryUsage()Return memoryUsage, ornullif it is not present.Bytes allocated and still in use by the process- Returns:
Uint64memoryUsage, ornullif it is not present.
-
requireMemoryUsage
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requireMemoryUsage()Return memoryUsage, guaranteed to be non-null.Bytes allocated and still in use by the process- Returns:
Uint64memoryUsage, guaranteed to be non-null.- Throws:
NoSuchElementException- if memoryUsage is not present
-
getMemoryUtilization
Percentage getMemoryUtilization()Return memoryUtilization, ornullif it is not present.The percentage of RAM that is being used by the process.- Returns:
PercentagememoryUtilization, ornullif it is not present.
-
requireMemoryUtilization
Return memoryUtilization, guaranteed to be non-null.The percentage of RAM that is being used by the process.- Returns:
PercentagememoryUtilization, guaranteed to be non-null.- Throws:
NoSuchElementException- if memoryUtilization is not present
-