Queue
- Implements: IQueue
This class encapsulates and extends the ROS resource type ALIYUN::EHPC::Queue.
Initializers
import com.aliyun.ros.cdk.ehpc.Queue;
Queue.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
// .clusterId(java.lang.String)
// .clusterId(IResolvable)
// .computeNodes(IResolvable)
// .computeNodes(java.util.List<IResolvable)
// .computeNodes(ComputeNodesProperty>)
// .enableScaleIn(java.lang.Boolean)
// .enableScaleIn(IResolvable)
// .enableScaleOut(java.lang.Boolean)
// .enableScaleOut(IResolvable)
// .hostnamePrefix(java.lang.String)
// .hostnamePrefix(IResolvable)
// .hostnameSuffix(java.lang.String)
// .hostnameSuffix(IResolvable)
// .initialCount(java.lang.Number)
// .initialCount(IResolvable)
// .interConnect(java.lang.String)
// .interConnect(IResolvable)
// .maxCount(java.lang.Number)
// .maxCount(IResolvable)
// .minCount(java.lang.Number)
// .minCount(IResolvable)
// .queueName(java.lang.String)
// .queueName(IResolvable)
// .vSwitchIds(IResolvable)
// .vSwitchIds(java.util.List<java.lang.String)
// .vSwitchIds(IResolvable>)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
clusterId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property clusterId: The cluster ID. |
computeNodes | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property computeNodes: The hardware configurations of the compute nodes in the queue. |
enableScaleIn | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableScaleIn: Specifies whether to enable auto scale-in for the queue. |
enableScaleOut | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableScaleOut: Specifies whether to enable auto scale-out for the queue. |
hostnamePrefix | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hostnamePrefix: The hostname prefix of the added compute nodes. |
hostnameSuffix | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hostnameSuffix: The hostname suffix of the compute nodes in the queue. |
initialCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property initialCount: The initial number of compute nodes in the queue. |
interConnect | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property interConnect: The type of the network for interconnecting compute nodes in the queue. |
maxCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maxCount: The maximum number of compute nodes that the queue can contain. |
minCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property minCount: The minimum number of compute nodes that the queue must contain. |
queueName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property queueName: The queue name. |
vSwitchIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property vSwitchIds: The VSwitches available for use by compute nodes in the queue. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
clusterIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterId: The cluster ID.
computeNodesOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ComputeNodesProperty>
Property computeNodes: The hardware configurations of the compute nodes in the queue.
Valid values of N: 1 to 10.
enableScaleInOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableScaleIn: Specifies whether to enable auto scale-in for the queue.
Valid values:
- true
- false.
enableScaleOutOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableScaleOut: Specifies whether to enable auto scale-out for the queue.
Valid values:
- true
- false.
hostnamePrefixOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostnamePrefix: The hostname prefix of the added compute nodes.
hostnameSuffixOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property hostnameSuffix: The hostname suffix of the compute nodes in the queue.
initialCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property initialCount: The initial number of compute nodes in the queue.
interConnectOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property interConnect: The type of the network for interconnecting compute nodes in the queue.
maxCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maxCount: The maximum number of compute nodes that the queue can contain.
minCountOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property minCount: The minimum number of compute nodes that the queue must contain.
queueNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property queueName: The queue name.
vSwitchIdsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property vSwitchIds: The VSwitches available for use by compute nodes in the queue.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.ehpc.Queue;
Queue.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrComputeNodes | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ComputeNodes: The hardware configurations of the compute nodes in the queue. |
attrCreateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CreateTime: Queue creation time. |
attrEnableScaleIn | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EnableScaleIn: Specifies whether to enable auto scale-in for the queue. |
attrEnableScaleOut | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute EnableScaleOut: Specifies whether to enable auto scale-out for the queue. |
attrHostnamePrefix | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute HostnamePrefix: The hostname prefix of the added compute nodes. |
attrHostnameSuffix | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute HostnameSuffix: The hostname suffix of the compute nodes in the queue. |
attrInitialCount | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InitialCount: The initial number of compute nodes in the queue. |
attrInterConnect | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InterConnect: The type of the network for interconnecting compute nodes in the queue. |
attrMaxCount | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute MaxCount: The maximum number of compute nodes that the queue can contain. |
attrMinCount | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute MinCount: The minimum number of compute nodes that the queue must contain. |
attrQueueName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute QueueName: The queue name. |
attrUpdateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute UpdateTime: Queue update time. |
attrVSwitchIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute VSwitchIds: The VSwitches available for use by compute nodes in the queue. |
props | QueueProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrComputeNodesRequired
public java.lang.Object getAttrComputeNodes();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ComputeNodes: The hardware configurations of the compute nodes in the queue.
attrCreateTimeRequired
public java.lang.Object getAttrCreateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: Queue creation time.
attrEnableScaleInRequired
public java.lang.Object getAttrEnableScaleIn();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EnableScaleIn: Specifies whether to enable auto scale-in for the queue.
attrEnableScaleOutRequired
public java.lang.Object getAttrEnableScaleOut();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute EnableScaleOut: Specifies whether to enable auto scale-out for the queue.
attrHostnamePrefixRequired
public java.lang.Object getAttrHostnamePrefix();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute HostnamePrefix: The hostname prefix of the added compute nodes.
attrHostnameSuffixRequired
public java.lang.Object getAttrHostnameSuffix();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute HostnameSuffix: The hostname suffix of the compute nodes in the queue.
attrInitialCountRequired
public java.lang.Object getAttrInitialCount();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InitialCount: The initial number of compute nodes in the queue.
attrInterConnectRequired
public java.lang.Object getAttrInterConnect();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InterConnect: The type of the network for interconnecting compute nodes in the queue.
attrMaxCountRequired
public java.lang.Object getAttrMaxCount();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute MaxCount: The maximum number of compute nodes that the queue can contain.
attrMinCountRequired
public java.lang.Object getAttrMinCount();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute MinCount: The minimum number of compute nodes that the queue must contain.
attrQueueNameRequired
public java.lang.Object getAttrQueueName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute QueueName: The queue name.
attrUpdateTimeRequired
public java.lang.Object getAttrUpdateTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute UpdateTime: Queue update time.
attrVSwitchIdsRequired
public java.lang.Object getAttrVSwitchIds();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute VSwitchIds: The VSwitches available for use by compute nodes in the queue.
propsRequired
public QueueProps getProps();
- Type: QueueProps