Class ComputeNode
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.batch.v20170312.models.ComputeNode
-
public class ComputeNode extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ComputeNode()ComputeNode(ComputeNode 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAgentVersion()Get Batch Agent 版本StringgetComputeNodeId()Get 计算节点IDStringgetComputeNodeInstanceId()Get 计算节点实例ID,对于CVM场景,即为CVM的InstanceIdStringgetComputeNodeState()Get 计算节点状态LonggetCpu()Get CPU核数LonggetMem()Get 内存容量,单位GiBString[]getPrivateIpAddresses()Get 实例内网IPString[]getPublicIpAddresses()Get 实例公网IPStringgetResourceCreatedTime()Get 资源创建完成时间StringgetResourceOrigin()Get 计算环境资源来源。
BATCH_CREATED:由批量计算创建的实例资源。
USER_ATTACHED:用户添加到计算环境中的实例资源。StringgetResourceType()Get 计算环境资源类型,当前为CVM和CPM(黑石)LonggetTaskInstanceNumAvailable()Get 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。voidsetAgentVersion(String AgentVersion)Set Batch Agent 版本voidsetComputeNodeId(String ComputeNodeId)Set 计算节点IDvoidsetComputeNodeInstanceId(String ComputeNodeInstanceId)Set 计算节点实例ID,对于CVM场景,即为CVM的InstanceIdvoidsetComputeNodeState(String ComputeNodeState)Set 计算节点状态voidsetCpu(Long Cpu)Set CPU核数voidsetMem(Long Mem)Set 内存容量,单位GiBvoidsetPrivateIpAddresses(String[] PrivateIpAddresses)Set 实例内网IPvoidsetPublicIpAddresses(String[] PublicIpAddresses)Set 实例公网IPvoidsetResourceCreatedTime(String ResourceCreatedTime)Set 资源创建完成时间voidsetResourceOrigin(String ResourceOrigin)Set 计算环境资源来源。
BATCH_CREATED:由批量计算创建的实例资源。
USER_ATTACHED:用户添加到计算环境中的实例资源。voidsetResourceType(String ResourceType)Set 计算环境资源类型,当前为CVM和CPM(黑石)voidsetTaskInstanceNumAvailable(Long TaskInstanceNumAvailable)Set 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ComputeNode
public ComputeNode()
-
ComputeNode
public ComputeNode(ComputeNode 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.
-
-
Method Detail
-
getComputeNodeId
public String getComputeNodeId()
Get 计算节点ID- Returns:
- ComputeNodeId 计算节点ID
-
setComputeNodeId
public void setComputeNodeId(String ComputeNodeId)
Set 计算节点ID- Parameters:
ComputeNodeId- 计算节点ID
-
getComputeNodeInstanceId
public String getComputeNodeInstanceId()
Get 计算节点实例ID,对于CVM场景,即为CVM的InstanceId- Returns:
- ComputeNodeInstanceId 计算节点实例ID,对于CVM场景,即为CVM的InstanceId
-
setComputeNodeInstanceId
public void setComputeNodeInstanceId(String ComputeNodeInstanceId)
Set 计算节点实例ID,对于CVM场景,即为CVM的InstanceId- Parameters:
ComputeNodeInstanceId- 计算节点实例ID,对于CVM场景,即为CVM的InstanceId
-
getComputeNodeState
public String getComputeNodeState()
Get 计算节点状态- Returns:
- ComputeNodeState 计算节点状态
-
setComputeNodeState
public void setComputeNodeState(String ComputeNodeState)
Set 计算节点状态- Parameters:
ComputeNodeState- 计算节点状态
-
getCpu
public Long getCpu()
Get CPU核数- Returns:
- Cpu CPU核数
-
setCpu
public void setCpu(Long Cpu)
Set CPU核数- Parameters:
Cpu- CPU核数
-
getMem
public Long getMem()
Get 内存容量,单位GiB- Returns:
- Mem 内存容量,单位GiB
-
setMem
public void setMem(Long Mem)
Set 内存容量,单位GiB- Parameters:
Mem- 内存容量,单位GiB
-
getResourceCreatedTime
public String getResourceCreatedTime()
Get 资源创建完成时间- Returns:
- ResourceCreatedTime 资源创建完成时间
-
setResourceCreatedTime
public void setResourceCreatedTime(String ResourceCreatedTime)
Set 资源创建完成时间- Parameters:
ResourceCreatedTime- 资源创建完成时间
-
getTaskInstanceNumAvailable
public Long getTaskInstanceNumAvailable()
Get 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。- Returns:
- TaskInstanceNumAvailable 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。
-
setTaskInstanceNumAvailable
public void setTaskInstanceNumAvailable(Long TaskInstanceNumAvailable)
Set 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。- Parameters:
TaskInstanceNumAvailable- 计算节点运行 TaskInstance 可用容量。0表示计算节点忙碌。
-
getAgentVersion
public String getAgentVersion()
Get Batch Agent 版本- Returns:
- AgentVersion Batch Agent 版本
-
setAgentVersion
public void setAgentVersion(String AgentVersion)
Set Batch Agent 版本- Parameters:
AgentVersion- Batch Agent 版本
-
getPrivateIpAddresses
public String[] getPrivateIpAddresses()
Get 实例内网IP- Returns:
- PrivateIpAddresses 实例内网IP
-
setPrivateIpAddresses
public void setPrivateIpAddresses(String[] PrivateIpAddresses)
Set 实例内网IP- Parameters:
PrivateIpAddresses- 实例内网IP
-
getPublicIpAddresses
public String[] getPublicIpAddresses()
Get 实例公网IP- Returns:
- PublicIpAddresses 实例公网IP
-
setPublicIpAddresses
public void setPublicIpAddresses(String[] PublicIpAddresses)
Set 实例公网IP- Parameters:
PublicIpAddresses- 实例公网IP
-
getResourceType
public String getResourceType()
Get 计算环境资源类型,当前为CVM和CPM(黑石)- Returns:
- ResourceType 计算环境资源类型,当前为CVM和CPM(黑石)
-
setResourceType
public void setResourceType(String ResourceType)
Set 计算环境资源类型,当前为CVM和CPM(黑石)- Parameters:
ResourceType- 计算环境资源类型,当前为CVM和CPM(黑石)
-
getResourceOrigin
public String getResourceOrigin()
Get 计算环境资源来源。
BATCH_CREATED:由批量计算创建的实例资源。
USER_ATTACHED:用户添加到计算环境中的实例资源。- Returns:
- ResourceOrigin 计算环境资源来源。
BATCH_CREATED:由批量计算创建的实例资源。
USER_ATTACHED:用户添加到计算环境中的实例资源。
-
setResourceOrigin
public void setResourceOrigin(String ResourceOrigin)
Set 计算环境资源来源。
BATCH_CREATED:由批量计算创建的实例资源。
USER_ATTACHED:用户添加到计算环境中的实例资源。- Parameters:
ResourceOrigin- 计算环境资源来源。
BATCH_CREATED:由批量计算创建的实例资源。
USER_ATTACHED:用户添加到计算环境中的实例资源。
-
-