Class Packet
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.ipfix.proto.Packet
-
- All Implemented Interfaces:
java.lang.Iterable<FlowSet<?>>,RecordProvider
public final class Packet extends java.lang.Object implements java.lang.Iterable<FlowSet<?>>, RecordProvider
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<DataSet>dataSetsHeaderheaderjava.util.List<OptionsTemplateSet>optionTemplateSetsjava.util.List<TemplateSet>templateSets
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetObservationDomainId()Returns the observation domain ID as specified by the underlying packet used to generate these records.java.util.stream.Stream<java.lang.Iterable<Value<?>>>getRecords()longgetSequenceNumber()Returns the sequence number as provided by the underlying packet used to generate these records.java.util.Iterator<FlowSet<?>>iterator()java.lang.StringtoString()
-
-
-
Field Detail
-
header
public final Header header
-
templateSets
public final java.util.List<TemplateSet> templateSets
-
optionTemplateSets
public final java.util.List<OptionsTemplateSet> optionTemplateSets
-
dataSets
public final java.util.List<DataSet> dataSets
-
-
Constructor Detail
-
Packet
public Packet(Session session, Header header, io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
- Throws:
InvalidPacketException
-
-
Method Detail
-
iterator
public java.util.Iterator<FlowSet<?>> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<FlowSet<?>>
-
getRecords
public java.util.stream.Stream<java.lang.Iterable<Value<?>>> getRecords()
- Specified by:
getRecordsin interfaceRecordProvider
-
getObservationDomainId
public long getObservationDomainId()
Description copied from interface:RecordProviderReturns the observation domain ID as specified by the underlying packet used to generate these records.- Specified by:
getObservationDomainIdin interfaceRecordProvider- Returns:
- the observation domain ID or
0if there is no such concept available.
-
getSequenceNumber
public long getSequenceNumber()
Description copied from interface:RecordProviderReturns the sequence number as provided by the underlying packet used to generate these records.- Specified by:
getSequenceNumberin interfaceRecordProvider- Returns:
- the sequence number
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-