Class FlowExecutionStatus
java.lang.Object
org.springframework.batch.core.job.flow.FlowExecutionStatus
- All Implemented Interfaces:
Comparable<FlowExecutionStatus>
Represents the status of
FlowExecution.- Since:
- 2.0
- Author:
- Dan Garrette, Dave Syer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FlowExecutionStatusSpecial well-known status value.static final FlowExecutionStatusSpecial well-known status value.static final FlowExecutionStatusSpecial well-known status value.static final FlowExecutionStatusSpecial well-known status value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FlowExecutionStatus other) Create an ordering onFlowExecutionStatusinstances by comparing their statuses.booleanCheck the equality of the statuses.getName()inthashCode()booleanisEnd()booleanisFail()booleanisStop()toString()
-
Field Details
-
COMPLETED
Special well-known status value. -
STOPPED
Special well-known status value. -
FAILED
Special well-known status value. -
UNKNOWN
Special well-known status value.
-
-
Constructor Details
-
FlowExecutionStatus
- Parameters:
status- String status value.
-
-
Method Details
-
isStop
public boolean isStop()- Returns:
- true if the status starts with "STOPPED"
-
isFail
public boolean isFail()- Returns:
- true if the status starts with "FAILED"
-
isEnd
public boolean isEnd()- Returns:
- true if this status represents the end of a flow
-
compareTo
Create an ordering onFlowExecutionStatusinstances by comparing their statuses.- Specified by:
compareToin interfaceComparable<FlowExecutionStatus>- Parameters:
other- instance ofFlowExecutionStatusto compare this instance with.- Returns:
- negative, zero or positive as per the contract
- See Also:
-
equals
Check the equality of the statuses. -
hashCode
public int hashCode() -
toString
-
getName
- Returns:
- the name of this status
-