Package com.wavefront.agent.formatter
Enum DataFormat
- java.lang.Object
-
- java.lang.Enum<DataFormat>
-
- com.wavefront.agent.formatter.DataFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<DataFormat>
public enum DataFormat extends Enum<DataFormat>
Best-effort data format auto-detection.- Author:
- [email protected]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataFormat
autodetect(String input)
static DataFormat
parse(String format)
static DataFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final DataFormat DEFAULT
-
WAVEFRONT
public static final DataFormat WAVEFRONT
-
HISTOGRAM
public static final DataFormat HISTOGRAM
-
SOURCE_TAG
public static final DataFormat SOURCE_TAG
-
EVENT
public static final DataFormat EVENT
-
SPAN
public static final DataFormat SPAN
-
SPAN_LOG
public static final DataFormat SPAN_LOG
-
-
Method Detail
-
values
public static DataFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataFormat c : DataFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
autodetect
public static DataFormat autodetect(String input)
-
parse
@Nullable public static DataFormat parse(String format)
-
-