C# Class BatchFlow.Flow

显示文件 Open project: Teun/BatchFlow Class Usage Examples

Public Properties

Property Type Description
DefaultPriority ThreadPriority
DefaultStreamSize int

Protected Properties

Property Type Description
log log4net.ILog

Private Properties

Property Type Description
CheckValidity void
DecrementInProcess void
IncrementInProcess void
OnError void

Public Methods

Method Description
AddNode ( TaskNode newNode ) : void
AddNode ( TaskNode newNode, Position position ) : void

Add a node to the flow. Nodes may only be included once per flow

ConnectNodeByJoin ( TaskNode start, TaskNode end, int outNr ) : void
ConnectNodes ( TaskNode publisher, TaskNode reader, int streamNumber ) : BoundedBlockingQueue
ConnectNodes ( TaskNode publisher, TaskNode reader, int streamNumber, int queueSize ) : BoundedBlockingQueue

Flow ( ) : System
FromAsciiArt ( string art ) : Flow
FromAsciiArt ( string art, TaskNode>.IDictionary nodes ) : Flow
GetStateSnapshot ( ) : FlowState
GetStream ( string toTask ) : BoundedBlockingQueue
GetTask ( string name ) : TaskNode
RunToCompletion ( ) : void
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
CheckValidity ( ) : void
DecrementInProcess ( ) : void
IncrementInProcess ( ) : void
OnError ( TaskNode node, Exception exc, object item, bool &stopProcessing ) : void

Method Details

AddNode() public method

public AddNode ( TaskNode newNode ) : void
newNode TaskNode
return void

AddNode() public method

Add a node to the flow. Nodes may only be included once per flow
public AddNode ( TaskNode newNode, Position position ) : void
newNode TaskNode
position Position
return void

ConnectNodeByJoin() public method

public ConnectNodeByJoin ( TaskNode start, TaskNode end, int outNr ) : void
start TaskNode
end TaskNode
outNr int
return void

ConnectNodes() public method

public ConnectNodes ( TaskNode publisher, TaskNode reader, int streamNumber ) : BoundedBlockingQueue
publisher TaskNode
reader TaskNode
streamNumber int
return BoundedBlockingQueue

ConnectNodes() public method

public ConnectNodes ( TaskNode publisher, TaskNode reader, int streamNumber, int queueSize ) : BoundedBlockingQueue
publisher TaskNode
reader TaskNode
streamNumber int
queueSize int
return BoundedBlockingQueue

Flow() public method

public Flow ( ) : System
return System

FromAsciiArt() public static method

public static FromAsciiArt ( string art ) : Flow
art string
return Flow

FromAsciiArt() public static method

public static FromAsciiArt ( string art, TaskNode>.IDictionary nodes ) : Flow
art string
nodes TaskNode>.IDictionary
return Flow

GetStateSnapshot() public method

public GetStateSnapshot ( ) : FlowState
return FlowState

GetStream() public method

public GetStream ( string toTask ) : BoundedBlockingQueue
toTask string
return BoundedBlockingQueue

GetTask() public method

public GetTask ( string name ) : TaskNode
name string
return TaskNode

RunToCompletion() public method

public RunToCompletion ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

DefaultPriority public_oe static_oe property

public static ThreadPriority DefaultPriority
return ThreadPriority

DefaultStreamSize public_oe static_oe property

public static int DefaultStreamSize
return int

log protected_oe static_oe property

protected static log4net.ILog log
return log4net.ILog