Modifier and Type | Method and Description |
---|---|
Backend |
build() |
Backend.Builder |
clone() |
String |
getBalancingMode()
Specifies the balancing mode for this backend.
|
Float |
getCapacityScaler()
A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or
CONNECTION).
|
String |
getDescription()
An optional description of this resource.
|
String |
getGroup()
The fully-qualified URL of an Instance Group or Network Endpoint Group resource.
|
Integer |
getMaxConnections()
The max number of simultaneous connections for the group.
|
Integer |
getMaxConnectionsPerEndpoint()
The max number of simultaneous connections that a single backend network endpoint can handle.
|
Integer |
getMaxConnectionsPerInstance()
The max number of simultaneous connections that a single backend instance can handle.
|
Integer |
getMaxRate()
The max requests per second (RPS) of the group.
|
Float |
getMaxRatePerEndpoint()
The max requests per second (RPS) that a single backend network endpoint can handle.
|
Float |
getMaxRatePerInstance()
The max requests per second (RPS) that a single backend instance can handle.
|
Float |
getMaxUtilization()
Used when balancingMode is UTILIZATION.
|
Backend.Builder |
mergeFrom(Backend other) |
Backend.Builder |
setBalancingMode(String balancingMode)
Specifies the balancing mode for this backend.
|
Backend.Builder |
setCapacityScaler(Float capacityScaler)
A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or
CONNECTION).
|
Backend.Builder |
setDescription(String description)
An optional description of this resource.
|
Backend.Builder |
setGroup(String group)
The fully-qualified URL of an Instance Group or Network Endpoint Group resource.
|
Backend.Builder |
setMaxConnections(Integer maxConnections)
The max number of simultaneous connections for the group.
|
Backend.Builder |
setMaxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
The max number of simultaneous connections that a single backend network endpoint can handle.
|
Backend.Builder |
setMaxConnectionsPerInstance(Integer maxConnectionsPerInstance)
The max number of simultaneous connections that a single backend instance can handle.
|
Backend.Builder |
setMaxRate(Integer maxRate)
The max requests per second (RPS) of the group.
|
Backend.Builder |
setMaxRatePerEndpoint(Float maxRatePerEndpoint)
The max requests per second (RPS) that a single backend network endpoint can handle.
|
Backend.Builder |
setMaxRatePerInstance(Float maxRatePerInstance)
The max requests per second (RPS) that a single backend instance can handle.
|
Backend.Builder |
setMaxUtilization(Float maxUtilization)
Used when balancingMode is UTILIZATION.
|
public Backend.Builder mergeFrom(Backend other)
public String getBalancingMode()
For Internal Load Balancing, the default and only supported mode is CONNECTION.
public Backend.Builder setBalancingMode(String balancingMode)
For Internal Load Balancing, the default and only supported mode is CONNECTION.
public Float getCapacityScaler()
This cannot be used for internal load balancing.
public Backend.Builder setCapacityScaler(Float capacityScaler)
This cannot be used for internal load balancing.
public String getDescription()
public Backend.Builder setDescription(String description)
public String getGroup()
For Network Endpoint Groups this defines list of endpoints. All endpoints of Network Endpoint Group must be hosted on instances located in the same zone as the Network Endpoint Group.
Backend service can not contain mix of Instance Group and Network Endpoint Group backends.
Note that you must specify an Instance Group or Network Endpoint Group resource using the fully-qualified URL, rather than a partial URL.
When the BackendService has load balancing scheme INTERNAL, the instance group must be within the same region as the BackendService. Network Endpoint Groups are not supported for INTERNAL load balancing scheme.
public Backend.Builder setGroup(String group)
For Network Endpoint Groups this defines list of endpoints. All endpoints of Network Endpoint Group must be hosted on instances located in the same zone as the Network Endpoint Group.
Backend service can not contain mix of Instance Group and Network Endpoint Group backends.
Note that you must specify an Instance Group or Network Endpoint Group resource using the fully-qualified URL, rather than a partial URL.
When the BackendService has load balancing scheme INTERNAL, the instance group must be within the same region as the BackendService. Network Endpoint Groups are not supported for INTERNAL load balancing scheme.
public Integer getMaxConnections()
This cannot be used for internal load balancing.
public Backend.Builder setMaxConnections(Integer maxConnections)
This cannot be used for internal load balancing.
public Integer getMaxConnectionsPerEndpoint()
This cannot be used for internal load balancing.
public Backend.Builder setMaxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
This cannot be used for internal load balancing.
public Integer getMaxConnectionsPerInstance()
This cannot be used for internal load balancing.
public Backend.Builder setMaxConnectionsPerInstance(Integer maxConnectionsPerInstance)
This cannot be used for internal load balancing.
public Integer getMaxRate()
This cannot be used for internal load balancing.
public Backend.Builder setMaxRate(Integer maxRate)
This cannot be used for internal load balancing.
public Float getMaxRatePerEndpoint()
This cannot be used for internal load balancing.
public Backend.Builder setMaxRatePerEndpoint(Float maxRatePerEndpoint)
This cannot be used for internal load balancing.
public Float getMaxRatePerInstance()
This cannot be used for internal load balancing.
public Backend.Builder setMaxRatePerInstance(Float maxRatePerInstance)
This cannot be used for internal load balancing.
public Float getMaxUtilization()
This cannot be used for internal load balancing.
public Backend.Builder setMaxUtilization(Float maxUtilization)
This cannot be used for internal load balancing.
public Backend build()
public Backend.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.