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
Afficher le fichier Open project: SummerBatch/SummerBatch

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
SetExitStatus ( IFlowExecutor executor, string code ) : void

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

Method Details

EndState() public méthode

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
Résultat System

EndState() public méthode

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
Résultat System

EndState() public méthode

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)
Résultat System

EndState() public méthode

Custom constructor using a name.
public EndState ( string name ) : System
name string
Résultat System

Handle() public méthode

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

IsEndState() public méthode

@see IState#IsEndState .
public IsEndState ( ) : bool
Résultat bool

SetExitStatus() protected méthode

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
Résultat void

ToString() public méthode

ToString override.
public ToString ( ) : string
Résultat string