6 #ifndef __ADMIN_ADD_RANKS_H__ 7 #define __ADMIN_ADD_RANKS_H__ 52 hosts(std::vector<std::string>()),
53 configParams(std::vector<std::map<std::string, std::string> >()),
54 options(std::map<std::string, std::string>())
134 AdminAddRanksRequest(
const std::vector<std::string>& hosts_,
const std::vector<std::map<std::string, std::string> >& configParams_,
const std::map<std::string, std::string>& options_):
209 template<>
struct codec_traits<
gpudb::AdminAddRanksRequest>
213 ::avro::encode(e, v.
hosts);
220 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
222 const std::vector<size_t> fo = rd->fieldOrder();
224 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
229 ::avro::decode(d, v.
hosts);
247 ::avro::decode(d, v.
hosts);
269 info(std::map<std::string, std::string>())
284 std::map<std::string, std::string>
info;
290 template<>
struct codec_traits<
gpudb::AdminAddRanksResponse>
295 ::avro::encode(e, v.
info);
300 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
302 const std::vector<size_t> fo = rd->fieldOrder();
304 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
313 ::avro::decode(d, v.
info);
324 ::avro::decode(d, v.
info);
330 #endif // __ADMIN_ADD_RANKS_H__ AdminAddRanksRequest(const std::vector< std::string > &hosts_, const std::vector< std::map< std::string, std::string > > &configParams_, const std::map< std::string, std::string > &options_)
Constructs an AdminAddRanksRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::adminAddRanks.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > addedRanks
The number assigned to each added rank, formatted as 'rankN', in the same order as the ranks in hosts...
AdminAddRanksRequest()
Constructs an AdminAddRanksRequest object with default parameters.
AdminAddRanksResponse()
Constructs an AdminAddRanksResponse object with default parameters.
A set of parameters for GPUdb::adminAddRanks.
std::vector< std::string > hosts
Array of host IP addresses (matching a hostN.address from the gpudb.conf file), or host identifiers (...
std::vector< std::map< std::string, std::string > > configParams
Array of maps containing configuration parameters to apply to the new ranks found in hosts.