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
Properties
CurrentNode
public ClusterNode? CurrentNode { get; }
Property Value
HostName
public string HostName { get; }
Property Value
IpAddress
public string IpAddress { get; }
Property Value
State
Indicates if the Load Balancing has been initialized.
public LoadBalancingState State { get; }
Property Value
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
Returns
Delete(int)
Removes a node from the Network Load Balancing setup.
public bool Delete(int id)
Parameters
idintId of node
Returns
GetAll()
Yields all nodes in the Network Load Balancing setup.
public IEnumerable<ClusterNode> GetAll()
Returns
GetNode(int)
Yields a node specified by host name.
public ClusterNode? GetNode(int id)
Parameters
idint
Returns
Read(int)
Yields a node specified by id.
public ClusterNode? Read(int id)
Parameters
idintId of node
Returns
Update(ClusterNode)
Updates the specified node by persisting it.
public bool Update(ClusterNode node)
Parameters
nodeClusterNodeNode to be saved
Returns
UpdateTimestamp(ClusterNode)
Updates the specified node, by persisting it.
public bool UpdateTimestamp(ClusterNode node)
Parameters
nodeClusterNodeNode to be saved