You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/12/13 22:09:36 UTC
[23/51] [partial] airavata-php-gateway git commit: removing files
from wrong merge
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.h
deleted file mode 100644
index a8eb680..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.h
+++ /dev/null
@@ -1,349 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef gateway_resource_profile_model_TYPES_H
-#define gateway_resource_profile_model_TYPES_H
-
-#include <iosfwd>
-
-#include <thrift/Thrift.h>
-#include <thrift/TApplicationException.h>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/transport/TTransport.h>
-
-#include <thrift/cxxfunctional.h>
-#include "compute_resource_model_types.h"
-#include "data_movement_models_types.h"
-
-
-namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile {
-
-class ComputeResourcePreference;
-
-class StoragePreference;
-
-class GatewayResourceProfile;
-
-typedef struct _ComputeResourcePreference__isset {
- _ComputeResourcePreference__isset() : loginUserName(false), preferredJobSubmissionProtocol(false), preferredDataMovementProtocol(false), preferredBatchQueue(false), scratchLocation(false), allocationProjectNumber(false), resourceSpecificCredentialStoreToken(false), usageReportingGatewayId(false), qualityOfService(false), reservation(false), reservationStartTime(false), reservationEndTime(false) {}
- bool loginUserName :1;
- bool preferredJobSubmissionProtocol :1;
- bool preferredDataMovementProtocol :1;
- bool preferredBatchQueue :1;
- bool scratchLocation :1;
- bool allocationProjectNumber :1;
- bool resourceSpecificCredentialStoreToken :1;
- bool usageReportingGatewayId :1;
- bool qualityOfService :1;
- bool reservation :1;
- bool reservationStartTime :1;
- bool reservationEndTime :1;
-} _ComputeResourcePreference__isset;
-
-class ComputeResourcePreference {
- public:
-
- ComputeResourcePreference(const ComputeResourcePreference&);
- ComputeResourcePreference& operator=(const ComputeResourcePreference&);
- ComputeResourcePreference() : computeResourceId(), overridebyAiravata(true), loginUserName(), preferredJobSubmissionProtocol(( ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type)0), preferredDataMovementProtocol(( ::apache::airavata::model::data::movement::DataMovementProtocol::type)0), preferredBatchQueue(), scratchLocation(), allocationProjectNumber(), resourceSpecificCredentialStoreToken(), usageReportingGatewayId(), qualityOfService(), reservation(), reservationStartTime(0), reservationEndTime(0) {
- }
-
- virtual ~ComputeResourcePreference() throw();
- std::string computeResourceId;
- bool overridebyAiravata;
- std::string loginUserName;
- ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type preferredJobSubmissionProtocol;
- ::apache::airavata::model::data::movement::DataMovementProtocol::type preferredDataMovementProtocol;
- std::string preferredBatchQueue;
- std::string scratchLocation;
- std::string allocationProjectNumber;
- std::string resourceSpecificCredentialStoreToken;
- std::string usageReportingGatewayId;
- std::string qualityOfService;
- std::string reservation;
- int64_t reservationStartTime;
- int64_t reservationEndTime;
-
- _ComputeResourcePreference__isset __isset;
-
- void __set_computeResourceId(const std::string& val);
-
- void __set_overridebyAiravata(const bool val);
-
- void __set_loginUserName(const std::string& val);
-
- void __set_preferredJobSubmissionProtocol(const ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type val);
-
- void __set_preferredDataMovementProtocol(const ::apache::airavata::model::data::movement::DataMovementProtocol::type val);
-
- void __set_preferredBatchQueue(const std::string& val);
-
- void __set_scratchLocation(const std::string& val);
-
- void __set_allocationProjectNumber(const std::string& val);
-
- void __set_resourceSpecificCredentialStoreToken(const std::string& val);
-
- void __set_usageReportingGatewayId(const std::string& val);
-
- void __set_qualityOfService(const std::string& val);
-
- void __set_reservation(const std::string& val);
-
- void __set_reservationStartTime(const int64_t val);
-
- void __set_reservationEndTime(const int64_t val);
-
- bool operator == (const ComputeResourcePreference & rhs) const
- {
- if (!(computeResourceId == rhs.computeResourceId))
- return false;
- if (!(overridebyAiravata == rhs.overridebyAiravata))
- return false;
- if (__isset.loginUserName != rhs.__isset.loginUserName)
- return false;
- else if (__isset.loginUserName && !(loginUserName == rhs.loginUserName))
- return false;
- if (__isset.preferredJobSubmissionProtocol != rhs.__isset.preferredJobSubmissionProtocol)
- return false;
- else if (__isset.preferredJobSubmissionProtocol && !(preferredJobSubmissionProtocol == rhs.preferredJobSubmissionProtocol))
- return false;
- if (__isset.preferredDataMovementProtocol != rhs.__isset.preferredDataMovementProtocol)
- return false;
- else if (__isset.preferredDataMovementProtocol && !(preferredDataMovementProtocol == rhs.preferredDataMovementProtocol))
- return false;
- if (__isset.preferredBatchQueue != rhs.__isset.preferredBatchQueue)
- return false;
- else if (__isset.preferredBatchQueue && !(preferredBatchQueue == rhs.preferredBatchQueue))
- return false;
- if (__isset.scratchLocation != rhs.__isset.scratchLocation)
- return false;
- else if (__isset.scratchLocation && !(scratchLocation == rhs.scratchLocation))
- return false;
- if (__isset.allocationProjectNumber != rhs.__isset.allocationProjectNumber)
- return false;
- else if (__isset.allocationProjectNumber && !(allocationProjectNumber == rhs.allocationProjectNumber))
- return false;
- if (__isset.resourceSpecificCredentialStoreToken != rhs.__isset.resourceSpecificCredentialStoreToken)
- return false;
- else if (__isset.resourceSpecificCredentialStoreToken && !(resourceSpecificCredentialStoreToken == rhs.resourceSpecificCredentialStoreToken))
- return false;
- if (__isset.usageReportingGatewayId != rhs.__isset.usageReportingGatewayId)
- return false;
- else if (__isset.usageReportingGatewayId && !(usageReportingGatewayId == rhs.usageReportingGatewayId))
- return false;
- if (__isset.qualityOfService != rhs.__isset.qualityOfService)
- return false;
- else if (__isset.qualityOfService && !(qualityOfService == rhs.qualityOfService))
- return false;
- if (__isset.reservation != rhs.__isset.reservation)
- return false;
- else if (__isset.reservation && !(reservation == rhs.reservation))
- return false;
- if (__isset.reservationStartTime != rhs.__isset.reservationStartTime)
- return false;
- else if (__isset.reservationStartTime && !(reservationStartTime == rhs.reservationStartTime))
- return false;
- if (__isset.reservationEndTime != rhs.__isset.reservationEndTime)
- return false;
- else if (__isset.reservationEndTime && !(reservationEndTime == rhs.reservationEndTime))
- return false;
- return true;
- }
- bool operator != (const ComputeResourcePreference &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const ComputeResourcePreference & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
- virtual void printTo(std::ostream& out) const;
-};
-
-void swap(ComputeResourcePreference &a, ComputeResourcePreference &b);
-
-inline std::ostream& operator<<(std::ostream& out, const ComputeResourcePreference& obj)
-{
- obj.printTo(out);
- return out;
-}
-
-typedef struct _StoragePreference__isset {
- _StoragePreference__isset() : loginUserName(false), fileSystemRootLocation(false), resourceSpecificCredentialStoreToken(false) {}
- bool loginUserName :1;
- bool fileSystemRootLocation :1;
- bool resourceSpecificCredentialStoreToken :1;
-} _StoragePreference__isset;
-
-class StoragePreference {
- public:
-
- StoragePreference(const StoragePreference&);
- StoragePreference& operator=(const StoragePreference&);
- StoragePreference() : storageResourceId(), loginUserName(), fileSystemRootLocation(), resourceSpecificCredentialStoreToken() {
- }
-
- virtual ~StoragePreference() throw();
- std::string storageResourceId;
- std::string loginUserName;
- std::string fileSystemRootLocation;
- std::string resourceSpecificCredentialStoreToken;
-
- _StoragePreference__isset __isset;
-
- void __set_storageResourceId(const std::string& val);
-
- void __set_loginUserName(const std::string& val);
-
- void __set_fileSystemRootLocation(const std::string& val);
-
- void __set_resourceSpecificCredentialStoreToken(const std::string& val);
-
- bool operator == (const StoragePreference & rhs) const
- {
- if (!(storageResourceId == rhs.storageResourceId))
- return false;
- if (__isset.loginUserName != rhs.__isset.loginUserName)
- return false;
- else if (__isset.loginUserName && !(loginUserName == rhs.loginUserName))
- return false;
- if (__isset.fileSystemRootLocation != rhs.__isset.fileSystemRootLocation)
- return false;
- else if (__isset.fileSystemRootLocation && !(fileSystemRootLocation == rhs.fileSystemRootLocation))
- return false;
- if (__isset.resourceSpecificCredentialStoreToken != rhs.__isset.resourceSpecificCredentialStoreToken)
- return false;
- else if (__isset.resourceSpecificCredentialStoreToken && !(resourceSpecificCredentialStoreToken == rhs.resourceSpecificCredentialStoreToken))
- return false;
- return true;
- }
- bool operator != (const StoragePreference &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const StoragePreference & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
- virtual void printTo(std::ostream& out) const;
-};
-
-void swap(StoragePreference &a, StoragePreference &b);
-
-inline std::ostream& operator<<(std::ostream& out, const StoragePreference& obj)
-{
- obj.printTo(out);
- return out;
-}
-
-typedef struct _GatewayResourceProfile__isset {
- _GatewayResourceProfile__isset() : credentialStoreToken(false), computeResourcePreferences(false), storagePreferences(false), identityServerTenant(false), identityServerPwdCredToken(false) {}
- bool credentialStoreToken :1;
- bool computeResourcePreferences :1;
- bool storagePreferences :1;
- bool identityServerTenant :1;
- bool identityServerPwdCredToken :1;
-} _GatewayResourceProfile__isset;
-
-class GatewayResourceProfile {
- public:
-
- GatewayResourceProfile(const GatewayResourceProfile&);
- GatewayResourceProfile& operator=(const GatewayResourceProfile&);
- GatewayResourceProfile() : gatewayID(), credentialStoreToken(), identityServerTenant(), identityServerPwdCredToken() {
- }
-
- virtual ~GatewayResourceProfile() throw();
- std::string gatewayID;
- std::string credentialStoreToken;
- std::vector<ComputeResourcePreference> computeResourcePreferences;
- std::vector<StoragePreference> storagePreferences;
- std::string identityServerTenant;
- std::string identityServerPwdCredToken;
-
- _GatewayResourceProfile__isset __isset;
-
- void __set_gatewayID(const std::string& val);
-
- void __set_credentialStoreToken(const std::string& val);
-
- void __set_computeResourcePreferences(const std::vector<ComputeResourcePreference> & val);
-
- void __set_storagePreferences(const std::vector<StoragePreference> & val);
-
- void __set_identityServerTenant(const std::string& val);
-
- void __set_identityServerPwdCredToken(const std::string& val);
-
- bool operator == (const GatewayResourceProfile & rhs) const
- {
- if (!(gatewayID == rhs.gatewayID))
- return false;
- if (__isset.credentialStoreToken != rhs.__isset.credentialStoreToken)
- return false;
- else if (__isset.credentialStoreToken && !(credentialStoreToken == rhs.credentialStoreToken))
- return false;
- if (__isset.computeResourcePreferences != rhs.__isset.computeResourcePreferences)
- return false;
- else if (__isset.computeResourcePreferences && !(computeResourcePreferences == rhs.computeResourcePreferences))
- return false;
- if (__isset.storagePreferences != rhs.__isset.storagePreferences)
- return false;
- else if (__isset.storagePreferences && !(storagePreferences == rhs.storagePreferences))
- return false;
- if (__isset.identityServerTenant != rhs.__isset.identityServerTenant)
- return false;
- else if (__isset.identityServerTenant && !(identityServerTenant == rhs.identityServerTenant))
- return false;
- if (__isset.identityServerPwdCredToken != rhs.__isset.identityServerPwdCredToken)
- return false;
- else if (__isset.identityServerPwdCredToken && !(identityServerPwdCredToken == rhs.identityServerPwdCredToken))
- return false;
- return true;
- }
- bool operator != (const GatewayResourceProfile &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const GatewayResourceProfile & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
- virtual void printTo(std::ostream& out) const;
-};
-
-void swap(GatewayResourceProfile &a, GatewayResourceProfile &b);
-
-inline std::ostream& operator<<(std::ostream& out, const GatewayResourceProfile& obj)
-{
- obj.printTo(out);
- return out;
-}
-
-}}}}} // namespace
-
-#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.cpp
deleted file mode 100644
index db609ab..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "group_manager_model_constants.h"
-
-namespace apache { namespace airavata { namespace model { namespace group {
-
-const group_manager_modelConstants g_group_manager_model_constants;
-
-group_manager_modelConstants::group_manager_modelConstants() {
-}
-
-}}}} // namespace
-
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.h
deleted file mode 100644
index 9df6636..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_constants.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef group_manager_model_CONSTANTS_H
-#define group_manager_model_CONSTANTS_H
-
-#include "group_manager_model_types.h"
-
-namespace apache { namespace airavata { namespace model { namespace group {
-
-class group_manager_modelConstants {
- public:
- group_manager_modelConstants();
-
-};
-
-extern const group_manager_modelConstants g_group_manager_model_constants;
-
-}}}} // namespace
-
-#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
deleted file mode 100644
index e94cb57..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.cpp
+++ /dev/null
@@ -1,255 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "group_manager_model_types.h"
-
-#include <algorithm>
-#include <ostream>
-
-#include <thrift/TToString.h>
-
-namespace apache { namespace airavata { namespace model { namespace group {
-
-int _kResourceTypeValues[] = {
- ResourceType::PROJECT,
- ResourceType::EXPERIMENT,
- ResourceType::DATA,
- ResourceType::OTHER
-};
-const char* _kResourceTypeNames[] = {
- "PROJECT",
- "EXPERIMENT",
- "DATA",
- "OTHER"
-};
-const std::map<int, const char*> _ResourceType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kResourceTypeValues, _kResourceTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
-
-int _kResourcePermissionTypeValues[] = {
- ResourcePermissionType::WRITE,
- ResourcePermissionType::READ,
- ResourcePermissionType::OWNER
-};
-const char* _kResourcePermissionTypeNames[] = {
- "WRITE",
- "READ",
- "OWNER"
-};
-const std::map<int, const char*> _ResourcePermissionType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kResourcePermissionTypeValues, _kResourcePermissionTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
-
-
-GroupModel::~GroupModel() throw() {
-}
-
-
-void GroupModel::__set_id(const std::string& val) {
- this->id = val;
-__isset.id = true;
-}
-
-void GroupModel::__set_name(const std::string& val) {
- this->name = val;
-__isset.name = true;
-}
-
-void GroupModel::__set_ownerId(const std::string& val) {
- this->ownerId = val;
-__isset.ownerId = true;
-}
-
-void GroupModel::__set_description(const std::string& val) {
- this->description = val;
-__isset.description = true;
-}
-
-void GroupModel::__set_members(const std::vector<std::string> & val) {
- this->members = val;
-__isset.members = true;
-}
-
-uint32_t GroupModel::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->id);
- this->__isset.id = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->ownerId);
- this->__isset.ownerId = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->description);
- this->__isset.description = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 5:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->members.clear();
- uint32_t _size0;
- ::apache::thrift::protocol::TType _etype3;
- xfer += iprot->readListBegin(_etype3, _size0);
- this->members.resize(_size0);
- uint32_t _i4;
- for (_i4 = 0; _i4 < _size0; ++_i4)
- {
- xfer += iprot->readString(this->members[_i4]);
- }
- xfer += iprot->readListEnd();
- }
- this->__isset.members = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- return xfer;
-}
-
-uint32_t GroupModel::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
- xfer += oprot->writeStructBegin("GroupModel");
-
- if (this->__isset.id) {
- xfer += oprot->writeFieldBegin("id", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->id);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.name) {
- xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->name);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.ownerId) {
- xfer += oprot->writeFieldBegin("ownerId", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->ownerId);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.description) {
- xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4);
- xfer += oprot->writeString(this->description);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.members) {
- xfer += oprot->writeFieldBegin("members", ::apache::thrift::protocol::T_LIST, 5);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->members.size()));
- std::vector<std::string> ::const_iterator _iter5;
- for (_iter5 = this->members.begin(); _iter5 != this->members.end(); ++_iter5)
- {
- xfer += oprot->writeString((*_iter5));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(GroupModel &a, GroupModel &b) {
- using ::std::swap;
- swap(a.id, b.id);
- swap(a.name, b.name);
- swap(a.ownerId, b.ownerId);
- swap(a.description, b.description);
- swap(a.members, b.members);
- swap(a.__isset, b.__isset);
-}
-
-GroupModel::GroupModel(const GroupModel& other6) {
- id = other6.id;
- name = other6.name;
- ownerId = other6.ownerId;
- description = other6.description;
- members = other6.members;
- __isset = other6.__isset;
-}
-GroupModel& GroupModel::operator=(const GroupModel& other7) {
- id = other7.id;
- name = other7.name;
- ownerId = other7.ownerId;
- description = other7.description;
- members = other7.members;
- __isset = other7.__isset;
- return *this;
-}
-void GroupModel::printTo(std::ostream& out) const {
- using ::apache::thrift::to_string;
- out << "GroupModel(";
- out << "id="; (__isset.id ? (out << to_string(id)) : (out << "<null>"));
- out << ", " << "name="; (__isset.name ? (out << to_string(name)) : (out << "<null>"));
- out << ", " << "ownerId="; (__isset.ownerId ? (out << to_string(ownerId)) : (out << "<null>"));
- out << ", " << "description="; (__isset.description ? (out << to_string(description)) : (out << "<null>"));
- out << ", " << "members="; (__isset.members ? (out << to_string(members)) : (out << "<null>"));
- out << ")";
-}
-
-}}}} // namespace
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
deleted file mode 100644
index b3c3dd1..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/group_manager_model_types.h
+++ /dev/null
@@ -1,145 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef group_manager_model_TYPES_H
-#define group_manager_model_TYPES_H
-
-#include <iosfwd>
-
-#include <thrift/Thrift.h>
-#include <thrift/TApplicationException.h>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/transport/TTransport.h>
-
-#include <thrift/cxxfunctional.h>
-#include "airavata_commons_types.h"
-
-
-namespace apache { namespace airavata { namespace model { namespace group {
-
-struct ResourceType {
- enum type {
- PROJECT = 0,
- EXPERIMENT = 1,
- DATA = 2,
- OTHER = 3
- };
-};
-
-extern const std::map<int, const char*> _ResourceType_VALUES_TO_NAMES;
-
-struct ResourcePermissionType {
- enum type {
- WRITE = 0,
- READ = 1,
- OWNER = 2
- };
-};
-
-extern const std::map<int, const char*> _ResourcePermissionType_VALUES_TO_NAMES;
-
-class GroupModel;
-
-typedef struct _GroupModel__isset {
- _GroupModel__isset() : id(false), name(false), ownerId(false), description(false), members(false) {}
- bool id :1;
- bool name :1;
- bool ownerId :1;
- bool description :1;
- bool members :1;
-} _GroupModel__isset;
-
-class GroupModel {
- public:
-
- GroupModel(const GroupModel&);
- GroupModel& operator=(const GroupModel&);
- GroupModel() : id(), name(), ownerId(), description() {
- }
-
- virtual ~GroupModel() throw();
- std::string id;
- std::string name;
- std::string ownerId;
- std::string description;
- std::vector<std::string> members;
-
- _GroupModel__isset __isset;
-
- void __set_id(const std::string& val);
-
- void __set_name(const std::string& val);
-
- void __set_ownerId(const std::string& val);
-
- void __set_description(const std::string& val);
-
- void __set_members(const std::vector<std::string> & val);
-
- bool operator == (const GroupModel & rhs) const
- {
- if (__isset.id != rhs.__isset.id)
- return false;
- else if (__isset.id && !(id == rhs.id))
- return false;
- if (__isset.name != rhs.__isset.name)
- return false;
- else if (__isset.name && !(name == rhs.name))
- return false;
- if (__isset.ownerId != rhs.__isset.ownerId)
- return false;
- else if (__isset.ownerId && !(ownerId == rhs.ownerId))
- return false;
- if (__isset.description != rhs.__isset.description)
- return false;
- else if (__isset.description && !(description == rhs.description))
- return false;
- if (__isset.members != rhs.__isset.members)
- return false;
- else if (__isset.members && !(members == rhs.members))
- return false;
- return true;
- }
- bool operator != (const GroupModel &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const GroupModel & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
- virtual void printTo(std::ostream& out) const;
-};
-
-void swap(GroupModel &a, GroupModel &b);
-
-inline std::ostream& operator<<(std::ostream& out, const GroupModel& obj)
-{
- obj.printTo(out);
- return out;
-}
-
-}}}} // namespace
-
-#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.cpp
deleted file mode 100644
index e560265..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "job_model_constants.h"
-
-namespace apache { namespace airavata { namespace model { namespace job {
-
-const job_modelConstants g_job_model_constants;
-
-job_modelConstants::job_modelConstants() {
-}
-
-}}}} // namespace
-
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.h
deleted file mode 100644
index 3b9367f..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_constants.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef job_model_CONSTANTS_H
-#define job_model_CONSTANTS_H
-
-#include "job_model_types.h"
-
-namespace apache { namespace airavata { namespace model { namespace job {
-
-class job_modelConstants {
- public:
- job_modelConstants();
-
-};
-
-extern const job_modelConstants g_job_model_constants;
-
-}}}} // namespace
-
-#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.cpp
deleted file mode 100644
index bb86531..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.cpp
+++ /dev/null
@@ -1,387 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#include "job_model_types.h"
-
-#include <algorithm>
-#include <ostream>
-
-#include <thrift/TToString.h>
-
-namespace apache { namespace airavata { namespace model { namespace job {
-
-
-JobModel::~JobModel() throw() {
-}
-
-
-void JobModel::__set_jobId(const std::string& val) {
- this->jobId = val;
-}
-
-void JobModel::__set_taskId(const std::string& val) {
- this->taskId = val;
-}
-
-void JobModel::__set_processId(const std::string& val) {
- this->processId = val;
-}
-
-void JobModel::__set_jobDescription(const std::string& val) {
- this->jobDescription = val;
-}
-
-void JobModel::__set_creationTime(const int64_t val) {
- this->creationTime = val;
-__isset.creationTime = true;
-}
-
-void JobModel::__set_jobStatuses(const std::vector< ::apache::airavata::model::status::JobStatus> & val) {
- this->jobStatuses = val;
-__isset.jobStatuses = true;
-}
-
-void JobModel::__set_computeResourceConsumed(const std::string& val) {
- this->computeResourceConsumed = val;
-__isset.computeResourceConsumed = true;
-}
-
-void JobModel::__set_jobName(const std::string& val) {
- this->jobName = val;
-__isset.jobName = true;
-}
-
-void JobModel::__set_workingDir(const std::string& val) {
- this->workingDir = val;
-__isset.workingDir = true;
-}
-
-void JobModel::__set_stdOut(const std::string& val) {
- this->stdOut = val;
-__isset.stdOut = true;
-}
-
-void JobModel::__set_stdErr(const std::string& val) {
- this->stdErr = val;
-__isset.stdErr = true;
-}
-
-void JobModel::__set_exitCode(const int32_t val) {
- this->exitCode = val;
-__isset.exitCode = true;
-}
-
-uint32_t JobModel::read(::apache::thrift::protocol::TProtocol* iprot) {
-
- apache::thrift::protocol::TInputRecursionTracker tracker(*iprot);
- uint32_t xfer = 0;
- std::string fname;
- ::apache::thrift::protocol::TType ftype;
- int16_t fid;
-
- xfer += iprot->readStructBegin(fname);
-
- using ::apache::thrift::protocol::TProtocolException;
-
- bool isset_jobId = false;
- bool isset_taskId = false;
- bool isset_processId = false;
- bool isset_jobDescription = false;
-
- while (true)
- {
- xfer += iprot->readFieldBegin(fname, ftype, fid);
- if (ftype == ::apache::thrift::protocol::T_STOP) {
- break;
- }
- switch (fid)
- {
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->jobId);
- isset_jobId = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->taskId);
- isset_taskId = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->processId);
- isset_processId = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->jobDescription);
- isset_jobDescription = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 5:
- if (ftype == ::apache::thrift::protocol::T_I64) {
- xfer += iprot->readI64(this->creationTime);
- this->__isset.creationTime = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 6:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->jobStatuses.clear();
- uint32_t _size0;
- ::apache::thrift::protocol::TType _etype3;
- xfer += iprot->readListBegin(_etype3, _size0);
- this->jobStatuses.resize(_size0);
- uint32_t _i4;
- for (_i4 = 0; _i4 < _size0; ++_i4)
- {
- xfer += this->jobStatuses[_i4].read(iprot);
- }
- xfer += iprot->readListEnd();
- }
- this->__isset.jobStatuses = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 7:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->computeResourceConsumed);
- this->__isset.computeResourceConsumed = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 8:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->jobName);
- this->__isset.jobName = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 9:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->workingDir);
- this->__isset.workingDir = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 10:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->stdOut);
- this->__isset.stdOut = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 11:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->stdErr);
- this->__isset.stdErr = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 12:
- if (ftype == ::apache::thrift::protocol::T_I32) {
- xfer += iprot->readI32(this->exitCode);
- this->__isset.exitCode = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
- xfer += iprot->skip(ftype);
- break;
- }
- xfer += iprot->readFieldEnd();
- }
-
- xfer += iprot->readStructEnd();
-
- if (!isset_jobId)
- throw TProtocolException(TProtocolException::INVALID_DATA);
- if (!isset_taskId)
- throw TProtocolException(TProtocolException::INVALID_DATA);
- if (!isset_processId)
- throw TProtocolException(TProtocolException::INVALID_DATA);
- if (!isset_jobDescription)
- throw TProtocolException(TProtocolException::INVALID_DATA);
- return xfer;
-}
-
-uint32_t JobModel::write(::apache::thrift::protocol::TProtocol* oprot) const {
- uint32_t xfer = 0;
- apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot);
- xfer += oprot->writeStructBegin("JobModel");
-
- xfer += oprot->writeFieldBegin("jobId", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->jobId);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("taskId", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->taskId);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("processId", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->processId);
- xfer += oprot->writeFieldEnd();
-
- xfer += oprot->writeFieldBegin("jobDescription", ::apache::thrift::protocol::T_STRING, 4);
- xfer += oprot->writeString(this->jobDescription);
- xfer += oprot->writeFieldEnd();
-
- if (this->__isset.creationTime) {
- xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 5);
- xfer += oprot->writeI64(this->creationTime);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.jobStatuses) {
- xfer += oprot->writeFieldBegin("jobStatuses", ::apache::thrift::protocol::T_LIST, 6);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->jobStatuses.size()));
- std::vector< ::apache::airavata::model::status::JobStatus> ::const_iterator _iter5;
- for (_iter5 = this->jobStatuses.begin(); _iter5 != this->jobStatuses.end(); ++_iter5)
- {
- xfer += (*_iter5).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.computeResourceConsumed) {
- xfer += oprot->writeFieldBegin("computeResourceConsumed", ::apache::thrift::protocol::T_STRING, 7);
- xfer += oprot->writeString(this->computeResourceConsumed);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.jobName) {
- xfer += oprot->writeFieldBegin("jobName", ::apache::thrift::protocol::T_STRING, 8);
- xfer += oprot->writeString(this->jobName);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.workingDir) {
- xfer += oprot->writeFieldBegin("workingDir", ::apache::thrift::protocol::T_STRING, 9);
- xfer += oprot->writeString(this->workingDir);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.stdOut) {
- xfer += oprot->writeFieldBegin("stdOut", ::apache::thrift::protocol::T_STRING, 10);
- xfer += oprot->writeString(this->stdOut);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.stdErr) {
- xfer += oprot->writeFieldBegin("stdErr", ::apache::thrift::protocol::T_STRING, 11);
- xfer += oprot->writeString(this->stdErr);
- xfer += oprot->writeFieldEnd();
- }
- if (this->__isset.exitCode) {
- xfer += oprot->writeFieldBegin("exitCode", ::apache::thrift::protocol::T_I32, 12);
- xfer += oprot->writeI32(this->exitCode);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
- xfer += oprot->writeStructEnd();
- return xfer;
-}
-
-void swap(JobModel &a, JobModel &b) {
- using ::std::swap;
- swap(a.jobId, b.jobId);
- swap(a.taskId, b.taskId);
- swap(a.processId, b.processId);
- swap(a.jobDescription, b.jobDescription);
- swap(a.creationTime, b.creationTime);
- swap(a.jobStatuses, b.jobStatuses);
- swap(a.computeResourceConsumed, b.computeResourceConsumed);
- swap(a.jobName, b.jobName);
- swap(a.workingDir, b.workingDir);
- swap(a.stdOut, b.stdOut);
- swap(a.stdErr, b.stdErr);
- swap(a.exitCode, b.exitCode);
- swap(a.__isset, b.__isset);
-}
-
-JobModel::JobModel(const JobModel& other6) {
- jobId = other6.jobId;
- taskId = other6.taskId;
- processId = other6.processId;
- jobDescription = other6.jobDescription;
- creationTime = other6.creationTime;
- jobStatuses = other6.jobStatuses;
- computeResourceConsumed = other6.computeResourceConsumed;
- jobName = other6.jobName;
- workingDir = other6.workingDir;
- stdOut = other6.stdOut;
- stdErr = other6.stdErr;
- exitCode = other6.exitCode;
- __isset = other6.__isset;
-}
-JobModel& JobModel::operator=(const JobModel& other7) {
- jobId = other7.jobId;
- taskId = other7.taskId;
- processId = other7.processId;
- jobDescription = other7.jobDescription;
- creationTime = other7.creationTime;
- jobStatuses = other7.jobStatuses;
- computeResourceConsumed = other7.computeResourceConsumed;
- jobName = other7.jobName;
- workingDir = other7.workingDir;
- stdOut = other7.stdOut;
- stdErr = other7.stdErr;
- exitCode = other7.exitCode;
- __isset = other7.__isset;
- return *this;
-}
-void JobModel::printTo(std::ostream& out) const {
- using ::apache::thrift::to_string;
- out << "JobModel(";
- out << "jobId=" << to_string(jobId);
- out << ", " << "taskId=" << to_string(taskId);
- out << ", " << "processId=" << to_string(processId);
- out << ", " << "jobDescription=" << to_string(jobDescription);
- out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>"));
- out << ", " << "jobStatuses="; (__isset.jobStatuses ? (out << to_string(jobStatuses)) : (out << "<null>"));
- out << ", " << "computeResourceConsumed="; (__isset.computeResourceConsumed ? (out << to_string(computeResourceConsumed)) : (out << "<null>"));
- out << ", " << "jobName="; (__isset.jobName ? (out << to_string(jobName)) : (out << "<null>"));
- out << ", " << "workingDir="; (__isset.workingDir ? (out << to_string(workingDir)) : (out << "<null>"));
- out << ", " << "stdOut="; (__isset.stdOut ? (out << to_string(stdOut)) : (out << "<null>"));
- out << ", " << "stdErr="; (__isset.stdErr ? (out << to_string(stdErr)) : (out << "<null>"));
- out << ", " << "exitCode="; (__isset.exitCode ? (out << to_string(exitCode)) : (out << "<null>"));
- out << ")";
-}
-
-}}}} // namespace
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.h
deleted file mode 100644
index 6e4fa48..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/job_model_types.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/**
- * 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.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-#ifndef job_model_TYPES_H
-#define job_model_TYPES_H
-
-#include <iosfwd>
-
-#include <thrift/Thrift.h>
-#include <thrift/TApplicationException.h>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/transport/TTransport.h>
-
-#include <thrift/cxxfunctional.h>
-#include "status_models_types.h"
-
-
-namespace apache { namespace airavata { namespace model { namespace job {
-
-class JobModel;
-
-typedef struct _JobModel__isset {
- _JobModel__isset() : creationTime(false), jobStatuses(false), computeResourceConsumed(false), jobName(false), workingDir(false), stdOut(false), stdErr(false), exitCode(false) {}
- bool creationTime :1;
- bool jobStatuses :1;
- bool computeResourceConsumed :1;
- bool jobName :1;
- bool workingDir :1;
- bool stdOut :1;
- bool stdErr :1;
- bool exitCode :1;
-} _JobModel__isset;
-
-class JobModel {
- public:
-
- JobModel(const JobModel&);
- JobModel& operator=(const JobModel&);
- JobModel() : jobId(), taskId(), processId(), jobDescription(), creationTime(0), computeResourceConsumed(), jobName(), workingDir(), stdOut(), stdErr(), exitCode(0) {
- }
-
- virtual ~JobModel() throw();
- std::string jobId;
- std::string taskId;
- std::string processId;
- std::string jobDescription;
- int64_t creationTime;
- std::vector< ::apache::airavata::model::status::JobStatus> jobStatuses;
- std::string computeResourceConsumed;
- std::string jobName;
- std::string workingDir;
- std::string stdOut;
- std::string stdErr;
- int32_t exitCode;
-
- _JobModel__isset __isset;
-
- void __set_jobId(const std::string& val);
-
- void __set_taskId(const std::string& val);
-
- void __set_processId(const std::string& val);
-
- void __set_jobDescription(const std::string& val);
-
- void __set_creationTime(const int64_t val);
-
- void __set_jobStatuses(const std::vector< ::apache::airavata::model::status::JobStatus> & val);
-
- void __set_computeResourceConsumed(const std::string& val);
-
- void __set_jobName(const std::string& val);
-
- void __set_workingDir(const std::string& val);
-
- void __set_stdOut(const std::string& val);
-
- void __set_stdErr(const std::string& val);
-
- void __set_exitCode(const int32_t val);
-
- bool operator == (const JobModel & rhs) const
- {
- if (!(jobId == rhs.jobId))
- return false;
- if (!(taskId == rhs.taskId))
- return false;
- if (!(processId == rhs.processId))
- return false;
- if (!(jobDescription == rhs.jobDescription))
- return false;
- if (__isset.creationTime != rhs.__isset.creationTime)
- return false;
- else if (__isset.creationTime && !(creationTime == rhs.creationTime))
- return false;
- if (__isset.jobStatuses != rhs.__isset.jobStatuses)
- return false;
- else if (__isset.jobStatuses && !(jobStatuses == rhs.jobStatuses))
- return false;
- if (__isset.computeResourceConsumed != rhs.__isset.computeResourceConsumed)
- return false;
- else if (__isset.computeResourceConsumed && !(computeResourceConsumed == rhs.computeResourceConsumed))
- return false;
- if (__isset.jobName != rhs.__isset.jobName)
- return false;
- else if (__isset.jobName && !(jobName == rhs.jobName))
- return false;
- if (__isset.workingDir != rhs.__isset.workingDir)
- return false;
- else if (__isset.workingDir && !(workingDir == rhs.workingDir))
- return false;
- if (__isset.stdOut != rhs.__isset.stdOut)
- return false;
- else if (__isset.stdOut && !(stdOut == rhs.stdOut))
- return false;
- if (__isset.stdErr != rhs.__isset.stdErr)
- return false;
- else if (__isset.stdErr && !(stdErr == rhs.stdErr))
- return false;
- if (__isset.exitCode != rhs.__isset.exitCode)
- return false;
- else if (__isset.exitCode && !(exitCode == rhs.exitCode))
- return false;
- return true;
- }
- bool operator != (const JobModel &rhs) const {
- return !(*this == rhs);
- }
-
- bool operator < (const JobModel & ) const;
-
- uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
- uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
-
- virtual void printTo(std::ostream& out) const;
-};
-
-void swap(JobModel &a, JobModel &b);
-
-inline std::ostream& operator<<(std::ostream& out, const JobModel& obj)
-{
- obj.printTo(out);
- return out;
-}
-
-}}}} // namespace
-
-#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.cpp
deleted file mode 100644
index 5086851..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * 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
- */
-#include "messagingEvents_constants.h"
-
-namespace apache { namespace airavata { namespace model { namespace messaging { namespace event {
-
-const messagingEventsConstants g_messagingEvents_constants;
-
-messagingEventsConstants::messagingEventsConstants() {
- DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS";
-
-}
-
-}}}}} // namespace
-
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.h
deleted file mode 100644
index b6d7dbc..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messagingEvents_constants.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * 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 messagingEvents_CONSTANTS_H
-#define messagingEvents_CONSTANTS_H
-
-#include "messagingEvents_types.h"
-
-namespace apache { namespace airavata { namespace model { namespace messaging { namespace event {
-
-class messagingEventsConstants {
- public:
- messagingEventsConstants();
-
- std::string DEFAULT_ID;
-};
-
-extern const messagingEventsConstants g_messagingEvents_constants;
-
-}}}}} // namespace
-
-#endif