public class CreateResourceGroupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.createResourceGroup(CreateResourceGroupRequest).
Creates a new resource group to facilitate resource management.
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateResourceGroupRequest.Options
Optional parameters.
|
static class |
CreateResourceGroupRequest.Ranking
Indicates the relative ranking among existing resource groups where this
new resource group will be placed.
|
static class |
CreateResourceGroupRequest.TierAttributes
Optional map containing tier names and their respective attribute group
limits.
|
| Constructor and Description |
|---|
CreateResourceGroupRequest()
Constructs a CreateResourceGroupRequest object with default parameters.
|
CreateResourceGroupRequest(String name,
Map<String,Map<String,String>> tierAttributes,
String ranking,
String adjoiningResourceGroup,
Map<String,String> options)
Constructs a CreateResourceGroupRequest object with the specified
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getAdjoiningResourceGroup() |
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getName() |
Map<String,String> |
getOptions() |
String |
getRanking() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,Map<String,String>> |
getTierAttributes() |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
CreateResourceGroupRequest |
setAdjoiningResourceGroup(String adjoiningResourceGroup) |
CreateResourceGroupRequest |
setName(String name) |
CreateResourceGroupRequest |
setOptions(Map<String,String> options) |
CreateResourceGroupRequest |
setRanking(String ranking) |
CreateResourceGroupRequest |
setTierAttributes(Map<String,Map<String,String>> tierAttributes) |
String |
toString() |
public CreateResourceGroupRequest()
public CreateResourceGroupRequest(String name, Map<String,Map<String,String>> tierAttributes, String ranking, String adjoiningResourceGroup, Map<String,String> options)
name - Name of the group to be created. Must contain only letters,
digits, and underscores, and cannot begin with a digit.
Must not match existing resource group name.tierAttributes - Optional map containing tier names and their
respective attribute group limits. The only
valid attribute limit that can be set is
max_memory (in bytes) for the VRAM & RAM tiers.
For instance, to set max VRAM capacity to 1GB and
max RAM capacity to 10GB, use:
{'VRAM':{'max_memory':'1000000000'},
'RAM':{'max_memory':'10000000000'}}
MAX_MEMORY: Maximum amount of memory usable in
the given tier at one time for this group.
Map.ranking - Indicates the relative ranking among existing resource
groups where this new resource group will be placed.
When using before or after, specify
which resource group this one will be inserted before or
after in adjoiningResourceGroup.
Supported values:
adjoiningResourceGroup - If ranking is before or
after, this field indicates the
resource group before or after which the
current group will be placed; otherwise,
leave blank. The default value is ''.options - Optional parameters.
MAX_CPU_CONCURRENCY: Maximum number of simultaneous
threads that will be used to execute a request for this
group.
MAX_DATA: Maximum amount of cumulative ram usage
regardless of tier status for this group.
MAX_SCHEDULING_PRIORITY: Maximum priority of a
scheduled task for this group.
MAX_TIER_PRIORITY: Maximum priority of a tiered object
for this group.
Map.public static org.apache.avro.Schema getClassSchema()
public String getName()
public CreateResourceGroupRequest setName(String name)
name - Name of the group to be created. Must contain only letters,
digits, and underscores, and cannot begin with a digit.
Must not match existing resource group name.this to mimic the builder pattern.public Map<String,Map<String,String>> getTierAttributes()
MAX_MEMORY: Maximum amount of memory usable in the given tier
at one time for this group.
Map.public CreateResourceGroupRequest setTierAttributes(Map<String,Map<String,String>> tierAttributes)
tierAttributes - Optional map containing tier names and their
respective attribute group limits. The only
valid attribute limit that can be set is
max_memory (in bytes) for the VRAM & RAM tiers.
For instance, to set max VRAM capacity to 1GB and
max RAM capacity to 10GB, use:
{'VRAM':{'max_memory':'1000000000'},
'RAM':{'max_memory':'10000000000'}}
MAX_MEMORY: Maximum amount of memory usable in
the given tier at one time for this group.
Map.this to mimic the builder pattern.public String getRanking()
public CreateResourceGroupRequest setRanking(String ranking)
ranking - Indicates the relative ranking among existing resource
groups where this new resource group will be placed.
When using before or after, specify
which resource group this one will be inserted before or
after in adjoiningResourceGroup.
Supported values:
this to mimic the builder pattern.public String getAdjoiningResourceGroup()
ranking is before or after, this
field indicates the resource group before or after which the
current group will be placed; otherwise, leave blank. The
default value is ''.public CreateResourceGroupRequest setAdjoiningResourceGroup(String adjoiningResourceGroup)
adjoiningResourceGroup - If ranking is before or
after, this field indicates the
resource group before or after which the
current group will be placed; otherwise,
leave blank. The default value is ''.this to mimic the builder pattern.public Map<String,String> getOptions()
MAX_CPU_CONCURRENCY: Maximum number of simultaneous threads
that will be used to execute a request for this group.
MAX_DATA: Maximum amount of cumulative ram usage regardless of
tier status for this group.
MAX_SCHEDULING_PRIORITY: Maximum priority of a scheduled task
for this group.
MAX_TIER_PRIORITY: Maximum priority of a tiered object for this
group.
Map.public CreateResourceGroupRequest setOptions(Map<String,String> options)
options - Optional parameters.
MAX_CPU_CONCURRENCY: Maximum number of simultaneous
threads that will be used to execute a request for this
group.
MAX_DATA: Maximum amount of cumulative ram usage
regardless of tier status for this group.
MAX_SCHEDULING_PRIORITY: Maximum priority of a
scheduled task for this group.
MAX_TIER_PRIORITY: Maximum priority of a tiered object
for this group.
Map.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2024. All rights reserved.