|
Kinetica C# API
Version 7.2.3.1
|
Manages high availability failover for Kinetica connections. More...
Public Member Functions | |
| HAFailoverManager () | |
| Creates a new HAFailoverManager. More... | |
| IList< ClusterAddressInfo > | GetHostAddresses () |
| Gets all cluster addresses. More... | |
| IList< Uri > | GetUrls () |
| Gets the list of URLs of the active head ranks of all clusters. More... | |
| IList< Uri > | GetFailoverUrls () |
| Gets the list of URLs in failover order. More... | |
| ClusterAddressInfo? | GetClusterInfo () |
| Gets the active cluster's information. More... | |
| Uri? | GetUrl () |
| Gets the current active URL. More... | |
| void | AddCluster (ClusterAddressInfo clusterInfo) |
| Adds a cluster address to the manager. More... | |
| void | Initialize (IList< Uri > urls, Kinetica? kinetica=null) |
| Initializes the manager with a list of URLs. More... | |
| Uri | SwitchUrl (Uri oldUrl, int oldNumClusterSwitches, Func< Uri, bool >? isKineticaRunning=null) |
| Switches to the next available cluster URL for HA failover. More... | |
Public Attributes | |
| const int | DefaultHostManagerPort = 9300 |
Properties | |
| bool | DisableFailover [get, set] |
| Whether failover is disabled More... | |
| bool | DisableAutoDiscovery [get, set] |
| Whether auto-discovery is disabled More... | |
| int | HostManagerPort [get, set] |
| Host manager port More... | |
| HAFailoverOrder | FailoverOrder [get, set] |
| HA failover order More... | |
| Regex? | HostnameRegex [get, set] |
| Optional hostname regex for filtering URLs More... | |
| int | HARingSize [get] |
| Gets the number of clusters in the HA ring. More... | |
| int | NumClusterSwitches [get] |
| Gets the number of times the client has switched to a different cluster. More... | |
Manages high availability failover for Kinetica connections.
This class tracks multiple cluster addresses and handles failover logic when a cluster becomes unavailable.
Definition at line 190 of file HAFailover.cs.
|
inline |
Creates a new HAFailoverManager.
Definition at line 239 of file HAFailover.cs.
|
inline |
Adds a cluster address to the manager.
Definition at line 351 of file HAFailover.cs.
|
inline |
Gets the active cluster's information.
Definition at line 319 of file HAFailover.cs.
|
inline |
Gets the list of URLs in failover order.
Definition at line 305 of file HAFailover.cs.
|
inline |
Gets all cluster addresses.
Definition at line 283 of file HAFailover.cs.
|
inline |
Gets the current active URL.
Definition at line 343 of file HAFailover.cs.
|
inline |
Gets the list of URLs of the active head ranks of all clusters.
Definition at line 294 of file HAFailover.cs.
|
inline |
Initializes the manager with a list of URLs.
| urls | The URLs to initialize with |
| kinetica | The Kinetica client for system property queries |
Definition at line 364 of file HAFailover.cs.
|
inline |
Switches to the next available cluster URL for HA failover.
| oldUrl | The URL that was in use when the failure occurred |
| oldNumClusterSwitches | The switch count before this switch was initiated |
| isKineticaRunning | Function to check if Kinetica is running at a URL |
| KineticaException | If failover is not possible |
Definition at line 703 of file HAFailover.cs.
| const int HAFailoverManager.DefaultHostManagerPort = 9300 |
Definition at line 193 of file HAFailover.cs.
|
getset |
Whether auto-discovery is disabled
Definition at line 219 of file HAFailover.cs.
|
getset |
Whether failover is disabled
Definition at line 214 of file HAFailover.cs.
|
getset |
HA failover order
Definition at line 229 of file HAFailover.cs.
|
get |
Gets the number of clusters in the HA ring.
Definition at line 256 of file HAFailover.cs.
|
getset |
Host manager port
Definition at line 224 of file HAFailover.cs.
|
getset |
Optional hostname regex for filtering URLs
Definition at line 234 of file HAFailover.cs.
|
get |
Gets the number of times the client has switched to a different cluster.
Definition at line 270 of file HAFailover.cs.