GPUdb C++ API  Version 7.2.2.4
admin_shutdown.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __ADMIN_SHUTDOWN_H__
7 #define __ADMIN_SHUTDOWN_H__
8 
9 namespace gpudb
10 {
19  {
24  exitType(std::string()),
25  authorization(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
41  AdminShutdownRequest(const std::string& exitType_, const std::string& authorization_, const std::map<std::string, std::string>& options_):
42  exitType( exitType_ ),
43  authorization( authorization_ ),
44  options( options_ )
45  {
46  }
47 
51  std::string exitType;
52 
56  std::string authorization;
57 
61  std::map<std::string, std::string> options;
62  };
63 } // end namespace gpudb
64 
65 namespace avro
66 {
67  template<> struct codec_traits<gpudb::AdminShutdownRequest>
68  {
69  static void encode(Encoder& e, const gpudb::AdminShutdownRequest& v)
70  {
71  ::avro::encode(e, v.exitType);
72  ::avro::encode(e, v.authorization);
73  ::avro::encode(e, v.options);
74  }
75 
76  static void decode(Decoder& d, gpudb::AdminShutdownRequest& v)
77  {
78  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
79  {
80  const std::vector<size_t> fo = rd->fieldOrder();
81 
82  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
83  {
84  switch (*it)
85  {
86  case 0:
87  ::avro::decode(d, v.exitType);
88  break;
89 
90  case 1:
91  ::avro::decode(d, v.authorization);
92  break;
93 
94  case 2:
95  ::avro::decode(d, v.options);
96  break;
97 
98  default:
99  break;
100  }
101  }
102  }
103  else
104  {
105  ::avro::decode(d, v.exitType);
106  ::avro::decode(d, v.authorization);
107  ::avro::decode(d, v.options);
108  }
109  }
110  };
111 } // end namespace avro
112 
113 namespace gpudb
114 {
121  {
126  exitStatus(std::string()),
127  info(std::map<std::string, std::string>())
128  {
129  }
130 
134  std::string exitStatus;
135 
139  std::map<std::string, std::string> info;
140  };
141 } // end namespace gpudb
142 
143 namespace avro
144 {
145  template<> struct codec_traits<gpudb::AdminShutdownResponse>
146  {
147  static void encode(Encoder& e, const gpudb::AdminShutdownResponse& v)
148  {
149  ::avro::encode(e, v.exitStatus);
150  ::avro::encode(e, v.info);
151  }
152 
153  static void decode(Decoder& d, gpudb::AdminShutdownResponse& v)
154  {
155  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
156  {
157  const std::vector<size_t> fo = rd->fieldOrder();
158 
159  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
160  {
161  switch (*it)
162  {
163  case 0:
164  ::avro::decode(d, v.exitStatus);
165  break;
166 
167  case 1:
168  ::avro::decode(d, v.info);
169  break;
170 
171  default:
172  break;
173  }
174  }
175  }
176  else
177  {
178  ::avro::decode(d, v.exitStatus);
179  ::avro::decode(d, v.info);
180  }
181  }
182  };
183 } // end namespace avro
184 
185 #endif // __ADMIN_SHUTDOWN_H__
std::map< std::string, std::string > info
Additional information.
std::string exitStatus
'OK' upon (right before) successful exit.
std::string exitType
Reserved for future use.
std::map< std::string, std::string > options
Optional parameters.
AdminShutdownRequest()
Constructs an AdminShutdownRequest object with default parameters.
AdminShutdownResponse()
Constructs an AdminShutdownResponse object with default parameters.
A set of results returned by GPUdb::adminShutdown.
A set of parameters for GPUdb::adminShutdown.
AdminShutdownRequest(const std::string &exitType_, const std::string &authorization_, const std::map< std::string, std::string > &options_)
Constructs an AdminShutdownRequest object with the specified parameters.
std::string authorization
No longer used.