6 #ifndef __ADMIN_OFFLINE_H__ 7 #define __ADMIN_OFFLINE_H__ 26 options(std::map<std::string, std::string>())
86 std::map<std::string, std::string>
options;
92 template<>
struct codec_traits<
gpudb::AdminOfflineRequest>
102 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
104 const std::vector<size_t> fo = rd->fieldOrder();
106 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
146 info(std::map<std::string, std::string>())
158 std::map<std::string, std::string>
info;
164 template<>
struct codec_traits<
gpudb::AdminOfflineResponse>
169 ::avro::encode(e, v.
info);
174 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
176 const std::vector<size_t> fo = rd->fieldOrder();
178 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
187 ::avro::decode(d, v.
info);
198 ::avro::decode(d, v.
info);
204 #endif // __ADMIN_OFFLINE_H__
AdminOfflineRequest()
Constructs an AdminOfflineRequest object with default parameters.
AdminOfflineResponse()
Constructs an AdminOfflineResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
bool isOffline
Returns true if the system is offline, or false otherwise.
A set of results returned by GPUdb::adminOffline.
std::map< std::string, std::string > options
Optional parameters.
AdminOfflineRequest(const bool offline_, const std::map< std::string, std::string > &options_)
Constructs an AdminOfflineRequest object with the specified parameters.
A set of parameters for GPUdb::adminOffline.
bool offline
Set to true if desired state is offline.