Table of Contents

Class ClusterService

Namespace
Dynamicweb.LoadBalancing.Clustering
Assembly
Dynamicweb.Core.dll

Service for working with the cluster / network load balancing nodes.

public class ClusterService
Inheritance
ClusterService
Inherited Members

Constructors

ClusterService(string, string)

protected ClusterService(string hostName, string ipAddress)

Parameters

hostName string
ipAddress string

Properties

CurrentNode

public ClusterNode? CurrentNode { get; }

Property Value

ClusterNode

HostName

public string HostName { get; }

Property Value

string

IpAddress

public string IpAddress { get; }

Property Value

string

State

Indicates if the Load Balancing has been initialized.

public LoadBalancingState State { get; }

Property Value

LoadBalancingState

Methods

ClearCache()

public void ClearCache()

Create(string, string)

Creates a new node in the Network Load Balancing setup.

public ClusterNode? Create(string hostName, string ipAddress)

Parameters

hostName string

Host name of the targeted machine

ipAddress string

Returns

ClusterNode

Delete(int)

Removes a node from the Network Load Balancing setup.

public bool Delete(int id)

Parameters

id int

Id of node

Returns

bool

GetAll()

Yields all nodes in the Network Load Balancing setup.

public IEnumerable<ClusterNode> GetAll()

Returns

IEnumerable<ClusterNode>

GetNode(int)

Yields a node specified by host name.

public ClusterNode? GetNode(int id)

Parameters

id int

Returns

ClusterNode

Read(int)

Yields a node specified by id.

public ClusterNode? Read(int id)

Parameters

id int

Id of node

Returns

ClusterNode

Update(ClusterNode)

Updates the specified node by persisting it.

public bool Update(ClusterNode node)

Parameters

node ClusterNode

Node to be saved

Returns

bool

UpdateTimestamp(ClusterNode)

Updates the specified node, by persisting it.

public bool UpdateTimestamp(ClusterNode node)

Parameters

node ClusterNode

Node to be saved

Returns

bool
To top