C# Class Summer.Batch.Core.Job.Flow.Support.State.EndState

IState implementation for ending a job if it is in progress and continuing if just starting.
Inheritance: Summer.Batch.Core.Job.Flow.Support.State.AbstractState
ファイルを表示 Open project: SummerBatch/SummerBatch

Public Methods

Method Description
EndState ( FlowExecutionStatus status, string name ) : System

Custom constructor using a status and a name.

EndState ( FlowExecutionStatus status, string code, string name ) : System

Custom constructor using a status, a code and a name.

EndState ( FlowExecutionStatus status, string code, string name, bool abandon ) : System

Custom constructor using a status, a code, a name and an abandon flag.

EndState ( string name ) : System

Custom constructor using a name.

Handle ( IFlowExecutor executor ) : FlowExecutionStatus

Returns the FlowExecutionStatus stored. @see IState#Handle

IsEndState ( ) : bool

@see IState#IsEndState .

ToString ( ) : string

ToString override.

Protected Methods

Method Description
SetExitStatus ( IFlowExecutor executor, string code ) : void

Performs any logic to update the exit status for the current flow.

Method Details

EndState() public method

Custom constructor using a status and a name.
public EndState ( FlowExecutionStatus status, string name ) : System
status FlowExecutionStatus The FlowExecutionStatus to end with
name string The name of the state
return System

EndState() public method

Custom constructor using a status, a code and a name.
public EndState ( FlowExecutionStatus status, string code, string name ) : System
status FlowExecutionStatus The FlowExecutionStatus to end with
code string
name string The name of the state
return System

EndState() public method

Custom constructor using a status, a code, a name and an abandon flag.
public EndState ( FlowExecutionStatus status, string code, string name, bool abandon ) : System
status FlowExecutionStatus The FlowExecutionStatus to end with
code string
name string The name of the state
abandon bool flag to indicate that previous step execution can be marked as abandoned (if there is one)
return System

EndState() public method

Custom constructor using a name.
public EndState ( string name ) : System
name string
return System

Handle() public method

Returns the FlowExecutionStatus stored. @see IState#Handle
 
public Handle ( IFlowExecutor executor ) : FlowExecutionStatus
executor IFlowExecutor
return FlowExecutionStatus

IsEndState() public method

@see IState#IsEndState .
public IsEndState ( ) : bool
return bool

SetExitStatus() protected method

Performs any logic to update the exit status for the current flow.
protected SetExitStatus ( IFlowExecutor executor, string code ) : void
executor IFlowExecutor FlowExecutor for the current flow
code string The exit status to save
return void

ToString() public method

ToString override.
public ToString ( ) : string
return string