MySQL Connector/Net
ReplicationServerGroup Class |
Base class used to implement load balancing features
Inheritance Hierarchy
SystemObject MySql.Data.MySqlClient.ReplicationReplicationServerGroup
MySql.Data.MySqlClient.ReplicationReplicationRoundRobinServerGroup
MySql.Data.MySqlClient.ReplicationReplicationRoundRobinServerGroup
Namespace: MySql.Data.MySqlClient.Replication
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
The ReplicationServerGroup type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReplicationServerGroup |
Properties
Name | Description | |
---|---|---|
Name |
Group name
| |
RetryTime |
Retry time between connections to failed servers
| |
Servers |
Servers list in the group
|
Methods
Name | Description | |
---|---|---|
AddServer |
Adds a server into the group
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetServer(Boolean) |
Must be implemented. Defines the next server for a custom load balancing implementation.
| |
GetServer(String) |
Gets a server by name
| |
GetServer(Boolean, MySqlConnectionStringBuilder) | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleFailover(ReplicationServer) |
Handles a failed connection to a server.
This method can be overrided to implement a custom failover handling
| |
HandleFailover(ReplicationServer, Exception) |
Handles a failed connection to a server.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveServer |
Removes a server from group
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
See Also