public class AdminSwitchoverRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.adminSwitchover(AdminSwitchoverRequest)
.
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
Optional parameters.
|
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() |
Map<String,String> |
getOptions() |
List<String> |
getProcesses() |
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) |
AdminSwitchoverRequest |
setOptions(Map<String,String> options) |
AdminSwitchoverRequest |
setProcesses(List<String> processes) |
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
.public AdminSwitchoverRequest setProcesses(List<String> processes)
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
.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
.public AdminSwitchoverRequest setDestinations(List<String> 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
.this
to mimic the builder pattern.public AdminSwitchoverRequest setOptions(Map<String,String> options)
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 © 2024. All rights reserved.