public class HostResource extends AbstractModel
Constructor and Description |
---|
HostResource() |
HostResource(HostResource 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 |
---|---|
Long |
getCpuAvailable()
Get Number of available CPU cores in the CDH instance
|
Long |
getCpuTotal()
Get Total number of CPU cores in the CDH instance
|
Long |
getDiskAvailable()
Get Avilable disk size of the CDH instance; unit: GiB
|
Long |
getDiskTotal()
Get Total disk size of the CDH instance; unit: GiB
|
String |
getDiskType()
Get CDH instance disk type.
|
Float |
getMemAvailable()
Get Available memory of the CDH instance; unit: GiB
|
Float |
getMemTotal()
Get Total memory of the CDH instance; unit: GiB
|
void |
setCpuAvailable(Long CpuAvailable)
Set Number of available CPU cores in the CDH instance
|
void |
setCpuTotal(Long CpuTotal)
Set Total number of CPU cores in the CDH instance
|
void |
setDiskAvailable(Long DiskAvailable)
Set Avilable disk size of the CDH instance; unit: GiB
|
void |
setDiskTotal(Long DiskTotal)
Set Total disk size of the CDH instance; unit: GiB
|
void |
setDiskType(String DiskType)
Set CDH instance disk type.
|
void |
setMemAvailable(Float MemAvailable)
Set Available memory of the CDH instance; unit: GiB
|
void |
setMemTotal(Float MemTotal)
Set Total memory of the CDH instance; unit: GiB
|
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 HostResource()
public HostResource(HostResource source)
public Long getCpuTotal()
public void setCpuTotal(Long CpuTotal)
CpuTotal
- Total number of CPU cores in the CDH instancepublic Long getCpuAvailable()
public void setCpuAvailable(Long CpuAvailable)
CpuAvailable
- Number of available CPU cores in the CDH instancepublic Float getMemTotal()
public void setMemTotal(Float MemTotal)
MemTotal
- Total memory of the CDH instance; unit: GiBpublic Float getMemAvailable()
public void setMemAvailable(Float MemAvailable)
MemAvailable
- Available memory of the CDH instance; unit: GiBpublic Long getDiskTotal()
public void setDiskTotal(Long DiskTotal)
DiskTotal
- Total disk size of the CDH instance; unit: GiBpublic Long getDiskAvailable()
public void setDiskAvailable(Long DiskAvailable)
DiskAvailable
- Avilable disk size of the CDH instance; unit: GiBpublic String getDiskType()
public void setDiskType(String DiskType)
DiskType
- CDH instance disk type.Copyright © 2021. All rights reserved.