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>
dataSets
Header
header
java.util.List<OptionsTemplateSet>
optionTemplateSets
java.util.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<java.lang.Iterable<Value<?>>>
getRecords()
long
getSequenceNumber()
Returns the sequence number as provided by the underlying packet used to generate these records.java.util.Iterator<FlowSet<?>>
iterator()
java.lang.String
toString()
-
-
-
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:
iterator
in interfacejava.lang.Iterable<FlowSet<?>>
-
getRecords
public java.util.stream.Stream<java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-