Enum Class ProcessUnit.TerminationReason
java.lang.Object
java.lang.Enum<ProcessUnit.TerminationReason>
de.iip_ecosphere.platform.configuration.maven.ProcessUnit.TerminationReason
- All Implemented Interfaces:
Serializable,Comparable<ProcessUnit.TerminationReason>,Constable
- Enclosing class:
ProcessUnit
Denotes the reason for termination.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTermination when all required log regular expressions are matched.Termination by timeout. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTerminationReason(boolean stopRequired) Creates a constant. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether process stop required when this reason occurs.Returns the enum constant of this class with the specified name.static ProcessUnit.TerminationReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TIMEOUT
Termination by timeout. -
MATCH_COMPLETE
Termination when all required log regular expressions are matched.
-
-
Field Details
-
stopRequired
private boolean stopRequired
-
-
Constructor Details
-
TerminationReason
private TerminationReason(boolean stopRequired) Creates a constant.- Parameters:
stopRequired- is process stop required when this reason occurs
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isStopRequired
public boolean isStopRequired()Returns whether process stop required when this reason occurs.- Returns:
truefor stop,falsenot required
-