Class Packet
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.netflow9.proto.Packet
-
- All Implemented Interfaces:
Iterable<FlowSet<?>>
,RecordProvider
public final class Packet extends Object implements Iterable<FlowSet<?>>, RecordProvider
-
-
Field Summary
Fields Modifier and Type Field Description List<DataSet>
dataSets
Header
header
List<OptionsTemplateSet>
optionTemplateSets
List<TemplateSet>
templateSets
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getObservationDomainId()
Returns the observation domain ID as specified by the underlying packet used to generate these records.java.util.stream.Stream<Iterable<Value<?>>>
getRecords()
long
getSequenceNumber()
Returns the sequence number as provided by the underlying packet used to generate these records.Iterator<FlowSet<?>>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
header
public final Header header
-
templateSets
public final List<TemplateSet> templateSets
-
optionTemplateSets
public final List<OptionsTemplateSet> optionTemplateSets
-
-
Constructor Detail
-
Packet
public Packet(Session session, Header header, io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
- Throws:
InvalidPacketException
-
-
Method Detail
-
getRecords
public java.util.stream.Stream<Iterable<Value<?>>> getRecords()
- Specified by:
getRecords
in interfaceRecordProvider
-
getObservationDomainId
public long getObservationDomainId()
Description copied from interface:RecordProvider
Returns the observation domain ID as specified by the underlying packet used to generate these records.- Specified by:
getObservationDomainId
in interfaceRecordProvider
- Returns:
- the observation domain ID or
0
if there is no such concept available.
-
getSequenceNumber
public long getSequenceNumber()
Description copied from interface:RecordProvider
Returns the sequence number as provided by the underlying packet used to generate these records.- Specified by:
getSequenceNumber
in interfaceRecordProvider
- Returns:
- the sequence number
-
-