Package org.opendaylight.yang.gen.v1.http.openconfig.net.yang.interfaces.rev210406._interface.counters.state
Interface Counters
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Counters>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<InterfaceCountersState>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface Counters extends org.opendaylight.yangtools.yang.binding.ChildOf<InterfaceCountersState>, org.opendaylight.yangtools.yang.binding.Augmentable<Counters>
A collection of interface-related statistics objects.This class represents the following YANG schema fragment defined in module openconfig-interfaces
container counters { leaf in-octets { type oc-yang:counter64; } leaf in-pkts { type oc-yang:counter64; } leaf in-unicast-pkts { type oc-yang:counter64; } leaf in-broadcast-pkts { type oc-yang:counter64; } leaf in-multicast-pkts { type oc-yang:counter64; } leaf in-discards { type oc-yang:counter64; } leaf in-errors { type oc-yang:counter64; } leaf in-unknown-protos { type oc-yang:counter64; } leaf in-fcs-errors { type oc-yang:counter64; } leaf out-octets { type oc-yang:counter64; } leaf out-pkts { type oc-yang:counter64; } leaf out-unicast-pkts { type oc-yang:counter64; } leaf out-broadcast-pkts { type oc-yang:counter64; } leaf out-multicast-pkts { type oc-yang:counter64; } leaf out-discards { type oc-yang:counter64; } leaf out-errors { type oc-yang:counter64; } leaf carrier-transitions { type oc-yang:counter64; oc-ext:telemetry-on-change; } leaf last-clear { type oc-types:timeticks64; oc-ext:telemetry-on-change; } }The schema path to identify an instance is openconfig-interfacesinterface-counters-statecountersTo create instances of this class use
CountersBuilder.- See Also:
CountersBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanbindingEquals(@NonNull Counters thisObj, Object obj)Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Counters obj)Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Counters obj)Default implementation ofObject.toString()contract for this interface.Counter64getCarrierTransitions()Return carrierTransitions, ornullif it is not present.Counter64getInBroadcastPkts()Return inBroadcastPkts, ornullif it is not present.Counter64getInDiscards()Return inDiscards, ornullif it is not present.Counter64getInErrors()Return inErrors, ornullif it is not present.Counter64getInFcsErrors()Return inFcsErrors, ornullif it is not present.Counter64getInMulticastPkts()Return inMulticastPkts, ornullif it is not present.Counter64getInOctets()Return inOctets, ornullif it is not present.Counter64getInPkts()Return inPkts, ornullif it is not present.Counter64getInUnicastPkts()Return inUnicastPkts, ornullif it is not present.Counter64getInUnknownProtos()Return inUnknownProtos, ornullif it is not present.Timeticks64getLastClear()Return lastClear, ornullif it is not present.Counter64getOutBroadcastPkts()Return outBroadcastPkts, ornullif it is not present.Counter64getOutDiscards()Return outDiscards, ornullif it is not present.Counter64getOutErrors()Return outErrors, ornullif it is not present.Counter64getOutMulticastPkts()Return outMulticastPkts, ornullif it is not present.Counter64getOutOctets()Return outOctets, ornullif it is not present.Counter64getOutPkts()Return outPkts, ornullif it is not present.Counter64getOutUnicastPkts()Return outUnicastPkts, ornullif it is not present.default Class<Counters>implementedInterface()default @NonNull Counter64requireCarrierTransitions()Return carrierTransitions, guaranteed to be non-null.default @NonNull Counter64requireInBroadcastPkts()Return inBroadcastPkts, guaranteed to be non-null.default @NonNull Counter64requireInDiscards()Return inDiscards, guaranteed to be non-null.default @NonNull Counter64requireInErrors()Return inErrors, guaranteed to be non-null.default @NonNull Counter64requireInFcsErrors()Return inFcsErrors, guaranteed to be non-null.default @NonNull Counter64requireInMulticastPkts()Return inMulticastPkts, guaranteed to be non-null.default @NonNull Counter64requireInOctets()Return inOctets, guaranteed to be non-null.default @NonNull Counter64requireInPkts()Return inPkts, guaranteed to be non-null.default @NonNull Counter64requireInUnicastPkts()Return inUnicastPkts, guaranteed to be non-null.default @NonNull Counter64requireInUnknownProtos()Return inUnknownProtos, guaranteed to be non-null.default @NonNull Timeticks64requireLastClear()Return lastClear, guaranteed to be non-null.default @NonNull Counter64requireOutBroadcastPkts()Return outBroadcastPkts, guaranteed to be non-null.default @NonNull Counter64requireOutDiscards()Return outDiscards, guaranteed to be non-null.default @NonNull Counter64requireOutErrors()Return outErrors, guaranteed to be non-null.default @NonNull Counter64requireOutMulticastPkts()Return outMulticastPkts, guaranteed to be non-null.default @NonNull Counter64requireOutOctets()Return outOctets, guaranteed to be non-null.default @NonNull Counter64requireOutPkts()Return outPkts, guaranteed to be non-null.default @NonNull Counter64requireOutUnicastPkts()Return outUnicastPkts, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
default Class<Counters> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull Counters obj)
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjis null
-
bindingEquals
static boolean bindingEquals(@NonNull Counters thisObj, Object obj)
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjis null
-
bindingToString
static String bindingToString(@NonNull Counters obj)
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjis null
-
getInOctets
Counter64 getInOctets()
Return inOctets, ornullif it is not present.The total number of octets received on the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inOctets, ornullif it is not present.
-
requireInOctets
default @NonNull Counter64 requireInOctets()
Return inOctets, guaranteed to be non-null.The total number of octets received on the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inOctets, guaranteed to be non-null.- Throws:
NoSuchElementException- if inOctets is not present
-
getInPkts
Counter64 getInPkts()
Return inPkts, ornullif it is not present.The total number of packets received on the interface, including all unicast, multicast, broadcast and bad packets etc.- Returns:
Counter64inPkts, ornullif it is not present.
-
requireInPkts
default @NonNull Counter64 requireInPkts()
Return inPkts, guaranteed to be non-null.The total number of packets received on the interface, including all unicast, multicast, broadcast and bad packets etc.- Returns:
Counter64inPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inPkts is not present
-
getInUnicastPkts
Counter64 getInUnicastPkts()
Return inUnicastPkts, ornullif it is not present.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were not addressed to a multicast or broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnicastPkts, ornullif it is not present.
-
requireInUnicastPkts
default @NonNull Counter64 requireInUnicastPkts()
Return inUnicastPkts, guaranteed to be non-null.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were not addressed to a multicast or broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnicastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inUnicastPkts is not present
-
getInBroadcastPkts
Counter64 getInBroadcastPkts()
Return inBroadcastPkts, ornullif it is not present.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inBroadcastPkts, ornullif it is not present.
-
requireInBroadcastPkts
default @NonNull Counter64 requireInBroadcastPkts()
Return inBroadcastPkts, guaranteed to be non-null.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inBroadcastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inBroadcastPkts is not present
-
getInMulticastPkts
Counter64 getInMulticastPkts()
Return inMulticastPkts, ornullif it is not present.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a multicast address at this sub-layer. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inMulticastPkts, ornullif it is not present.
-
requireInMulticastPkts
default @NonNull Counter64 requireInMulticastPkts()
Return inMulticastPkts, guaranteed to be non-null.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a multicast address at this sub-layer. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inMulticastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inMulticastPkts is not present
-
getInDiscards
Counter64 getInDiscards()
Return inDiscards, ornullif it is not present.The number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inDiscards, ornullif it is not present.
-
requireInDiscards
default @NonNull Counter64 requireInDiscards()
Return inDiscards, guaranteed to be non-null.The number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inDiscards, guaranteed to be non-null.- Throws:
NoSuchElementException- if inDiscards is not present
-
getInErrors
Counter64 getInErrors()
Return inErrors, ornullif it is not present.For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character- oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inErrors, ornullif it is not present.
-
requireInErrors
default @NonNull Counter64 requireInErrors()
Return inErrors, guaranteed to be non-null.For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character- oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inErrors, guaranteed to be non-null.- Throws:
NoSuchElementException- if inErrors is not present
-
getInUnknownProtos
Counter64 getInUnknownProtos()
Return inUnknownProtos, ornullif it is not present.For packet-oriented interfaces, the number of packets received via the interface that were discarded because of an unknown or unsupported protocol. For character-oriented or fixed-length interfaces that support protocol multiplexing, the number of transmission units received via the interface that were discarded because of an unknown or unsupported protocol. For any interface that does not support protocol multiplexing, this counter is not present. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnknownProtos, ornullif it is not present.
-
requireInUnknownProtos
default @NonNull Counter64 requireInUnknownProtos()
Return inUnknownProtos, guaranteed to be non-null.For packet-oriented interfaces, the number of packets received via the interface that were discarded because of an unknown or unsupported protocol. For character-oriented or fixed-length interfaces that support protocol multiplexing, the number of transmission units received via the interface that were discarded because of an unknown or unsupported protocol. For any interface that does not support protocol multiplexing, this counter is not present. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnknownProtos, guaranteed to be non-null.- Throws:
NoSuchElementException- if inUnknownProtos is not present
-
getInFcsErrors
Counter64 getInFcsErrors()
Return inFcsErrors, ornullif it is not present.Number of received packets which had errors in the frame check sequence (FCS), i.e., framing errors. Discontinuities in the value of this counter can occur when the device is re-initialization as indicated by the value of 'last-clear'.- Returns:
Counter64inFcsErrors, ornullif it is not present.
-
requireInFcsErrors
default @NonNull Counter64 requireInFcsErrors()
Return inFcsErrors, guaranteed to be non-null.Number of received packets which had errors in the frame check sequence (FCS), i.e., framing errors. Discontinuities in the value of this counter can occur when the device is re-initialization as indicated by the value of 'last-clear'.- Returns:
Counter64inFcsErrors, guaranteed to be non-null.- Throws:
NoSuchElementException- if inFcsErrors is not present
-
getOutOctets
Counter64 getOutOctets()
Return outOctets, ornullif it is not present.The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outOctets, ornullif it is not present.
-
requireOutOctets
default @NonNull Counter64 requireOutOctets()
Return outOctets, guaranteed to be non-null.The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outOctets, guaranteed to be non-null.- Throws:
NoSuchElementException- if outOctets is not present
-
getOutPkts
Counter64 getOutPkts()
Return outPkts, ornullif it is not present.The total number of packets transmitted out of the interface, including all unicast, multicast, broadcast, and bad packets etc.- Returns:
Counter64outPkts, ornullif it is not present.
-
requireOutPkts
default @NonNull Counter64 requireOutPkts()
Return outPkts, guaranteed to be non-null.The total number of packets transmitted out of the interface, including all unicast, multicast, broadcast, and bad packets etc.- Returns:
Counter64outPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outPkts is not present
-
getOutUnicastPkts
Counter64 getOutUnicastPkts()
Return outUnicastPkts, ornullif it is not present.The total number of packets that higher-level protocols requested be transmitted, and that were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outUnicastPkts, ornullif it is not present.
-
requireOutUnicastPkts
default @NonNull Counter64 requireOutUnicastPkts()
Return outUnicastPkts, guaranteed to be non-null.The total number of packets that higher-level protocols requested be transmitted, and that were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outUnicastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outUnicastPkts is not present
-
getOutBroadcastPkts
Counter64 getOutBroadcastPkts()
Return outBroadcastPkts, ornullif it is not present.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outBroadcastPkts, ornullif it is not present.
-
requireOutBroadcastPkts
default @NonNull Counter64 requireOutBroadcastPkts()
Return outBroadcastPkts, guaranteed to be non-null.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outBroadcastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outBroadcastPkts is not present
-
getOutMulticastPkts
Counter64 getOutMulticastPkts()
Return outMulticastPkts, ornullif it is not present.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outMulticastPkts, ornullif it is not present.
-
requireOutMulticastPkts
default @NonNull Counter64 requireOutMulticastPkts()
Return outMulticastPkts, guaranteed to be non-null.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outMulticastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outMulticastPkts is not present
-
getOutDiscards
Counter64 getOutDiscards()
Return outDiscards, ornullif it is not present.The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outDiscards, ornullif it is not present.
-
requireOutDiscards
default @NonNull Counter64 requireOutDiscards()
Return outDiscards, guaranteed to be non-null.The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outDiscards, guaranteed to be non-null.- Throws:
NoSuchElementException- if outDiscards is not present
-
getOutErrors
Counter64 getOutErrors()
Return outErrors, ornullif it is not present.For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outErrors, ornullif it is not present.
-
requireOutErrors
default @NonNull Counter64 requireOutErrors()
Return outErrors, guaranteed to be non-null.For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outErrors, guaranteed to be non-null.- Throws:
NoSuchElementException- if outErrors is not present
-
getCarrierTransitions
Counter64 getCarrierTransitions()
Return carrierTransitions, ornullif it is not present.Number of times the interface state has transitioned between up and down since the time the device restarted or the last-clear time, whichever is most recent.- Returns:
Counter64carrierTransitions, ornullif it is not present.
-
requireCarrierTransitions
default @NonNull Counter64 requireCarrierTransitions()
Return carrierTransitions, guaranteed to be non-null.Number of times the interface state has transitioned between up and down since the time the device restarted or the last-clear time, whichever is most recent.- Returns:
Counter64carrierTransitions, guaranteed to be non-null.- Throws:
NoSuchElementException- if carrierTransitions is not present
-
getLastClear
Timeticks64 getLastClear()
Return lastClear, ornullif it is not present.Timestamp of the last time the interface counters were cleared. The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64lastClear, ornullif it is not present.
-
requireLastClear
default @NonNull Timeticks64 requireLastClear()
Return lastClear, guaranteed to be non-null.Timestamp of the last time the interface counters were cleared. The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64lastClear, guaranteed to be non-null.- Throws:
NoSuchElementException- if lastClear is not present
-
-