Enum Stream
- java.lang.Object
-
- java.lang.Enum<Stream>
-
- me.snowdrop.istio.mixer.adapter.stdio.Stream
-
- All Implemented Interfaces:
Serializable,Comparable<Stream>
public enum Stream extends Enum<Stream>
Stream is used to select between different log output sinks.- Author:
- Christophe Laprun
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILEOutput to a specific file.ROTATED_FILEOutput to a specific rotating file, controlled by the various file rotation options.STDERROutput to the Mixer process' standard error stream.STDOUTOutput to the Mixer process' standard output stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static StreamvalueOf(String name)Returns the enum constant of this type with the specified name.static Stream[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STDOUT
public static final Stream STDOUT
Output to the Mixer process' standard output stream. This is the default value.
-
STDERR
public static final Stream STDERR
Output to the Mixer process' standard error stream.
-
FILE
public static final Stream FILE
Output to a specific file.
-
ROTATED_FILE
public static final Stream ROTATED_FILE
Output to a specific rotating file, controlled by the various file rotation options.
-
-
Method Detail
-
values
public static Stream[] 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 (Stream c : Stream.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Stream 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
-
value
public int value()
-
-