Naanou.LookupService
Class Config

Handles configuration and user settings for the Lookup (Chord) service

Field Summary
string BOOT_STRAP_URIS
string BOOTSTRAP_MAX_SIZE
int bootstrapMaximumSize
string bootStrapURI
string DISCOVERY_BCAST_WAIT
string DISCOVERY_METHODS
string DISCOVERY_MIN
int discoveryBroadcastWait
string discoveryMethods
int discoveryMin
string FIREWALL_DEPTH
Naanou.LookupService.Config.FirewallDepth firewallDepth
bool initialized
string LOG_LEVEL
Naanou.Common.LogLevel logLevel
string MANUAL_BOOT_NDOES
string manualBootNodes
string MULTICAST_ADDRESS
string MULTICAST_TTL
System.Net.IPAddress multicastAddress
int multicastTTL
string NAT_GATEWAY
string natGateway
string NODE_CHECK_FREQUENCY
int nodeCheckFrequency
string RE_DISCOVERY_TIMEOUT
int reDiscoveryTimeout
string STRONG_STABILISE_RATIO
int strongStabiliseRatio
string transport
string TRANSPORT
string WEAK_STABILISE_FREQUENCY
int weakStabiliseFrequency

Constructor Summary
Config()
        Initializes a new instance of the Config class.

Property Summary
int BootStrapMaximumSize
         Gets the maximum size (in bytes) that a bootstrap file can be for it to be parsed
string BootStraps
         Bootstraps
int DiscoveryBroadcastWait
         How many seconds we should wait for discovery broadcast replies
string DiscoveryMethods
         Discovery methods
int DiscoveryMin
         How many nodes are required to abort discovery process
Naanou.LookupService.Config.FirewallDepth Firewall
         Firewall depth
Naanou.Common.LogLevel LogLevel
         Logging level
string ManualBootNodes
         Space delimited list of manual boot nodes
int MaximumNetworkSize
         Maximum anticipated network size. Not a hard requirement - used for tuning
System.Net.IPAddress MulticastAddress
         Multicast address
int MulticastTtl
         Multicast TTL
string NATGateway
         NAT Gateway
int NodeCheckFrequency
         How many seconds a node is considered alive for after last check.
int ReDiscoveryTimeout
         How many minutes we should wait between fruitless discovery runs
int StrongStabiliseRatio
         For every strong stabilisation, how many weak stabilisations should be done
string Transport
         Transport
int WeakStabiliseFrequency
         How often (seconds) weak stabilisation should be done

Method Summary
object IConfigurationSectionHandler.Create(object parent, object configContext, System.Xml.XmlNode section)
void Initialize()
string ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, string defaultValue)
         Reads string setting
bool ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, bool defaultValue)
         Reads boolean setting
int ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, int defaultValue)
         Reads int setting
System.Net.IPAddress ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, System.Net.IPAddress defaultValue)
         Reads System.Net.IPAddress setting
Naanou.LookupService.Config.FirewallDepth ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, Naanou.LookupService.Config.FirewallDepth defaultValue)
         Reads setting
Naanou.Common.LogLevel ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, Naanou.Common.LogLevel defaultValue)
         Reads setting
System.Uri ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, System.Uri defaultValue)
         Reads Uri setting

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

BOOT_STRAP_URIS

private string BOOT_STRAP_URIS


BOOTSTRAP_MAX_SIZE

private string BOOTSTRAP_MAX_SIZE


bootstrapMaximumSize

private int bootstrapMaximumSize


bootStrapURI

private string bootStrapURI


DISCOVERY_BCAST_WAIT

private string DISCOVERY_BCAST_WAIT


DISCOVERY_METHODS

private string DISCOVERY_METHODS


DISCOVERY_MIN

private string DISCOVERY_MIN


discoveryBroadcastWait

private int discoveryBroadcastWait


discoveryMethods

private string discoveryMethods


discoveryMin

private int discoveryMin


FIREWALL_DEPTH

private string FIREWALL_DEPTH


firewallDepth

private Naanou.LookupService.Config.FirewallDepth firewallDepth


initialized

private bool initialized


LOG_LEVEL

private string LOG_LEVEL


