Class NetFlowCodec
java.lang.Object
org.graylog2.plugin.inputs.codecs.AbstractCodec
org.graylog.plugins.netflow.codecs.NetFlowCodec
- All Implemented Interfaces:
Codec,MultiMessageCodec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested classes/interfaces inherited from class org.graylog2.plugin.inputs.codecs.AbstractCodec
AbstractCodec.DescriptorNested classes/interfaces inherited from interface org.graylog2.plugin.inputs.codecs.Codec
Codec.Descriptor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteMarker byte which signals that the contained netflow v9 packet is non-RFC: It contains all necessary template flows before any data flows and can be completely parsed without a template cache.static final byteMarker byte which signals that the contained netflow packet should be parsed as is.Fields inherited from class org.graylog2.plugin.inputs.codecs.AbstractCodec
charset, configuration -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetFlowCodec(Configuration configuration, NetflowV9CodecAggregator netflowV9CodecAggregator) -
Method Summary
Modifier and TypeMethodDescriptiondecode(RawMessage rawMessage) decodeMessages(RawMessage rawMessage) Methods inherited from class org.graylog2.plugin.inputs.codecs.AbstractCodec
getConfiguration, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.plugin.inputs.codecs.Codec
getConfiguration, getName
-
Field Details
-
PASSTHROUGH_MARKER
public static final byte PASSTHROUGH_MARKERMarker byte which signals that the contained netflow packet should be parsed as is.- See Also:
-
ORDERED_V9_MARKER
public static final byte ORDERED_V9_MARKERMarker byte which signals that the contained netflow v9 packet is non-RFC: It contains all necessary template flows before any data flows and can be completely parsed without a template cache.- See Also:
-
-
Constructor Details
-
NetFlowCodec
@Inject protected NetFlowCodec(Configuration configuration, NetflowV9CodecAggregator netflowV9CodecAggregator) throws IOException - Throws:
IOException
-
-
Method Details
-
getAggregator
- Specified by:
getAggregatorin interfaceCodec- Overrides:
getAggregatorin classAbstractCodec
-
decode
-
decodeMessages
- Specified by:
decodeMessagesin interfaceMultiMessageCodec
-