Class ClusterService
- Namespace
- Dynamicweb.Load
Balancing .Data
- Assembly
- Dynamicweb.Core.dll
Service for working with the cluster / network load balancing nodes.
- Inheritance
-
Cluster
Service
- Inherited Members
Properties
CurrentNode
Property Value
Methods
ClearCache()
Create(string, string)
Creates a new node in the Network Load Balancing setup.
Parameters
Returns
- Cluster
Node hasPersistedNewNode
Delete(int)
Removes a node from the Network Load Balancing setup.
Parameters
id
intId of node
Returns
- bool
hasRemovedNodeFromCluster
GetAll()
Yields all nodes in the Network Load Balancing setup.
Returns
- IEnumerable<Cluster
Node > nodes
GetByHostname(string)
Parameters
hostName
string
Returns
GetByIP(string)
Parameters
ip
string
Returns
GetNode(int)
Yields a node specified by host name.
Parameters
id
int
Returns
- Cluster
Node node
Read(int)
Yields a node specified by id.
Parameters
id
intId of node
Returns
- Cluster
Node node
Update(ClusterNode)
Updates the specified node, by persisting it.
Parameters
node
ClusterNode Node to be saved
Returns
- bool
hasBeenUpdated
UpdateTimestamp(ClusterNode)
Updates the specified node, by persisting it.
Parameters
node
ClusterNode Node to be saved
Returns
- bool
hasBeenUpdated