Package org.graylog2.inputs.codecs.gelf
Class GELFMessageChunk
java.lang.Object
org.graylog2.inputs.codecs.gelf.GELFMessageChunk
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The length of the message hashstatic final int
The start byte of the message hashstatic final int
The start byte of the sequence countstatic final int
The start byte of the sequence numberstatic final int
The total length of the header. -
Constructor Summary
ConstructorDescriptionGELFMessageChunk
(byte[] payload, MessageInput sourceInput) GELFMessageChunk
(GELFMessage msg, MessageInput sourceInput) -
Method Summary
-
Field Details
-
HEADER_PART_SEQNUM_START
public static final int HEADER_PART_SEQNUM_STARTThe start byte of the sequence number- See Also:
-
HEADER_PART_SEQCNT_START
public static final int HEADER_PART_SEQCNT_STARTThe start byte of the sequence count- See Also:
-
HEADER_PART_HASH_START
public static final int HEADER_PART_HASH_STARTThe start byte of the message hash- See Also:
-
HEADER_PART_HASH_LENGTH
public static final int HEADER_PART_HASH_LENGTHThe length of the message hash- See Also:
-
HEADER_TOTAL_LENGTH
public static final int HEADER_TOTAL_LENGTHThe total length of the header.- See Also:
-
-
Constructor Details
-
GELFMessageChunk
-
GELFMessageChunk
-
-
Method Details
-
getArrival
public long getArrival()The UNIX timestamp when the message chunk arrived in milliseconds.- Returns:
- the UNIX timestamp when the message chunk arrived in milliseconds.
- See Also:
-
getId
-
getData
public byte[] getData() -
getSequenceCount
public int getSequenceCount() -
getSequenceNumber
public int getSequenceNumber() -
getSourceInput
-
toString
-