| /** |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /** |
| * Autogenerated by Thrift Compiler (0.9.1) |
| * |
| * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
| * @generated |
| */ |
| #ifndef applicationDeploymentModel_TYPES_H |
| #define applicationDeploymentModel_TYPES_H |
| |
| #include <thrift/Thrift.h> |
| #include <thrift/TApplicationException.h> |
| #include <thrift/protocol/TProtocol.h> |
| #include <thrift/transport/TTransport.h> |
| |
| #include <thrift/cxxfunctional.h> |
| |
| |
| namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appdeployment { |
| |
| struct ApplicationParallelismType { |
| enum type { |
| SERIAL = 0, |
| MPI = 1, |
| OPENMP = 2, |
| OPENMP_MPI = 3 |
| }; |
| }; |
| |
| extern const std::map<int, const char*> _ApplicationParallelismType_VALUES_TO_NAMES; |
| |
| |
| class SetEnvPaths { |
| public: |
| |
| static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; |
| static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; |
| |
| SetEnvPaths() : name(), value() { |
| } |
| |
| virtual ~SetEnvPaths() throw() {} |
| |
| std::string name; |
| std::string value; |
| |
| void __set_name(const std::string& val) { |
| name = val; |
| } |
| |
| void __set_value(const std::string& val) { |
| value = val; |
| } |
| |
| bool operator == (const SetEnvPaths & rhs) const |
| { |
| if (!(name == rhs.name)) |
| return false; |
| if (!(value == rhs.value)) |
| return false; |
| return true; |
| } |
| bool operator != (const SetEnvPaths &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const SetEnvPaths & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| }; |
| |
| void swap(SetEnvPaths &a, SetEnvPaths &b); |
| |
| typedef struct _ApplicationModule__isset { |
| _ApplicationModule__isset() : appModuleVersion(false), appModuleDescription(false) {} |
| bool appModuleVersion; |
| bool appModuleDescription; |
| } _ApplicationModule__isset; |
| |
| class ApplicationModule { |
| public: |
| |
| static const char* ascii_fingerprint; // = "FED0FBEAA0C90D1589E8B650561B7675"; |
| static const uint8_t binary_fingerprint[16]; // = {0xFE,0xD0,0xFB,0xEA,0xA0,0xC9,0x0D,0x15,0x89,0xE8,0xB6,0x50,0x56,0x1B,0x76,0x75}; |
| |
| ApplicationModule() : appModuleId("DO_NOT_SET_AT_CLIENTS"), appModuleName(), appModuleVersion(), appModuleDescription() { |
| } |
| |
| virtual ~ApplicationModule() throw() {} |
| |
| std::string appModuleId; |
| std::string appModuleName; |
| std::string appModuleVersion; |
| std::string appModuleDescription; |
| |
| _ApplicationModule__isset __isset; |
| |
| void __set_appModuleId(const std::string& val) { |
| appModuleId = val; |
| } |
| |
| void __set_appModuleName(const std::string& val) { |
| appModuleName = val; |
| } |
| |
| void __set_appModuleVersion(const std::string& val) { |
| appModuleVersion = val; |
| __isset.appModuleVersion = true; |
| } |
| |
| void __set_appModuleDescription(const std::string& val) { |
| appModuleDescription = val; |
| __isset.appModuleDescription = true; |
| } |
| |
| bool operator == (const ApplicationModule & rhs) const |
| { |
| if (!(appModuleId == rhs.appModuleId)) |
| return false; |
| if (!(appModuleName == rhs.appModuleName)) |
| return false; |
| if (__isset.appModuleVersion != rhs.__isset.appModuleVersion) |
| return false; |
| else if (__isset.appModuleVersion && !(appModuleVersion == rhs.appModuleVersion)) |
| return false; |
| if (__isset.appModuleDescription != rhs.__isset.appModuleDescription) |
| return false; |
| else if (__isset.appModuleDescription && !(appModuleDescription == rhs.appModuleDescription)) |
| return false; |
| return true; |
| } |
| bool operator != (const ApplicationModule &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const ApplicationModule & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| }; |
| |
| void swap(ApplicationModule &a, ApplicationModule &b); |
| |
| typedef struct _ApplicationDeploymentDescription__isset { |
| _ApplicationDeploymentDescription__isset() : appDeploymentDescription(false), moduleLoadCmds(false), libPrependPaths(false), libAppendPaths(false), setEnvironment(false), preJobCommands(false), postJobCommands(false) {} |
| bool appDeploymentDescription; |
| bool moduleLoadCmds; |
| bool libPrependPaths; |
| bool libAppendPaths; |
| bool setEnvironment; |
| bool preJobCommands; |
| bool postJobCommands; |
| } _ApplicationDeploymentDescription__isset; |
| |
| class ApplicationDeploymentDescription { |
| public: |
| |
| static const char* ascii_fingerprint; // = "3B2F93AE9F0E6A621AF867419ADD9E5A"; |
| static const uint8_t binary_fingerprint[16]; // = {0x3B,0x2F,0x93,0xAE,0x9F,0x0E,0x6A,0x62,0x1A,0xF8,0x67,0x41,0x9A,0xDD,0x9E,0x5A}; |
| |
| ApplicationDeploymentDescription() : appDeploymentId("DO_NOT_SET_AT_CLIENTS"), appModuleId(), computeHostId(), executablePath(), parallelism((ApplicationParallelismType::type)0), appDeploymentDescription() { |
| parallelism = (ApplicationParallelismType::type)0; |
| |
| } |
| |
| virtual ~ApplicationDeploymentDescription() throw() {} |
| |
| std::string appDeploymentId; |
| std::string appModuleId; |
| std::string computeHostId; |
| std::string executablePath; |
| ApplicationParallelismType::type parallelism; |
| std::string appDeploymentDescription; |
| std::vector<std::string> moduleLoadCmds; |
| std::vector<SetEnvPaths> libPrependPaths; |
| std::vector<SetEnvPaths> libAppendPaths; |
| std::vector<SetEnvPaths> setEnvironment; |
| std::vector<std::string> preJobCommands; |
| std::vector<std::string> postJobCommands; |
| |
| _ApplicationDeploymentDescription__isset __isset; |
| |
| void __set_appDeploymentId(const std::string& val) { |
| appDeploymentId = val; |
| } |
| |
| void __set_appModuleId(const std::string& val) { |
| appModuleId = val; |
| } |
| |
| void __set_computeHostId(const std::string& val) { |
| computeHostId = val; |
| } |
| |
| void __set_executablePath(const std::string& val) { |
| executablePath = val; |
| } |
| |
| void __set_parallelism(const ApplicationParallelismType::type val) { |
| parallelism = val; |
| } |
| |
| void __set_appDeploymentDescription(const std::string& val) { |
| appDeploymentDescription = val; |
| __isset.appDeploymentDescription = true; |
| } |
| |
| void __set_moduleLoadCmds(const std::vector<std::string> & val) { |
| moduleLoadCmds = val; |
| __isset.moduleLoadCmds = true; |
| } |
| |
| void __set_libPrependPaths(const std::vector<SetEnvPaths> & val) { |
| libPrependPaths = val; |
| __isset.libPrependPaths = true; |
| } |
| |
| void __set_libAppendPaths(const std::vector<SetEnvPaths> & val) { |
| libAppendPaths = val; |
| __isset.libAppendPaths = true; |
| } |
| |
| void __set_setEnvironment(const std::vector<SetEnvPaths> & val) { |
| setEnvironment = val; |
| __isset.setEnvironment = true; |
| } |
| |
| void __set_preJobCommands(const std::vector<std::string> & val) { |
| preJobCommands = val; |
| __isset.preJobCommands = true; |
| } |
| |
| void __set_postJobCommands(const std::vector<std::string> & val) { |
| postJobCommands = val; |
| __isset.postJobCommands = true; |
| } |
| |
| bool operator == (const ApplicationDeploymentDescription & rhs) const |
| { |
| if (!(appDeploymentId == rhs.appDeploymentId)) |
| return false; |
| if (!(appModuleId == rhs.appModuleId)) |
| return false; |
| if (!(computeHostId == rhs.computeHostId)) |
| return false; |
| if (!(executablePath == rhs.executablePath)) |
| return false; |
| if (!(parallelism == rhs.parallelism)) |
| return false; |
| if (__isset.appDeploymentDescription != rhs.__isset.appDeploymentDescription) |
| return false; |
| else if (__isset.appDeploymentDescription && !(appDeploymentDescription == rhs.appDeploymentDescription)) |
| return false; |
| if (__isset.moduleLoadCmds != rhs.__isset.moduleLoadCmds) |
| return false; |
| else if (__isset.moduleLoadCmds && !(moduleLoadCmds == rhs.moduleLoadCmds)) |
| return false; |
| if (__isset.libPrependPaths != rhs.__isset.libPrependPaths) |
| return false; |
| else if (__isset.libPrependPaths && !(libPrependPaths == rhs.libPrependPaths)) |
| return false; |
| if (__isset.libAppendPaths != rhs.__isset.libAppendPaths) |
| return false; |
| else if (__isset.libAppendPaths && !(libAppendPaths == rhs.libAppendPaths)) |
| return false; |
| if (__isset.setEnvironment != rhs.__isset.setEnvironment) |
| return false; |
| else if (__isset.setEnvironment && !(setEnvironment == rhs.setEnvironment)) |
| return false; |
| if (__isset.preJobCommands != rhs.__isset.preJobCommands) |
| return false; |
| else if (__isset.preJobCommands && !(preJobCommands == rhs.preJobCommands)) |
| return false; |
| if (__isset.postJobCommands != rhs.__isset.postJobCommands) |
| return false; |
| else if (__isset.postJobCommands && !(postJobCommands == rhs.postJobCommands)) |
| return false; |
| return true; |
| } |
| bool operator != (const ApplicationDeploymentDescription &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const ApplicationDeploymentDescription & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| }; |
| |
| void swap(ApplicationDeploymentDescription &a, ApplicationDeploymentDescription &b); |
| |
| }}}}} // namespace |
| |
| #endif |