public static interface LoadBalancer.DefinitionStages.WithLoadBalancingRule
| Modifier and Type | Method and Description |
|---|---|
LoadBalancingRule.DefinitionStages.Blank<LoadBalancer.DefinitionStages.WithLoadBalancingRuleOrCreate> |
defineLoadBalancingRule(String name)
Begins the definition of a new load balancing rule to add to the load balancer.
|
LoadBalancer.DefinitionStages.WithLoadBalancingRuleOrCreate |
withLoadBalancingRule(int port,
TransportProtocol protocol)
Creates a load balancing rule for the specified port and protocol and default frontend and backend associations.
|
LoadBalancer.DefinitionStages.WithLoadBalancingRuleOrCreate |
withLoadBalancingRule(int frontendPort,
TransportProtocol protocol,
int backendPort)
Creates a load balancing rule between the specified front end and back end ports and protocol.
|
LoadBalancer.DefinitionStages.WithLoadBalancingRuleOrCreate withLoadBalancingRule(int frontendPort, TransportProtocol protocol, int backendPort)
The new rule will be assigned an automatically generated name.
frontendPort - the port number on the front end to accept incoming traffic onprotocol - the protocol to load balancebackendPort - the port number on the back end to send load balanced traffic toLoadBalancer.DefinitionStages.WithLoadBalancingRuleOrCreate withLoadBalancingRule(int port, TransportProtocol protocol)
The load balancing rule will created under the name "default". It will reference a backend, a frontend, and a load balancing probe all named "default".
port - the port number on the front and back end for the network traffic to be load balanced onprotocol - the protocol to load balanceLoadBalancingRule.DefinitionStages.Blank<LoadBalancer.DefinitionStages.WithLoadBalancingRuleOrCreate> defineLoadBalancingRule(String name)
The definition must be completed with a call to Attachable.InDefinition.attach()
name - the name of the load balancing rule/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/