public class AlterResourceGroupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterResourceGroup(AlterResourceGroupRequest).
Alters the properties of an exisiting resource group to facilitate resource management.
| Modifier and Type | Class and Description |
|---|---|
static class |
AlterResourceGroupRequest.Options
Optional parameters.
|
static class |
AlterResourceGroupRequest.Ranking
If the resource group ranking is to be updated, this indicates the
relative ranking among existing resource groups where this resource
group will be moved; leave blank if not changing the ranking.
|
static class |
AlterResourceGroupRequest.TierAttributes
Optional map containing tier names and their respective attribute group
limits.
|
| Constructor and Description |
|---|
AlterResourceGroupRequest()
Constructs an AlterResourceGroupRequest object with default parameters.
|
AlterResourceGroupRequest(String name,
Map<String,Map<String,String>> tierAttributes,
String ranking,
String adjoiningResourceGroup,
Map<String,String> options)
Constructs an AlterResourceGroupRequest 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.
|
AlterResourceGroupRequest |
setAdjoiningResourceGroup(String adjoiningResourceGroup) |
AlterResourceGroupRequest |
setName(String name) |
AlterResourceGroupRequest |
setOptions(Map<String,String> options) |
AlterResourceGroupRequest |
setRanking(String ranking) |
AlterResourceGroupRequest |
setTierAttributes(Map<String,Map<String,String>> tierAttributes) |
String |
toString() |
public AlterResourceGroupRequest()
public AlterResourceGroupRequest(String name, Map<String,Map<String,String>> tierAttributes, String ranking, String adjoiningResourceGroup, Map<String,String> options)
name - Name of the group to be altered. Must be an existing
resource group name or an empty string when used
inconjunction with the is_default_group option.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 - If the resource group ranking is to be updated, this
indicates the relative ranking among existing resource
groups where this resource group will be moved; leave
blank if not changing the ranking. When using before or after, specify which resource group
this one will be inserted before or after in adjoiningResourceGroup.
Supported values:
The default value is EMPTY_STRING.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.
IS_DEFAULT_GROUP: If true, this request applies
to the global default resource group. It is an error for
this field to be true when the name
field is also populated.
Supported values:
The default value is FALSE.
PERSIST: If true and a system-level change was
requested, the system configuration will be written to
disk upon successful application of this request. This
will commit the changes from this request and any
additional in-memory modifications.
Supported values:
The default value is TRUE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getName()
public AlterResourceGroupRequest setName(String name)
name - Name of the group to be altered. Must be an existing
resource group name or an empty string when used
inconjunction with the is_default_group option.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 AlterResourceGroupRequest 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()
before or after, specify
which resource group this one will be inserted before or after
in adjoiningResourceGroup.
Supported values:
The default value is EMPTY_STRING.public AlterResourceGroupRequest setRanking(String ranking)
ranking - If the resource group ranking is to be updated, this
indicates the relative ranking among existing resource
groups where this resource group will be moved; leave
blank if not changing the ranking. When using before or after, specify which resource group
this one will be inserted before or after in adjoiningResourceGroup.
Supported values:
The default value is EMPTY_STRING.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 AlterResourceGroupRequest 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.
IS_DEFAULT_GROUP: If true, this request applies to the
global default resource group. It is an error for this field to
be true when the name field is also populated.
Supported values:
The default value is FALSE.
PERSIST: If true and a system-level change was
requested, the system configuration will be written to disk upon
successful application of this request. This will commit the
changes from this request and any additional in-memory
modifications.
Supported values:
The default value is TRUE.
Map.public AlterResourceGroupRequest 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.
IS_DEFAULT_GROUP: If true, this request applies
to the global default resource group. It is an error for
this field to be true when the name
field is also populated.
Supported values:
The default value is FALSE.
PERSIST: If true and a system-level change was
requested, the system configuration will be written to
disk upon successful application of this request. This
will commit the changes from this request and any
additional in-memory modifications.
Supported values:
The default value is TRUE.
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.