LoadBalancerConfiguration Constructor |
This API is preliminary and subject to change.
Namespace: net.openstack.Providers.Rackspace.Objects.LoadBalancersAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public LoadBalancerConfiguration(
string name,
LoadBalancingProtocol protocol,
IEnumerable<LoadBalancerVirtualAddress> virtualAddresses,
IEnumerable<NodeConfiguration> nodes = null,
Nullable<bool> halfClosed = null,
IEnumerable<NetworkItem> accessList = null,
LoadBalancingAlgorithm algorithm = null,
Nullable<bool> connectionLogging = null,
Nullable<bool> contentCaching = null,
ConnectionThrottles connectionThrottle = null,
HealthMonitor healthMonitor = null,
IEnumerable<LoadBalancerMetadataItem> metadata = null,
Nullable<TimeSpan> timeout = null,
SessionPersistence sessionPersistence = null
)
Public Sub New (
name As String,
protocol As LoadBalancingProtocol,
virtualAddresses As IEnumerable(Of LoadBalancerVirtualAddress),
Optional nodes As IEnumerable(Of NodeConfiguration) = Nothing,
Optional halfClosed As Nullable(Of Boolean) = Nothing,
Optional accessList As IEnumerable(Of NetworkItem) = Nothing,
Optional algorithm As LoadBalancingAlgorithm = Nothing,
Optional connectionLogging As Nullable(Of Boolean) = Nothing,
Optional contentCaching As Nullable(Of Boolean) = Nothing,
Optional connectionThrottle As ConnectionThrottles = Nothing,
Optional healthMonitor As HealthMonitor = Nothing,
Optional metadata As IEnumerable(Of LoadBalancerMetadataItem) = Nothing,
Optional timeout As Nullable(Of TimeSpan) = Nothing,
Optional sessionPersistence As SessionPersistence = Nothing
)
public:
LoadBalancerConfiguration(
String^ name,
LoadBalancingProtocol^ protocol,
IEnumerable<LoadBalancerVirtualAddress^>^ virtualAddresses,
IEnumerable<NodeConfiguration^>^ nodes = nullptr,
Nullable<bool> halfClosed = nullptr,
IEnumerable<NetworkItem^>^ accessList = nullptr,
LoadBalancingAlgorithm^ algorithm = nullptr,
Nullable<bool> connectionLogging = nullptr,
Nullable<bool> contentCaching = nullptr,
ConnectionThrottles^ connectionThrottle = nullptr,
HealthMonitor^ healthMonitor = nullptr,
IEnumerable<LoadBalancerMetadataItem^>^ metadata = nullptr,
Nullable<TimeSpan> timeout = nullptr,
SessionPersistence^ sessionPersistence = nullptr
)
new :
name : string *
protocol : LoadBalancingProtocol *
virtualAddresses : IEnumerable<LoadBalancerVirtualAddress> *
?nodes : IEnumerable<NodeConfiguration> *
?halfClosed : Nullable<bool> *
?accessList : IEnumerable<NetworkItem> *
?algorithm : LoadBalancingAlgorithm *
?connectionLogging : Nullable<bool> *
?contentCaching : Nullable<bool> *
?connectionThrottle : ConnectionThrottles *
?healthMonitor : HealthMonitor *
?metadata : IEnumerable<LoadBalancerMetadataItem> *
?timeout : Nullable<TimeSpan> *
?sessionPersistence : SessionPersistence
(* Defaults:
let _nodes = defaultArg nodes null
let _halfClosed = defaultArg halfClosed null
let _accessList = defaultArg accessList null
let _algorithm = defaultArg algorithm null
let _connectionLogging = defaultArg connectionLogging null
let _contentCaching = defaultArg contentCaching null
let _connectionThrottle = defaultArg connectionThrottle null
let _healthMonitor = defaultArg healthMonitor null
let _metadata = defaultArg metadata null
let _timeout = defaultArg timeout null
let _sessionPersistence = defaultArg sessionPersistence null
*)
-> LoadBalancerConfiguration
Parameters
- name
- Type: SystemString
The name of the load balancer. - protocol
- Type: net.openstack.Providers.Rackspace.Objects.LoadBalancersLoadBalancingProtocol
The load balancing protocol to use for this load balancer. - virtualAddresses
- Type: System.Collections.GenericIEnumerableLoadBalancerVirtualAddress
A collection of LoadBalancerVirtualAddress objects describing the virtual addresses to assign to the load balancer. - nodes (Optional)
- Type: System.Collections.GenericIEnumerableNodeConfiguration
A collection of objects describing the nodes in the load balancer. If this value is , the load balancer will be created without any nodes. - halfClosed (Optional)
- Type: SystemNullableBoolean
to enable half-closed support for the load balancer; otherwise, . Half-Closed support provides the ability for one end of the connection to terminate its output, while still receiving data from the other end. Only applies to TCP/TCP_CLIENT_FIRST protocols. - accessList (Optional)
- Type: System.Collections.GenericIEnumerableNetworkItem
A collection of NetworkItem objects describing the access list for the load balancer. If this value is , the load balancer will be created without an access list configured. - algorithm (Optional)
- Type: net.openstack.Providers.Rackspace.Objects.LoadBalancersLoadBalancingAlgorithm
The load balancing algorithm that defines how traffic should be directed between back-end nodes. If this value is , a provider-specific default algorithm will be used. - connectionLogging (Optional)
- Type: SystemNullableBoolean
to enable connection logging; otherwise, . If this value is , a provider-specific default value will be used. - contentCaching (Optional)
- Type: SystemNullableBoolean
to enable content caching; otherwise, . If this value is , a provider-specific default value will be used. - connectionThrottle (Optional)
- Type: net.openstack.Providers.Rackspace.Objects.LoadBalancersConnectionThrottles
A ConnectionThrottles object defining the connection throttling configuration for the load balancer. If this value is , a provider-specific default value will be used. - healthMonitor (Optional)
- Type: net.openstack.Providers.Rackspace.Objects.LoadBalancersHealthMonitor
A HealthMonitor object defining the health monitor to configure for the load balancer. If this value is , the load balancer will be created with no health monitor configured. - metadata (Optional)
- Type: System.Collections.GenericIEnumerableLoadBalancerMetadataItem
A collection of LoadBalancerMetadataItem objects defining the initial metadata for the load balancer. If this value is , the load balancer will be created without any initial custom metadata. - timeout (Optional)
- Type: SystemNullableTimeSpan
The timeout value for the load balancer and communications with its nodes. If this value is , a provider-specific default value will be used. - sessionPersistence (Optional)
- Type: net.openstack.Providers.Rackspace.Objects.LoadBalancersSessionPersistence
A SessionPersistence object defining the session persistence configuration for the load balancer. If this value is , the load balancer will be created with session persistence disabled.
Exceptions Exception | Condition |
---|
ArgumentNullException |
If name is .
-or- If protocol is . -or- If virtualAddresses is . |
ArgumentException |
If name is empty.
-or- If nodes contains any values. -or- If virtualAddresses is empty. -or- If virtualAddresses contains any values. -or- If accessList contains any values. -or- If metadata contains any values. |
ArgumentOutOfRangeException |
If timeout is negative or Zero.
|
Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also