Class FlowExecutionStatus

  • All Implemented Interfaces:
    java.lang.Comparable<FlowExecutionStatus>

    public class FlowExecutionStatus
    extends java.lang.Object
    implements java.lang.Comparable<FlowExecutionStatus>
    Represents the status of FlowExecution.
    Since:
    2.0
    Author:
    Dan Garrette, Dave Syer
    • Constructor Detail

      • FlowExecutionStatus

        public FlowExecutionStatus​(java.lang.String status)
        Parameters:
        status - String status value.
    • Method Detail

      • 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

        public int compareTo​(FlowExecutionStatus other)
        Create an ordering on FlowExecutionStatus instances by comparing their statuses.
        Specified by:
        compareTo in interface java.lang.Comparable<FlowExecutionStatus>
        Parameters:
        other - instance of FlowExecutionStatus to compare this instance with.
        Returns:
        negative, zero or positive as per the contract
        See Also:
        Comparable.compareTo(Object)
      • equals

        public boolean equals​(java.lang.Object object)
        Check the equality of the statuses.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getName

        public java.lang.String getName()
        Returns:
        the name of this status