Interface GenericStatistics
- 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
,Duration
- All Known Subinterfaces:
FlowAndStatisticsMap
,FlowAndStatisticsMapList
,FlowStatistics
@Generated("mdsal-binding-generator")
public interface GenericStatistics
extends org.opendaylight.yangtools.yang.binding.DataObject, Duration
Generic grouping for statistics
This class represents the following YANG schema fragment defined in module opendaylight-statistics-types
grouping generic-statistics { leaf packet-count { type yang:counter64; } leaf byte-count { type yang:counter64; } uses duration; }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64
Return byteCount, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64
Return packetCount, ornull
if it is not present.Class<? extends GenericStatistics>
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64
Return byteCount, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64
Return packetCount, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.Duration
getDuration, nonnullDuration
-
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 GenericStatistics> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceDuration
-
getPacketCount
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 getPacketCount()Return packetCount, ornull
if it is not present.- Returns:
Counter64
packetCount, ornull
if it is not present.
-
requirePacketCount
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 requirePacketCount()Return packetCount, guaranteed to be non-null.- Returns:
Counter64
packetCount, guaranteed to be non-null.- Throws:
NoSuchElementException
- if packetCount is not present
-
getByteCount
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 getByteCount()Return byteCount, ornull
if it is not present.- Returns:
Counter64
byteCount, ornull
if it is not present.
-
requireByteCount
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 requireByteCount()Return byteCount, guaranteed to be non-null.- Returns:
Counter64
byteCount, guaranteed to be non-null.- Throws:
NoSuchElementException
- if byteCount is not present
-