类 FlowExecutionStatus
- java.lang.Object
- org.springframework.batch.core.job.flow.FlowExecutionStatus
- 所有已实现的接口:
java.lang.Comparable<FlowExecutionStatus>
public class FlowExecutionStatus extends java.lang.Object implements java.lang.Comparable<FlowExecutionStatus>
Represents the status ofFlowExecution
.- 从以下版本开始:
- 2.0
- 作者:
- Dan Garrette, Dave Syer
字段概要
字段 修饰符和类型 字段 说明 static FlowExecutionStatus
COMPLETED
Special well-known status value.static FlowExecutionStatus
FAILED
Special well-known status value.static FlowExecutionStatus
STOPPED
Special well-known status value.static FlowExecutionStatus
UNKNOWN
Special well-known status value.
构造器概要
构造器 构造器 说明 FlowExecutionStatus(java.lang.String status)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
compareTo(FlowExecutionStatus other)
Create an ordering onFlowExecutionStatus
instances by comparing their statuses.boolean
equals(java.lang.Object object)
Check the equality of the statuses.java.lang.String
getName()
int
hashCode()
boolean
isEnd()
boolean
isFail()
boolean
isStop()
java.lang.String
toString()
字段详细资料
COMPLETED
public static final FlowExecutionStatus COMPLETED
Special well-known status value.
STOPPED
public static final FlowExecutionStatus STOPPED
Special well-known status value.
FAILED
public static final FlowExecutionStatus FAILED
Special well-known status value.
UNKNOWN
public static final FlowExecutionStatus UNKNOWN
Special well-known status value.
构造器详细资料
FlowExecutionStatus
public FlowExecutionStatus(java.lang.String status)
- 参数:
status
- String status value.
方法详细资料
isStop
public boolean isStop()
- 返回:
- true if the status starts with "STOPPED"
isFail
public boolean isFail()
- 返回:
- true if the status starts with "FAILED"
isEnd
public boolean isEnd()
- 返回:
- true if this status represents the end of a flow
compareTo
public int compareTo(FlowExecutionStatus other)
Create an ordering onFlowExecutionStatus
instances by comparing their statuses.- 指定者:
compareTo
在接口中java.lang.Comparable<FlowExecutionStatus>
- 参数:
other
- instance ofFlowExecutionStatus
to compare this instance with.- 返回:
- negative, zero or positive as per the contract
- 另请参阅:
Comparable.compareTo(Object)
equals
public boolean equals(java.lang.Object object)
Check the equality of the statuses.- 覆盖:
equals
在类中java.lang.Object
- 另请参阅:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- 覆盖:
hashCode
在类中java.lang.Object
toString
public java.lang.String toString()
- 覆盖:
toString
在类中java.lang.Object
- 另请参阅:
Object.toString()
getName
public java.lang.String getName()
- 返回:
- the name of this status