Enum ChaosTarget
- java.lang.Object
-
- java.lang.Enum<ChaosTarget>
-
- de.codecentric.spring.boot.chaos.monkey.component.ChaosTarget
-
- All Implemented Interfaces:
Serializable,Comparable<ChaosTarget>
public enum ChaosTarget extends Enum<ChaosTarget>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTUATOR_HEALTHCOMPONENTCONTROLLERREPOSITORYREST_CONTROLLERREST_TEMPLATESERVICEWEB_CLIENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static ChaosTargetvalueOf(String name)Returns the enum constant of this type with the specified name.static ChaosTarget[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTROLLER
public static final ChaosTarget CONTROLLER
-
REST_CONTROLLER
public static final ChaosTarget REST_CONTROLLER
-
REPOSITORY
public static final ChaosTarget REPOSITORY
-
COMPONENT
public static final ChaosTarget COMPONENT
-
SERVICE
public static final ChaosTarget SERVICE
-
REST_TEMPLATE
public static final ChaosTarget REST_TEMPLATE
-
WEB_CLIENT
public static final ChaosTarget WEB_CLIENT
-
ACTUATOR_HEALTH
public static final ChaosTarget ACTUATOR_HEALTH
-
-
Method Detail
-
values
public static ChaosTarget[] 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 (ChaosTarget c : ChaosTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChaosTarget 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
-
getName
public String getName()
-
-