logLevel

private Naanou.Common.LogLevel logLevel


MANUAL_BOOT_NDOES

private string MANUAL_BOOT_NDOES


manualBootNodes

private string manualBootNodes


MULTICAST_ADDRESS

private string MULTICAST_ADDRESS


MULTICAST_TTL

private string MULTICAST_TTL


multicastAddress

private System.Net.IPAddress multicastAddress


multicastTTL

private int multicastTTL


NAT_GATEWAY

private string NAT_GATEWAY


natGateway

private string natGateway


NODE_CHECK_FREQUENCY

private string NODE_CHECK_FREQUENCY


nodeCheckFrequency

private int nodeCheckFrequency


RE_DISCOVERY_TIMEOUT

private string RE_DISCOVERY_TIMEOUT


reDiscoveryTimeout

private int reDiscoveryTimeout


STRONG_STABILISE_RATIO

private string STRONG_STABILISE_RATIO


strongStabiliseRatio

private int strongStabiliseRatio


transport

private string transport


TRANSPORT

private string TRANSPORT


WEAK_STABILISE_FREQUENCY

private string WEAK_STABILISE_FREQUENCY


weakStabiliseFrequency

private int weakStabiliseFrequency

Constructor Detail

Config

public Config()

Initializes a new instance of the Config class.

Property Detail

BootStrapMaximumSize

public int BootStrapMaximumSize

Gets the maximum size (in bytes) that a bootstrap file can be for it to be parsed


BootStraps

public string BootStraps

Bootstraps


DiscoveryBroadcastWait

public int DiscoveryBroadcastWait

How many seconds we should wait for discovery broadcast replies


DiscoveryMethods

public string DiscoveryMethods

Discovery methods


DiscoveryMin

public int DiscoveryMin

How many nodes are required to abort discovery process


Firewall

public Naanou.LookupService.Config.FirewallDepth Firewall

Firewall depth


LogLevel

public Naanou.Common.LogLevel LogLevel

Logging level


ManualBootNodes

public string ManualBootNodes

Space delimited list of manual boot nodes


MaximumNetworkSize

public int MaximumNetworkSize

Maximum anticipated network size. Not a hard requirement - used for tuning


MulticastAddress

public System.Net.IPAddress MulticastAddress

Multicast address


MulticastTtl

public int MulticastTtl

Multicast TTL


NATGateway

public string NATGateway

NAT Gateway


NodeCheckFrequency

public int NodeCheckFrequency

How many seconds a node is considered alive for after last check.


ReDiscoveryTimeout

public int ReDiscoveryTimeout

How many minutes we should wait between fruitless discovery runs


StrongStabiliseRatio

public int StrongStabiliseRatio

For every strong stabilisation, how many weak stabilisations should be done


Transport

public string Transport

Transport


WeakStabiliseFrequency

public int WeakStabiliseFrequency

How often (seconds) weak stabilisation should be done

Method Detail

IConfigurationSectionHandler.Create

private object IConfigurationSectionHandler.Create(object parent,
                                                   object configContext,
                                                   System.Xml.XmlNode section)


Initialize

private void Initialize()


ReadSetting

public string ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                          string key,
                          string defaultValue)

Reads string setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value

ReadSetting

public bool ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                        string key,
                        bool defaultValue)

Reads boolean setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value

ReadSetting

public int ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                       string key,
                       int defaultValue)

Reads int setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value

ReadSetting

public System.Net.IPAddress ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                                        string key,
                                        System.Net.IPAddress defaultValue)

Reads System.Net.IPAddress setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value

ReadSetting

public Naanou.LookupService.Config.FirewallDepth ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                                                             string key,
                                                             Naanou.LookupService.Config.FirewallDepth defaultValue)

Reads setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value

ReadSetting

public Naanou.Common.LogLevel ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                                          string key,
                                          Naanou.Common.LogLevel defaultValue)

Reads setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value

ReadSetting

public System.Uri ReadSetting(System.Collections.Specialized.NameValueCollection settings,
                              string key,
                              System.Uri defaultValue)

Reads Uri setting

Parameters:
settings - Settings
key - Key
defaultValue - Default value
Returns:
Read setting, or default value