Class MasterService
- Namespace
- Dynamicweb.LoadBalancing.Service
- Assembly
- Dynamicweb.Core.dll
This service handles all external communication of commands to other nodes in the cluster.
public static class MasterService
- Inheritance
-
MasterService
- Inherited Members
Properties
State
Indicates if the Load Balancing has been initialized.
public static LoadBalancingState State { get; }
Property Value
Methods
BroadcastChanges()
Broadcasts all changes enqueued to all connected nodes.
public static void BroadcastChanges()
EnqueueChange(string, string)
Enqueues a command to be sent to connected nodes.
public static void EnqueueChange(string serviceName, string commandValue)
Parameters
serviceName
stringName of service used to invalidate
commandValue
stringValue passed to the service
ForceBroadcastClusterUpdate()
Forcefully enqueues an invalidation of the cluster and broadcasts all current commends.
public static void ForceBroadcastClusterUpdate()
Initialize(ClusterNode)
Initializes the load balancing framework, setting the provided node as self.
public static void Initialize(ClusterNode node)
Parameters
node
ClusterNodeSelf