public final class PktUtils extends Object
| Constructor and Description |
|---|
PktUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpCorruptedSerializedPacket(String message,
ByteBuffer buffer,
int pos,
int limit,
Throwable e,
Tracer tracer)
Utility method to dump packet on packet corruption.
|
public static final void dumpCorruptedSerializedPacket(String message, ByteBuffer buffer, int pos, int limit, Throwable e, Tracer tracer)
This method dumps the packet contents in hex to an diagnostic file and also trace an error to the provided tracer.
message - The error message to trace.buffer - The buffer containing the serialized contents of the corrupt serialized packet.pos - The starting position of the packet in the buffer.limit - The last valid position in the buffer.e - The deserialization exception.tracer - The tracer to use to trace the location at which the dump file was written.Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.