C# Class Brunet.Symphony.StructuredNearConnectionOverlord

Inheritance: Brunet.Connections.ConnectionOverlord
Show file Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
DESIRED_NEIGHBORS int

Protected Properties

Property Type Description
STRUC_NEAR string
TRIM_DELAY double
_DEFAULT_RETRY_INTERVAL System.TimeSpan
_MAX_RETRY_INTERVAL System.TimeSpan
_active int
_connectors System.Collections.Hashtable
_current_retry_interval System.TimeSpan
_last_connection_time System.DateTime
_last_retry_time System.DateTime
_need_left int
_need_right int
_rand System.Random
_start_time System.DateTime
_sync object
_ta_auth TAAuthorizer

Public Methods

Method Description
Activate ( ) : void
HandleCtmResponse ( Connector c, ISender ret_path, ConnectToMessage ctm_resp ) : bool
StructuredNearConnectionOverlord ( Node n ) : System

Protected Methods

Method Description
CheckForNearerNeighbors ( ConnectionList structs, IEnumerable neighbors, Address &nltarget, Address &nrtarget ) : void
CheckState ( object node, EventArgs eargs ) : void
ConnectHandler ( object contab, EventArgs eargs ) : void
ConnectTo ( ISender sender, Address target, string contype, int responses ) : void
ConnectToNearer ( ConnectionList cl, Address forwarder, IEnumerable ni ) : void
ConnectToNearer ( ConnectionList structs, IDictionary target_to_for, IEnumerable neighs ) : void
ConnectorEndHandler ( object connector, EventArgs args ) : void
DisconnectHandler ( object connectiontable, EventArgs args ) : void
GetConnectToMessage ( string ConnectionType, string token ) : ConnectToMessage
GetSelfTarget ( ) : Address
StatusChangedHandler ( Connection c, ConnectionState>.Brunet oldnew ) : void
TrimConnections ( ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

CheckForNearerNeighbors() protected method

protected CheckForNearerNeighbors ( ConnectionList structs, IEnumerable neighbors, Address &nltarget, Address &nrtarget ) : void
structs ConnectionList
neighbors IEnumerable
nltarget Address
nrtarget Address
return void

CheckState() protected method

protected CheckState ( object node, EventArgs eargs ) : void
node object
eargs System.EventArgs
return void

ConnectHandler() protected method

protected ConnectHandler ( object contab, EventArgs eargs ) : void
contab object
eargs System.EventArgs
return void

ConnectTo() protected method

protected ConnectTo ( ISender sender, Address target, string contype, int responses ) : void
sender ISender
target Address
contype string
responses int
return void

ConnectToNearer() protected method

protected ConnectToNearer ( ConnectionList cl, Address forwarder, IEnumerable ni ) : void
cl ConnectionList
forwarder Address
ni IEnumerable
return void

ConnectToNearer() protected method

protected ConnectToNearer ( ConnectionList structs, IDictionary target_to_for, IEnumerable neighs ) : void
structs ConnectionList
target_to_for IDictionary
neighs IEnumerable
return void

ConnectorEndHandler() protected method

protected ConnectorEndHandler ( object connector, EventArgs args ) : void
connector object
args System.EventArgs
return void

DisconnectHandler() protected method

protected DisconnectHandler ( object connectiontable, EventArgs args ) : void
connectiontable object
args System.EventArgs
return void

GetConnectToMessage() protected method

protected GetConnectToMessage ( string ConnectionType, string token ) : ConnectToMessage
ConnectionType string
token string
return Brunet.Connections.ConnectToMessage

GetSelfTarget() protected method

protected GetSelfTarget ( ) : Address
return Address

HandleCtmResponse() public method

public HandleCtmResponse ( Connector c, ISender ret_path, ConnectToMessage ctm_resp ) : bool
c Brunet.Connections.Connector
ret_path ISender
ctm_resp Brunet.Connections.ConnectToMessage
return bool

StatusChangedHandler() protected method

protected StatusChangedHandler ( Connection c, ConnectionState>.Brunet oldnew ) : void
c Brunet.Connections.Connection
oldnew ConnectionState>.Brunet
return void

StructuredNearConnectionOverlord() public method

public StructuredNearConnectionOverlord ( Node n ) : System
n Node
return System

TrimConnections() protected method

protected TrimConnections ( ) : void
return void

Property Details

DESIRED_NEIGHBORS static public property

static public int DESIRED_NEIGHBORS
return int

STRUC_NEAR static protected property

static protected string STRUC_NEAR
return string

TRIM_DELAY static protected property

static protected double TRIM_DELAY
return double

_DEFAULT_RETRY_INTERVAL static protected property

static protected TimeSpan,System _DEFAULT_RETRY_INTERVAL
return System.TimeSpan

_MAX_RETRY_INTERVAL static protected property

static protected TimeSpan,System _MAX_RETRY_INTERVAL
return System.TimeSpan

_active protected property

protected int _active
return int

_connectors protected property

protected Hashtable,System.Collections _connectors
return System.Collections.Hashtable

_current_retry_interval protected property

protected TimeSpan,System _current_retry_interval
return System.TimeSpan

_last_connection_time protected property

protected DateTime,System _last_connection_time
return System.DateTime

_last_retry_time protected property

protected DateTime,System _last_retry_time
return System.DateTime

_need_left protected property

protected int _need_left
return int

_need_right protected property

protected int _need_right
return int

_rand protected property

protected Random,System _rand
return System.Random

_start_time protected property

protected DateTime,System _start_time
return System.DateTime

_sync protected property

protected object _sync
return object

_ta_auth protected static property

protected static TAAuthorizer _ta_auth
return TAAuthorizer