Package org.graylog2.inputs.codecs.gelf
Class GELFMessage
java.lang.Object
org.graylog2.inputs.codecs.gelf.GELFMessage
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGELFMessage(byte[] payload) GELFMessage(byte[] payload, ResolvableInetSocketAddress sourceAddress) -
Method Summary
-
Constructor Details
-
GELFMessage
public GELFMessage(byte[] payload) - Parameters:
payload- Compressed or uncompressed- See Also:
-
GELFMessage
-
-
Method Details
-
getGELFType
-
getJSON
Deprecated.UsegetJSON(long).Return the JSON payload of the GELF message- Returns:
- The extracted JSON payload of the GELF message.
-
getJSON
Return the JSON payload of the GELF message.- Parameters:
maxBytes- The maximum number of bytes to read from a compressed GELF payload.-1means unlimited.- Returns:
- The extracted JSON payload of the GELF message.
- See Also:
-
getJSON
-
getPayload
public byte[] getPayload() -
getSourceAddress
-
getJSON(long).