C# Class Brunet.Applications.NodeConfig

Mostrar archivo Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
BrunetNamespace String
EdgeListeners EdgeListener[]
NCService NCServiceConfig
NodeAddress String
PrivateNodeConfig PrivateNodeConfig
Security SecurityPolicy
XmlRpcManager Service
XmppServices XmppConfig

Public Methods

Method Description
GetPrivateNodeConfig ( NodeConfig nc ) : NodeConfig

Create a new node config given a public node config and a private node config, used to generate the private node.

NodeConfig ( ) : System
ReadConfig ( string path ) : NodeConfig

Read a NodeConfig, if it fails, then let's find the problem.

WriteConfig ( ) : bool

Writres the config to the file system.

Method Details

GetPrivateNodeConfig() public static method

Create a new node config given a public node config and a private node config, used to generate the private node.
public static GetPrivateNodeConfig ( NodeConfig nc ) : NodeConfig
nc NodeConfig
return NodeConfig

NodeConfig() public method

public NodeConfig ( ) : System
return System

ReadConfig() public static method

Read a NodeConfig, if it fails, then let's find the problem.
public static ReadConfig ( string path ) : NodeConfig
path string
return NodeConfig

WriteConfig() public method

Writres the config to the file system.
public WriteConfig ( ) : bool
return bool

Property Details

BrunetNamespace public_oe property

This is equivalent to Node.Realm, only Nodes in the same realm can communicate with each other. Required.
public String BrunetNamespace
return String

EdgeListeners public_oe property

A list of local end points. At least one local end point is required.
public EdgeListener[] EdgeListeners
return EdgeListener[]

NCService public_oe property

public NCServiceConfig NCService
return NCServiceConfig

NodeAddress public_oe property

A stored Node.Address for later re-use. This will be generated by the application and should never be manually entered.
public String NodeAddress
return String

PrivateNodeConfig public_oe property

public PrivateNodeConfig,Brunet.Applications PrivateNodeConfig
return PrivateNodeConfig

Security public_oe property

public SecurityPolicy Security
return SecurityPolicy

XmlRpcManager public_oe property

Specifies XmlRpc configuration. This is optional and only required if XmlRpc is desired.
public Service XmlRpcManager
return Service

XmppServices public_oe property

public XmppConfig XmppServices
return XmppConfig