Interface INodeClientProvider

Assembly: redb.Tsak.Web.Pro.dll

Provides cluster topology and per-node HTTP clients.
Standalone: reads node URLs from config, no redb.
Cluster: reads topology from the redb object tree.

public interface INodeClientProvider : IDisposable

Properties

IsCluster

True if running in cluster mode (multi-cluster topology from the redb object store).

bool IsCluster { get; }

Topology

Current topology snapshot (may be null before first load).

ClusterTopology? Topology { get; }

Methods

GetClient(string)

Get HTTP client for a specific node.

TsakApiClient? GetClient(string nodeId)

GetControlClient(string)

Client for CONTROL operations (force-stop, context restart/stop, module ops) — they can

TsakApiClient? GetControlClient(string nodeId)

LoadTopologyAsync(bool)

Load or refresh topology.

Task<ClusterTopology> LoadTopologyAsync(bool forceRefresh = false)

RemoveNodeAsync(string)

Remove a dead node from cluster registry. No-op in standalone.

Task<bool> RemoveNodeAsync(string nodeId)

SetCordonedAsync(string, bool)

Cordon (true) or uncordon (false) a node for planned maintenance.

Task<bool> SetCordonedAsync(string nodeId, bool cordoned)