Package com.facilita.fc.runtime
Enum ActionType
- java.lang.Object
-
- java.lang.Enum<ActionType>
-
- com.facilita.fc.runtime.ActionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ActionType>
public enum ActionType extends java.lang.Enum<ActionType>
Describes various actions that can be taken in the event of an error.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACT_ERROR
Generates an error message.ACT_EXIT_VU
Causes theVirtualUser
to exit.ACT_FINISH_ITERATING
Causes theVirtualUser
to finish iterating.ACT_NEXT_ITERATION
Causes theVirtualUser
to move onto the next iteration.ACT_NEXT_SCRIPT
Causes theVirtualUser
to move onto the next script.ACT_NEXT_SEQUENCE
Causes theVirtualUser
to move onto the next sequence of scripts.ACT_NONE
Takes no action.ACT_RAISE_EXCEPTION
Raises an exception.ACT_WARNING
Generates a warning message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActionType
toEnum(int code)
For internal use only.static ActionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ActionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACT_RAISE_EXCEPTION
public static final ActionType ACT_RAISE_EXCEPTION
Raises an exception.
-
ACT_EXIT_VU
public static final ActionType ACT_EXIT_VU
Causes theVirtualUser
to exit.Equivalent to calling
VirtualUser.exitVU()
.
-
ACT_FINISH_ITERATING
public static final ActionType ACT_FINISH_ITERATING
Causes theVirtualUser
to finish iterating.Equivalent to calling
VirtualUser.finishIterating()
.
-
ACT_NEXT_SEQUENCE
public static final ActionType ACT_NEXT_SEQUENCE
Causes theVirtualUser
to move onto the next sequence of scripts.Equivalent to calling
VirtualUser.nextSequence()
.
-
ACT_NEXT_ITERATION
public static final ActionType ACT_NEXT_ITERATION
Causes theVirtualUser
to move onto the next iteration.Equivalent to calling
VirtualUser.nextIteration()
.
-
ACT_NEXT_SCRIPT
public static final ActionType ACT_NEXT_SCRIPT
Causes theVirtualUser
to move onto the next script.Equivalent to calling
VirtualUser.nextScript()
.
-
ACT_WARNING
public static final ActionType ACT_WARNING
Generates a warning message.
-
ACT_ERROR
public static final ActionType ACT_ERROR
Generates an error message.
-
ACT_NONE
public static final ActionType ACT_NONE
Takes no action.
-
-
Method Detail
-
values
public static ActionType[] 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 (ActionType c : ActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActionType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toEnum
public static ActionType toEnum(int code) throws BadValueException
For internal use only.- Parameters:
code
- internal use only- Returns:
- for internal use only
- Throws:
BadValueException
- internal use only
-
-