Enum CaptureMode
- java.lang.Object
-
- java.lang.Enum<CaptureMode>
-
- me.snowdrop.istio.api.networking.v1beta1.CaptureMode
-
- All Implemented Interfaces:
Serializable,Comparable<CaptureMode>
public enum CaptureMode extends Enum<CaptureMode>
CaptureMode describes how traffic to a listener is expected to be captured. Applicable only when the listener is bound to an IP.- Author:
- Christophe Laprun
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static CaptureModevalueOf(String name)Returns the enum constant of this type with the specified name.static CaptureMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final CaptureMode DEFAULT
The default capture mode defined by the environment
-
IPTABLES
public static final CaptureMode IPTABLES
Capture traffic using IPtables redirection
-
NONE
public static final CaptureMode NONE
No traffic capture. When used in egress listener, the application is expected to explicitly communicate with the listener port/unix domain socket. When used in ingress listener, care needs to be taken to ensure that the listener port is not in use by other processes on the host.
-
-
Method Detail
-
values
public static CaptureMode[] 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 (CaptureMode c : CaptureMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CaptureMode 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()
-
-