public class RoGroupAttr extends AbstractModel
Constructor and Description |
---|
RoGroupAttr() |
Modifier and Type | Method and Description |
---|---|
Long |
getMinRoInGroup()
Get Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group.
|
String |
getRoGroupName()
Get RO group name.
|
Long |
getRoMaxDelayTime()
Get Maximum delay threshold for RO instances in seconds.
|
Long |
getRoOfflineDelay()
Get Whether to enable instance removal.
|
String |
getWeightMode()
Get Weighting mode.
|
void |
setMinRoInGroup(Long MinRoInGroup)
Set Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group.
|
void |
setRoGroupName(String RoGroupName)
Set RO group name.
|
void |
setRoMaxDelayTime(Long RoMaxDelayTime)
Set Maximum delay threshold for RO instances in seconds.
|
void |
setRoOfflineDelay(Long RoOfflineDelay)
Set Whether to enable instance removal.
|
void |
setWeightMode(String WeightMode)
Set Weighting mode.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getRoGroupName()
public void setRoGroupName(String RoGroupName)
RoGroupName
- RO group name.public Long getRoMaxDelayTime()
public void setRoMaxDelayTime(Long RoMaxDelayTime)
RoMaxDelayTime
- Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group.public Long getRoOfflineDelay()
public void setRoOfflineDelay(Long RoOfflineDelay)
RoOfflineDelay
- Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set.public Long getMinRoInGroup()
public void setMinRoInGroup(Long MinRoInGroup)
MinRoInGroup
- Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed.public String getWeightMode()
public void setWeightMode(String WeightMode)
WeightMode
- Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set.Copyright © 2020. All rights reserved.