public class AdminSwitchoverRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.adminSwitchover
.
Manually switch over one or more processes to another host. Individual ranks or entire hosts may be moved to another host.
Modifier and Type | Class and Description |
---|---|
static class |
AdminSwitchoverRequest.Options
A set of string constants for the
AdminSwitchoverRequest
parameter options . |
Constructor and Description |
---|
AdminSwitchoverRequest()
Constructs an AdminSwitchoverRequest object with default parameters.
|
AdminSwitchoverRequest(List<String> processes,
List<String> destinations,
Map<String,String> options)
Constructs an AdminSwitchoverRequest 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.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
List<String> |
getDestinations()
Indicates to which host to switch over each corresponding process given
in
processes . |
Map<String,String> |
getOptions()
Optional parameters.
|
List<String> |
getProcesses()
Indicates the process identifier to switch over to another host.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
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.
|
AdminSwitchoverRequest |
setDestinations(List<String> destinations)
Indicates to which host to switch over each corresponding process given
in
processes . |
AdminSwitchoverRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AdminSwitchoverRequest |
setProcesses(List<String> processes)
Indicates the process identifier to switch over to another host.
|
String |
toString() |
public AdminSwitchoverRequest()
public AdminSwitchoverRequest(List<String> processes, List<String> destinations, Map<String,String> options)
processes
- Indicates the process identifier to switch over to
another host. Options are 'hostN' and 'rankN' where
'N' corresponds to the number associated with a host
or rank in the Network section of the gpudb.conf
file; e.g., 'host[N].address' or 'rank[N].host'. If
'hostN' is provided, all processes on that host will
be moved to another host. Each entry in this array
will be switched over to the corresponding host entry
at the same index in destinations
.destinations
- Indicates to which host to switch over each
corresponding process given in processes
.
Each index must be specified as 'hostN' where 'N'
corresponds to the number associated with a host or
rank in the Network section of the gpudb.conf
file; e.g., 'host[N].address'. Each entry in this
array will receive the corresponding process entry
at the same index in processes
.options
- Optional parameters.
DRY_RUN
: If set to
TRUE
, only validation
checks will be performed. Nothing is switched
over.
Supported values:
The default value is FALSE
.
Map
.public static org.apache.avro.Schema getClassSchema()
public List<String> getProcesses()
destinations
.processes
.public AdminSwitchoverRequest setProcesses(List<String> processes)
destinations
.processes
- The new value for processes
.this
to mimic the builder pattern.public List<String> getDestinations()
processes
. Each index must be specified as
'hostN' where 'N' corresponds to the number associated with a host or
rank in the Network section of the gpudb.conf file; e.g.,
'host[N].address'. Each entry in this array will receive the
corresponding process entry at the same index in processes
.destinations
.public AdminSwitchoverRequest setDestinations(List<String> destinations)
processes
. Each index must be specified as
'hostN' where 'N' corresponds to the number associated with a host or
rank in the Network section of the gpudb.conf file; e.g.,
'host[N].address'. Each entry in this array will receive the
corresponding process entry at the same index in processes
.destinations
- The new value for destinations
.this
to mimic the builder pattern.public Map<String,String> getOptions()
DRY_RUN
: If set to TRUE
, only validation checks will be performed. Nothing is
switched over.
Supported values:
The default value is FALSE
.
Map
.options
.public AdminSwitchoverRequest setOptions(Map<String,String> options)
DRY_RUN
: If set to TRUE
, only validation checks will be performed. Nothing is
switched over.
Supported values:
The default value is FALSE
.
Map
.options
- The new value for options
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.