public class DescribeYarnQueueResponse extends AbstractModel
header, skipSign
Constructor and Description |
---|
DescribeYarnQueueResponse() |
DescribeYarnQueueResponse(DescribeYarnQueueResponse source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getQueue()
Get 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
```
Name string `json:"name"` //队列名称
```
- `Name`:字段名
- `string`:字段类型
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
- `//`:后面的注释内容对应页面上看到的名称
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
- 公平调度器
```
type QueueWithConfigSetForFairScheduler struct {
Name string `json:"name"` //队列名称
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
ParentId string `json:"parentId"` // 父队列Id
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
IsRoot *bool `json:"isRoot"` // 是否是root队列
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
}
type AclForYarnQueue struct {
User *string `json:"user"` //用户名
Group *string `json:"group"`//组名
}
type ConfigSetForFairScheduler struct {
Name string `json:"name"` // 配置集名称
MinResources *YarnResource `json:"minResources"` // 最小资源量
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
Weight *float32 `json:"weight"` // 权重
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
}
type YarnResource struct {
Vcores *int `json:"vcores"`
Memory *int `json:"memory"`
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
}
```
- 容量调度器
```
type QueueForCapacitySchedulerV3 struct {
Name string `json:"name"` // 队列名称
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
ParentId string `json:"parentId"` // 父队列Id
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
State *string `json:"state"` // 资源池状态
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
IsRoot *bool `json:"isRoot"` // 是否是root队列
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
}
type ConfigForCapacityV3 struct {
Name string `json:"configName"` // 配置集名称
Labels []CapacityLabel `json:"labels"` // 标签信息
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
}
type CapacityLabel struct {
Name string `json:"labelName"`
Capacity *float32 `json:"capacity"` // 容量
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
}
type AclForYarnQueue struct {
User *string `json:"user"` //用户名
Group *string `json:"group"`//组名
}
```
|
String |
getRequestId()
Get 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
String |
getVersion()
Get 版本
|
void |
setQueue(String Queue)
Set 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
```
Name string `json:"name"` //队列名称
```
- `Name`:字段名
- `string`:字段类型
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
- `//`:后面的注释内容对应页面上看到的名称
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
- 公平调度器
```
type QueueWithConfigSetForFairScheduler struct {
Name string `json:"name"` //队列名称
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
ParentId string `json:"parentId"` // 父队列Id
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
IsRoot *bool `json:"isRoot"` // 是否是root队列
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
}
type AclForYarnQueue struct {
User *string `json:"user"` //用户名
Group *string `json:"group"`//组名
}
type ConfigSetForFairScheduler struct {
Name string `json:"name"` // 配置集名称
MinResources *YarnResource `json:"minResources"` // 最小资源量
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
Weight *float32 `json:"weight"` // 权重
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
}
type YarnResource struct {
Vcores *int `json:"vcores"`
Memory *int `json:"memory"`
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
}
```
- 容量调度器
```
type QueueForCapacitySchedulerV3 struct {
Name string `json:"name"` // 队列名称
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
ParentId string `json:"parentId"` // 父队列Id
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
State *string `json:"state"` // 资源池状态
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
IsRoot *bool `json:"isRoot"` // 是否是root队列
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
}
type ConfigForCapacityV3 struct {
Name string `json:"configName"` // 配置集名称
Labels []CapacityLabel `json:"labels"` // 标签信息
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
}
type CapacityLabel struct {
Name string `json:"labelName"`
Capacity *float32 `json:"capacity"` // 容量
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
}
type AclForYarnQueue struct {
User *string `json:"user"` //用户名
Group *string `json:"group"`//组名
}
```
|
void |
setRequestId(String RequestId)
Set 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
void |
setVersion(String Version)
Set 版本
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DescribeYarnQueueResponse()
public DescribeYarnQueueResponse(DescribeYarnQueueResponse source)
public String getQueue()
public void setQueue(String Queue)
Queue
- 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
```
Name string `json:"name"` //队列名称
```
- `Name`:字段名
- `string`:字段类型
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
- `//`:后面的注释内容对应页面上看到的名称
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
- 公平调度器
```
type QueueWithConfigSetForFairScheduler struct {
Name string `json:"name"` //队列名称
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
ParentId string `json:"parentId"` // 父队列Id
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
IsRoot *bool `json:"isRoot"` // 是否是root队列
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
}
type AclForYarnQueue struct {
User *string `json:"user"` //用户名
Group *string `json:"group"`//组名
}
type ConfigSetForFairScheduler struct {
Name string `json:"name"` // 配置集名称
MinResources *YarnResource `json:"minResources"` // 最小资源量
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
Weight *float32 `json:"weight"` // 权重
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
}
type YarnResource struct {
Vcores *int `json:"vcores"`
Memory *int `json:"memory"`
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
}
```
- 容量调度器
```
type QueueForCapacitySchedulerV3 struct {
Name string `json:"name"` // 队列名称
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
ParentId string `json:"parentId"` // 父队列Id
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
State *string `json:"state"` // 资源池状态
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
IsRoot *bool `json:"isRoot"` // 是否是root队列
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
}
type ConfigForCapacityV3 struct {
Name string `json:"configName"` // 配置集名称
Labels []CapacityLabel `json:"labels"` // 标签信息
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
}
type CapacityLabel struct {
Name string `json:"labelName"`
Capacity *float32 `json:"capacity"` // 容量
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
}
type AclForYarnQueue struct {
User *string `json:"user"` //用户名
Group *string `json:"group"`//组名
}
```public String getVersion()
public void setVersion(String Version)
Version
- 版本public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。Copyright © 2024. All rights reserved.