Package com.wavefront.agent.handlers
Class LineDelimitedUtils
- java.lang.Object
-
- com.wavefront.agent.handlers.LineDelimitedUtils
-
public class LineDelimitedUtils extends Object
A collection of helper methods around plaintext newline-delimited payloads.- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description static String
PUSH_DATA_DELIMETER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
joinPushData(Collection<String> pushData)
Join a batch of strings into a payload string.static int
pushDataSize(String pushData)
Calculates the number of points in the pushData payload.static String[]
splitPushData(String pushData)
Split a newline-delimited payload into a string array.
-
-
-
Field Detail
-
PUSH_DATA_DELIMETER
public static final String PUSH_DATA_DELIMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
splitPushData
public static String[] splitPushData(String pushData)
Split a newline-delimited payload into a string array.- Parameters:
pushData
- payload to split.- Returns:
- string array
-
joinPushData
public static String joinPushData(Collection<String> pushData)
Join a batch of strings into a payload string.- Parameters:
pushData
- collection of strings.- Returns:
- payload
-
pushDataSize
public static int pushDataSize(String pushData)
Calculates the number of points in the pushData payload.- Parameters:
pushData
- a newline-delimited payload string.- Returns:
- number of points
-
-