public class NettyNetflowDecoder extends Object implements NettyCodec
| Constructor and Description |
|---|
NettyNetflowDecoder(int capacity,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
Watch out : the capacity parameter is a fixed capacity.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
decode(byte[] in)
Decode a received payload and return the lumberjack frames contained in
it.
|
List<String> |
decode(io.netty.buffer.ByteBuf in)
Decode a received payload and return the lumberjack frames contained in
it.
|
static String |
toIpv4(int v) |
static int |
toIpv4(String v) |
public NettyNetflowDecoder(int capacity,
org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
capacity - the working compression/decompression buffer capacitymetricsContext - the metric contextpublic List<String> decode(io.netty.buffer.ByteBuf in)
decode in interface NettyCodecin - the input payload ByteBufpublic List<String> decode(byte[] in)
in - the input payload byte arrayIllegalArgumentException - if the data cannot be lumberjack decodedpublic static String toIpv4(int v)
v - the int representationpublic static int toIpv4(String v)
v - the String representation of an IPV4 addressCopyright © 2023. All rights reserved.