Package com.wavefront.agent.preprocessor
Class PreprocessorUtil
- java.lang.Object
-
- com.wavefront.agent.preprocessor.PreprocessorUtil
-
public abstract class PreprocessorUtil extends Object
Utility class for methods used by preprocessors.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description PreprocessorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getBoolean(Map<String,Object> ruleMap, String key, boolean defaultValue)
static int
getInteger(Map<String,Object> ruleMap, String key, int defaultValue)
static String
getString(Map<String,Object> ruleMap, String key)
static String
truncate(String input, int maxLength, LengthLimitActionType actionSubtype)
Enforce string max length limit - either truncate or truncate with "..." at the end.
-
-
-
Method Detail
-
truncate
public static String truncate(String input, int maxLength, LengthLimitActionType actionSubtype)
Enforce string max length limit - either truncate or truncate with "..." at the end.- Parameters:
input
- Input string to truncate.maxLength
- Truncate string at this length.actionSubtype
- TRUNCATE or TRUNCATE_WITH_ELLIPSIS.- Returns:
- truncated string
-
getBoolean
public static boolean getBoolean(Map<String,Object> ruleMap, String key, boolean defaultValue)
-
-