C# Class Brunet.Applications.MultiNode

This class provides a layer on top of BasicNode to support creating multiple Brunet.Nodes in a single application.
Inheritance: BasicNode
Show file Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_count int
_nodes List
_threads List

Public Methods

Method Description
MultiNode ( NodeConfig node_config, int count ) : System
Run ( ) : void

This is where the magic happens! Sets up Shutdown, creates all the nodes, and call Connect on them in separate threads.

Protected Methods

Method Description
StopPem ( System.DateTime now ) : void

All nodes are disconnected? Stop the PathEL.

Method Details

MultiNode() public method

public MultiNode ( NodeConfig node_config, int count ) : System
node_config NodeConfig
count int
return System

Run() public method

This is where the magic happens! Sets up Shutdown, creates all the nodes, and call Connect on them in separate threads.
public Run ( ) : void
return void

StopPem() protected method

All nodes are disconnected? Stop the PathEL.
protected StopPem ( System.DateTime now ) : void
now System.DateTime
return void

Property Details

_count protected property

The total amount of Brunet.Nodes.
protected int _count
return int

_nodes protected property

Contains a list of all the ApplicationNodes.
protected List _nodes
return List

_threads protected property

Contains a list of all the Brunet.Nodes Connect calls.
protected List _threads
return List