Package com.gpudb.protocol
Class AdminSwitchoverRequest
java.lang.Object
com.gpudb.protocol.AdminSwitchoverRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.adminSwitchover.
Manually switch over one or more processes to another host. Individual ranks or entire hosts may be moved to another host.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAdminSwitchoverRequestparameteroptions.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Indicates to which host to switch over each corresponding process given inprocesses.Optional parameters.Indicates the process identifier to switch over to another host.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setDestinations(List<String> destinations) Indicates to which host to switch over each corresponding process given inprocesses.setOptions(Map<String, String> options) Optional parameters.setProcesses(List<String> processes) Indicates the process identifier to switch over to another host.toString()
Constructor Details
AdminSwitchoverRequest
public AdminSwitchoverRequest()Constructs an AdminSwitchoverRequest object with default parameters.AdminSwitchoverRequest
public AdminSwitchoverRequest(List<String> processes, List<String> destinations, Map<String, String> options) Constructs an AdminSwitchoverRequest object with the specified parameters.Parameters: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 indestinations.destinations- Indicates to which host to switch over each corresponding process given inprocesses. 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 inprocesses.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.getProcesses
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 indestinations.Returns:The current value ofprocesses.setProcesses
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 indestinations.Parameters:processes- The new value forprocesses.Returns:thisto mimic the builder pattern.getDestinations
Indicates to which host to switch over each corresponding process given inprocesses. 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 inprocesses.Returns:The current value ofdestinations.setDestinations
Indicates to which host to switch over each corresponding process given inprocesses. 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 inprocesses.Parameters:destinations- The new value fordestinations.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: