http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/computeResourceModel_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/computeResourceModel_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/computeResourceModel_types.h deleted file mode 100644 index 78e8382..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/computeResourceModel_types.h +++ /dev/null @@ -1,1088 +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 computeResourceModel_TYPES_H -#define computeResourceModel_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 computeresource { - -struct ResourceJobManagerType { - enum type { - FORK = 0, - PBS = 1, - SLURM = 2, - LSF = 3, - UGE = 4 - }; -}; - -extern const std::map<int, const char*> _ResourceJobManagerType_VALUES_TO_NAMES; - -struct JobManagerCommand { - enum type { - SUBMISSION = 0, - JOB_MONITORING = 1, - DELETION = 2, - CHECK_JOB = 3, - SHOW_QUEUE = 4, - SHOW_RESERVATION = 5, - SHOW_START = 6 - }; -}; - -extern const std::map<int, const char*> _JobManagerCommand_VALUES_TO_NAMES; - -struct FileSystems { - enum type { - HOME = 0, - WORK = 1, - LOCALTMP = 2, - SCRATCH = 3, - ARCHIVE = 4 - }; -}; - -extern const std::map<int, const char*> _FileSystems_VALUES_TO_NAMES; - -struct SecurityProtocol { - enum type { - USERNAME_PASSWORD = 0, - SSH_KEYS = 1, - GSI = 2, - KERBEROS = 3, - OAUTH = 4 - }; -}; - -extern const std::map<int, const char*> _SecurityProtocol_VALUES_TO_NAMES; - -struct JobSubmissionProtocol { - enum type { - LOCAL = 0, - SSH = 1, - GLOBUS = 2, - UNICORE = 3, - CLOUD = 4 - }; -}; - -extern const std::map<int, const char*> _JobSubmissionProtocol_VALUES_TO_NAMES; - -struct MonitorMode { - enum type { - POLL_JOB_MANAGER = 0, - JOB_EMAIL_NOTIFICATION_MONITOR = 1, - XSEDE_AMQP_SUBSCRIBE = 2 - }; -}; - -extern const std::map<int, const char*> _MonitorMode_VALUES_TO_NAMES; - -struct DataMovementProtocol { - enum type { - LOCAL = 0, - SCP = 1, - SFTP = 2, - GridFTP = 3, - UNICORE_STORAGE_SERVICE = 4 - }; -}; - -extern const std::map<int, const char*> _DataMovementProtocol_VALUES_TO_NAMES; - -struct ProviderName { - enum type { - EC2 = 0, - AWSEC2 = 1, - RACKSPACE = 2 - }; -}; - -extern const std::map<int, const char*> _ProviderName_VALUES_TO_NAMES; - -typedef struct _ResourceJobManager__isset { - _ResourceJobManager__isset() : pushMonitoringEndpoint(false), jobManagerBinPath(false), jobManagerCommands(false) {} - bool pushMonitoringEndpoint; - bool jobManagerBinPath; - bool jobManagerCommands; -} _ResourceJobManager__isset; - -class ResourceJobManager { - public: - - static const char* ascii_fingerprint; // = "F61CAF80247D0E44C8D52504F3A43BED"; - static const uint8_t binary_fingerprint[16]; // = {0xF6,0x1C,0xAF,0x80,0x24,0x7D,0x0E,0x44,0xC8,0xD5,0x25,0x04,0xF3,0xA4,0x3B,0xED}; - - ResourceJobManager() : resourceJobManagerId("DO_NOT_SET_AT_CLIENTS"), resourceJobManagerType((ResourceJobManagerType::type)0), pushMonitoringEndpoint(), jobManagerBinPath() { - } - - virtual ~ResourceJobManager() throw() {} - - std::string resourceJobManagerId; - ResourceJobManagerType::type resourceJobManagerType; - std::string pushMonitoringEndpoint; - std::string jobManagerBinPath; - std::map<JobManagerCommand::type, std::string> jobManagerCommands; - - _ResourceJobManager__isset __isset; - - void __set_resourceJobManagerId(const std::string& val) { - resourceJobManagerId = val; - } - - void __set_resourceJobManagerType(const ResourceJobManagerType::type val) { - resourceJobManagerType = val; - } - - void __set_pushMonitoringEndpoint(const std::string& val) { - pushMonitoringEndpoint = val; - __isset.pushMonitoringEndpoint = true; - } - - void __set_jobManagerBinPath(const std::string& val) { - jobManagerBinPath = val; - __isset.jobManagerBinPath = true; - } - - void __set_jobManagerCommands(const std::map<JobManagerCommand::type, std::string> & val) { - jobManagerCommands = val; - __isset.jobManagerCommands = true; - } - - bool operator == (const ResourceJobManager & rhs) const - { - if (!(resourceJobManagerId == rhs.resourceJobManagerId)) - return false; - if (!(resourceJobManagerType == rhs.resourceJobManagerType)) - return false; - if (__isset.pushMonitoringEndpoint != rhs.__isset.pushMonitoringEndpoint) - return false; - else if (__isset.pushMonitoringEndpoint && !(pushMonitoringEndpoint == rhs.pushMonitoringEndpoint)) - return false; - if (__isset.jobManagerBinPath != rhs.__isset.jobManagerBinPath) - return false; - else if (__isset.jobManagerBinPath && !(jobManagerBinPath == rhs.jobManagerBinPath)) - return false; - if (__isset.jobManagerCommands != rhs.__isset.jobManagerCommands) - return false; - else if (__isset.jobManagerCommands && !(jobManagerCommands == rhs.jobManagerCommands)) - return false; - return true; - } - bool operator != (const ResourceJobManager &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ResourceJobManager & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(ResourceJobManager &a, ResourceJobManager &b); - -typedef struct _BatchQueue__isset { - _BatchQueue__isset() : queueDescription(false), maxRunTime(false), maxNodes(false), maxProcessors(false), maxJobsInQueue(false), maxMemory(false) {} - bool queueDescription; - bool maxRunTime; - bool maxNodes; - bool maxProcessors; - bool maxJobsInQueue; - bool maxMemory; -} _BatchQueue__isset; - -class BatchQueue { - public: - - static const char* ascii_fingerprint; // = "ED0A78585E8BA402743AC1D5D510EF9E"; - static const uint8_t binary_fingerprint[16]; // = {0xED,0x0A,0x78,0x58,0x5E,0x8B,0xA4,0x02,0x74,0x3A,0xC1,0xD5,0xD5,0x10,0xEF,0x9E}; - - BatchQueue() : queueName(), queueDescription(), maxRunTime(0), maxNodes(0), maxProcessors(0), maxJobsInQueue(0), maxMemory(0) { - } - - virtual ~BatchQueue() throw() {} - - std::string queueName; - std::string queueDescription; - int32_t maxRunTime; - int32_t maxNodes; - int32_t maxProcessors; - int32_t maxJobsInQueue; - int32_t maxMemory; - - _BatchQueue__isset __isset; - - void __set_queueName(const std::string& val) { - queueName = val; - } - - void __set_queueDescription(const std::string& val) { - queueDescription = val; - __isset.queueDescription = true; - } - - void __set_maxRunTime(const int32_t val) { - maxRunTime = val; - __isset.maxRunTime = true; - } - - void __set_maxNodes(const int32_t val) { - maxNodes = val; - __isset.maxNodes = true; - } - - void __set_maxProcessors(const int32_t val) { - maxProcessors = val; - __isset.maxProcessors = true; - } - - void __set_maxJobsInQueue(const int32_t val) { - maxJobsInQueue = val; - __isset.maxJobsInQueue = true; - } - - void __set_maxMemory(const int32_t val) { - maxMemory = val; - __isset.maxMemory = true; - } - - bool operator == (const BatchQueue & rhs) const - { - if (!(queueName == rhs.queueName)) - return false; - if (__isset.queueDescription != rhs.__isset.queueDescription) - return false; - else if (__isset.queueDescription && !(queueDescription == rhs.queueDescription)) - return false; - if (__isset.maxRunTime != rhs.__isset.maxRunTime) - return false; - else if (__isset.maxRunTime && !(maxRunTime == rhs.maxRunTime)) - return false; - if (__isset.maxNodes != rhs.__isset.maxNodes) - return false; - else if (__isset.maxNodes && !(maxNodes == rhs.maxNodes)) - return false; - if (__isset.maxProcessors != rhs.__isset.maxProcessors) - return false; - else if (__isset.maxProcessors && !(maxProcessors == rhs.maxProcessors)) - return false; - if (__isset.maxJobsInQueue != rhs.__isset.maxJobsInQueue) - return false; - else if (__isset.maxJobsInQueue && !(maxJobsInQueue == rhs.maxJobsInQueue)) - return false; - if (__isset.maxMemory != rhs.__isset.maxMemory) - return false; - else if (__isset.maxMemory && !(maxMemory == rhs.maxMemory)) - return false; - return true; - } - bool operator != (const BatchQueue &rhs) const { - return !(*this == rhs); - } - - bool operator < (const BatchQueue & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(BatchQueue &a, BatchQueue &b); - -typedef struct _SCPDataMovement__isset { - _SCPDataMovement__isset() : alternativeSCPHostName(false), sshPort(true) {} - bool alternativeSCPHostName; - bool sshPort; -} _SCPDataMovement__isset; - -class SCPDataMovement { - public: - - static const char* ascii_fingerprint; // = "63CAE6EE336A7DBD91CCCD6E22628F4A"; - static const uint8_t binary_fingerprint[16]; // = {0x63,0xCA,0xE6,0xEE,0x33,0x6A,0x7D,0xBD,0x91,0xCC,0xCD,0x6E,0x22,0x62,0x8F,0x4A}; - - SCPDataMovement() : dataMovementInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0), alternativeSCPHostName(), sshPort(22) { - } - - virtual ~SCPDataMovement() throw() {} - - std::string dataMovementInterfaceId; - SecurityProtocol::type securityProtocol; - std::string alternativeSCPHostName; - int32_t sshPort; - - _SCPDataMovement__isset __isset; - - void __set_dataMovementInterfaceId(const std::string& val) { - dataMovementInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_alternativeSCPHostName(const std::string& val) { - alternativeSCPHostName = val; - __isset.alternativeSCPHostName = true; - } - - void __set_sshPort(const int32_t val) { - sshPort = val; - __isset.sshPort = true; - } - - bool operator == (const SCPDataMovement & rhs) const - { - if (!(dataMovementInterfaceId == rhs.dataMovementInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (__isset.alternativeSCPHostName != rhs.__isset.alternativeSCPHostName) - return false; - else if (__isset.alternativeSCPHostName && !(alternativeSCPHostName == rhs.alternativeSCPHostName)) - return false; - if (__isset.sshPort != rhs.__isset.sshPort) - return false; - else if (__isset.sshPort && !(sshPort == rhs.sshPort)) - return false; - return true; - } - bool operator != (const SCPDataMovement &rhs) const { - return !(*this == rhs); - } - - bool operator < (const SCPDataMovement & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(SCPDataMovement &a, SCPDataMovement &b); - - -class GridFTPDataMovement { - public: - - static const char* ascii_fingerprint; // = "790EE8B1D56A3B9B76C41DD063726E75"; - static const uint8_t binary_fingerprint[16]; // = {0x79,0x0E,0xE8,0xB1,0xD5,0x6A,0x3B,0x9B,0x76,0xC4,0x1D,0xD0,0x63,0x72,0x6E,0x75}; - - GridFTPDataMovement() : dataMovementInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0) { - } - - virtual ~GridFTPDataMovement() throw() {} - - std::string dataMovementInterfaceId; - SecurityProtocol::type securityProtocol; - std::vector<std::string> gridFTPEndPoints; - - void __set_dataMovementInterfaceId(const std::string& val) { - dataMovementInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_gridFTPEndPoints(const std::vector<std::string> & val) { - gridFTPEndPoints = val; - } - - bool operator == (const GridFTPDataMovement & rhs) const - { - if (!(dataMovementInterfaceId == rhs.dataMovementInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (!(gridFTPEndPoints == rhs.gridFTPEndPoints)) - return false; - return true; - } - bool operator != (const GridFTPDataMovement &rhs) const { - return !(*this == rhs); - } - - bool operator < (const GridFTPDataMovement & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(GridFTPDataMovement &a, GridFTPDataMovement &b); - - -class UnicoreDataMovement { - public: - - static const char* ascii_fingerprint; // = "D9F4CFE2F293A8B1052FD3031DD2C847"; - static const uint8_t binary_fingerprint[16]; // = {0xD9,0xF4,0xCF,0xE2,0xF2,0x93,0xA8,0xB1,0x05,0x2F,0xD3,0x03,0x1D,0xD2,0xC8,0x47}; - - UnicoreDataMovement() : dataMovementInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0), unicoreEndPointURL() { - } - - virtual ~UnicoreDataMovement() throw() {} - - std::string dataMovementInterfaceId; - SecurityProtocol::type securityProtocol; - std::string unicoreEndPointURL; - - void __set_dataMovementInterfaceId(const std::string& val) { - dataMovementInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_unicoreEndPointURL(const std::string& val) { - unicoreEndPointURL = val; - } - - bool operator == (const UnicoreDataMovement & rhs) const - { - if (!(dataMovementInterfaceId == rhs.dataMovementInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (!(unicoreEndPointURL == rhs.unicoreEndPointURL)) - return false; - return true; - } - bool operator != (const UnicoreDataMovement &rhs) const { - return !(*this == rhs); - } - - bool operator < (const UnicoreDataMovement & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(UnicoreDataMovement &a, UnicoreDataMovement &b); - - -class LOCALSubmission { - public: - - static const char* ascii_fingerprint; // = "A5A35C842CBE1CA9D6A13C5974C6FB8F"; - static const uint8_t binary_fingerprint[16]; // = {0xA5,0xA3,0x5C,0x84,0x2C,0xBE,0x1C,0xA9,0xD6,0xA1,0x3C,0x59,0x74,0xC6,0xFB,0x8F}; - - LOCALSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS") { - } - - virtual ~LOCALSubmission() throw() {} - - std::string jobSubmissionInterfaceId; - ResourceJobManager resourceJobManager; - - void __set_jobSubmissionInterfaceId(const std::string& val) { - jobSubmissionInterfaceId = val; - } - - void __set_resourceJobManager(const ResourceJobManager& val) { - resourceJobManager = val; - } - - bool operator == (const LOCALSubmission & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(resourceJobManager == rhs.resourceJobManager)) - return false; - return true; - } - bool operator != (const LOCALSubmission &rhs) const { - return !(*this == rhs); - } - - bool operator < (const LOCALSubmission & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(LOCALSubmission &a, LOCALSubmission &b); - - -class LOCALDataMovement { - public: - - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - LOCALDataMovement() : dataMovementInterfaceId("DO_NOT_SET_AT_CLIENTS") { - } - - virtual ~LOCALDataMovement() throw() {} - - std::string dataMovementInterfaceId; - - void __set_dataMovementInterfaceId(const std::string& val) { - dataMovementInterfaceId = val; - } - - bool operator == (const LOCALDataMovement & rhs) const - { - if (!(dataMovementInterfaceId == rhs.dataMovementInterfaceId)) - return false; - return true; - } - bool operator != (const LOCALDataMovement &rhs) const { - return !(*this == rhs); - } - - bool operator < (const LOCALDataMovement & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(LOCALDataMovement &a, LOCALDataMovement &b); - -typedef struct _SSHJobSubmission__isset { - _SSHJobSubmission__isset() : alternativeSSHHostName(false), sshPort(true), monitorMode(false) {} - bool alternativeSSHHostName; - bool sshPort; - bool monitorMode; -} _SSHJobSubmission__isset; - -class SSHJobSubmission { - public: - - static const char* ascii_fingerprint; // = "A62183DAA7AFF027173705420A9D99D0"; - static const uint8_t binary_fingerprint[16]; // = {0xA6,0x21,0x83,0xDA,0xA7,0xAF,0xF0,0x27,0x17,0x37,0x05,0x42,0x0A,0x9D,0x99,0xD0}; - - SSHJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0), alternativeSSHHostName(), sshPort(22), monitorMode((MonitorMode::type)0) { - } - - virtual ~SSHJobSubmission() throw() {} - - std::string jobSubmissionInterfaceId; - SecurityProtocol::type securityProtocol; - ResourceJobManager resourceJobManager; - std::string alternativeSSHHostName; - int32_t sshPort; - MonitorMode::type monitorMode; - - _SSHJobSubmission__isset __isset; - - void __set_jobSubmissionInterfaceId(const std::string& val) { - jobSubmissionInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_resourceJobManager(const ResourceJobManager& val) { - resourceJobManager = val; - } - - void __set_alternativeSSHHostName(const std::string& val) { - alternativeSSHHostName = val; - __isset.alternativeSSHHostName = true; - } - - void __set_sshPort(const int32_t val) { - sshPort = val; - __isset.sshPort = true; - } - - void __set_monitorMode(const MonitorMode::type val) { - monitorMode = val; - __isset.monitorMode = true; - } - - bool operator == (const SSHJobSubmission & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (!(resourceJobManager == rhs.resourceJobManager)) - return false; - if (__isset.alternativeSSHHostName != rhs.__isset.alternativeSSHHostName) - return false; - else if (__isset.alternativeSSHHostName && !(alternativeSSHHostName == rhs.alternativeSSHHostName)) - return false; - if (__isset.sshPort != rhs.__isset.sshPort) - return false; - else if (__isset.sshPort && !(sshPort == rhs.sshPort)) - return false; - if (__isset.monitorMode != rhs.__isset.monitorMode) - return false; - else if (__isset.monitorMode && !(monitorMode == rhs.monitorMode)) - return false; - return true; - } - bool operator != (const SSHJobSubmission &rhs) const { - return !(*this == rhs); - } - - bool operator < (const SSHJobSubmission & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(SSHJobSubmission &a, SSHJobSubmission &b); - -typedef struct _GlobusJobSubmission__isset { - _GlobusJobSubmission__isset() : globusGateKeeperEndPoint(false) {} - bool globusGateKeeperEndPoint; -} _GlobusJobSubmission__isset; - -class GlobusJobSubmission { - public: - - static const char* ascii_fingerprint; // = "AF422FFD77BB68BA57079B8B33BC8CF7"; - static const uint8_t binary_fingerprint[16]; // = {0xAF,0x42,0x2F,0xFD,0x77,0xBB,0x68,0xBA,0x57,0x07,0x9B,0x8B,0x33,0xBC,0x8C,0xF7}; - - GlobusJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0) { - } - - virtual ~GlobusJobSubmission() throw() {} - - std::string jobSubmissionInterfaceId; - SecurityProtocol::type securityProtocol; - std::vector<std::string> globusGateKeeperEndPoint; - - _GlobusJobSubmission__isset __isset; - - void __set_jobSubmissionInterfaceId(const std::string& val) { - jobSubmissionInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_globusGateKeeperEndPoint(const std::vector<std::string> & val) { - globusGateKeeperEndPoint = val; - __isset.globusGateKeeperEndPoint = true; - } - - bool operator == (const GlobusJobSubmission & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (__isset.globusGateKeeperEndPoint != rhs.__isset.globusGateKeeperEndPoint) - return false; - else if (__isset.globusGateKeeperEndPoint && !(globusGateKeeperEndPoint == rhs.globusGateKeeperEndPoint)) - return false; - return true; - } - bool operator != (const GlobusJobSubmission &rhs) const { - return !(*this == rhs); - } - - bool operator < (const GlobusJobSubmission & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(GlobusJobSubmission &a, GlobusJobSubmission &b); - - -class UnicoreJobSubmission { - public: - - static const char* ascii_fingerprint; // = "D9F4CFE2F293A8B1052FD3031DD2C847"; - static const uint8_t binary_fingerprint[16]; // = {0xD9,0xF4,0xCF,0xE2,0xF2,0x93,0xA8,0xB1,0x05,0x2F,0xD3,0x03,0x1D,0xD2,0xC8,0x47}; - - UnicoreJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0), unicoreEndPointURL() { - } - - virtual ~UnicoreJobSubmission() throw() {} - - std::string jobSubmissionInterfaceId; - SecurityProtocol::type securityProtocol; - std::string unicoreEndPointURL; - - void __set_jobSubmissionInterfaceId(const std::string& val) { - jobSubmissionInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_unicoreEndPointURL(const std::string& val) { - unicoreEndPointURL = val; - } - - bool operator == (const UnicoreJobSubmission & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (!(unicoreEndPointURL == rhs.unicoreEndPointURL)) - return false; - return true; - } - bool operator != (const UnicoreJobSubmission &rhs) const { - return !(*this == rhs); - } - - bool operator < (const UnicoreJobSubmission & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(UnicoreJobSubmission &a, UnicoreJobSubmission &b); - - -class CloudJobSubmission { - public: - - static const char* ascii_fingerprint; // = "F98AE2E6E51F2426504F2566EB71B5CC"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0x8A,0xE2,0xE6,0xE5,0x1F,0x24,0x26,0x50,0x4F,0x25,0x66,0xEB,0x71,0xB5,0xCC}; - - CloudJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol((SecurityProtocol::type)0), nodeId(), executableType(), providerName((ProviderName::type)0), userAccountName() { - } - - virtual ~CloudJobSubmission() throw() {} - - std::string jobSubmissionInterfaceId; - SecurityProtocol::type securityProtocol; - std::string nodeId; - std::string executableType; - ProviderName::type providerName; - std::string userAccountName; - - void __set_jobSubmissionInterfaceId(const std::string& val) { - jobSubmissionInterfaceId = val; - } - - void __set_securityProtocol(const SecurityProtocol::type val) { - securityProtocol = val; - } - - void __set_nodeId(const std::string& val) { - nodeId = val; - } - - void __set_executableType(const std::string& val) { - executableType = val; - } - - void __set_providerName(const ProviderName::type val) { - providerName = val; - } - - void __set_userAccountName(const std::string& val) { - userAccountName = val; - } - - bool operator == (const CloudJobSubmission & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - return false; - if (!(nodeId == rhs.nodeId)) - return false; - if (!(executableType == rhs.executableType)) - return false; - if (!(providerName == rhs.providerName)) - return false; - if (!(userAccountName == rhs.userAccountName)) - return false; - return true; - } - bool operator != (const CloudJobSubmission &rhs) const { - return !(*this == rhs); - } - - bool operator < (const CloudJobSubmission & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(CloudJobSubmission &a, CloudJobSubmission &b); - - -class JobSubmissionInterface { - public: - - static const char* ascii_fingerprint; // = "A0A4DD7B8243FB842E64EAC6E5DA6C7B"; - static const uint8_t binary_fingerprint[16]; // = {0xA0,0xA4,0xDD,0x7B,0x82,0x43,0xFB,0x84,0x2E,0x64,0xEA,0xC6,0xE5,0xDA,0x6C,0x7B}; - - JobSubmissionInterface() : jobSubmissionInterfaceId(), jobSubmissionProtocol((JobSubmissionProtocol::type)0), priorityOrder(0) { - } - - virtual ~JobSubmissionInterface() throw() {} - - std::string jobSubmissionInterfaceId; - JobSubmissionProtocol::type jobSubmissionProtocol; - int32_t priorityOrder; - - void __set_jobSubmissionInterfaceId(const std::string& val) { - jobSubmissionInterfaceId = val; - } - - void __set_jobSubmissionProtocol(const JobSubmissionProtocol::type val) { - jobSubmissionProtocol = val; - } - - void __set_priorityOrder(const int32_t val) { - priorityOrder = val; - } - - bool operator == (const JobSubmissionInterface & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(jobSubmissionProtocol == rhs.jobSubmissionProtocol)) - return false; - if (!(priorityOrder == rhs.priorityOrder)) - return false; - return true; - } - bool operator != (const JobSubmissionInterface &rhs) const { - return !(*this == rhs); - } - - bool operator < (const JobSubmissionInterface & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(JobSubmissionInterface &a, JobSubmissionInterface &b); - - -class DataMovementInterface { - public: - - static const char* ascii_fingerprint; // = "A0A4DD7B8243FB842E64EAC6E5DA6C7B"; - static const uint8_t binary_fingerprint[16]; // = {0xA0,0xA4,0xDD,0x7B,0x82,0x43,0xFB,0x84,0x2E,0x64,0xEA,0xC6,0xE5,0xDA,0x6C,0x7B}; - - DataMovementInterface() : dataMovementInterfaceId(), dataMovementProtocol((DataMovementProtocol::type)0), priorityOrder(0) { - } - - virtual ~DataMovementInterface() throw() {} - - std::string dataMovementInterfaceId; - DataMovementProtocol::type dataMovementProtocol; - int32_t priorityOrder; - - void __set_dataMovementInterfaceId(const std::string& val) { - dataMovementInterfaceId = val; - } - - void __set_dataMovementProtocol(const DataMovementProtocol::type val) { - dataMovementProtocol = val; - } - - void __set_priorityOrder(const int32_t val) { - priorityOrder = val; - } - - bool operator == (const DataMovementInterface & rhs) const - { - if (!(dataMovementInterfaceId == rhs.dataMovementInterfaceId)) - return false; - if (!(dataMovementProtocol == rhs.dataMovementProtocol)) - return false; - if (!(priorityOrder == rhs.priorityOrder)) - return false; - return true; - } - bool operator != (const DataMovementInterface &rhs) const { - return !(*this == rhs); - } - - bool operator < (const DataMovementInterface & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(DataMovementInterface &a, DataMovementInterface &b); - -typedef struct _ComputeResourceDescription__isset { - _ComputeResourceDescription__isset() : hostAliases(false), ipAddresses(false), resourceDescription(false), batchQueues(false), fileSystems(false), jobSubmissionInterfaces(false), dataMovementInterfaces(false), maxMemoryPerNode(false) {} - bool hostAliases; - bool ipAddresses; - bool resourceDescription; - bool batchQueues; - bool fileSystems; - bool jobSubmissionInterfaces; - bool dataMovementInterfaces; - bool maxMemoryPerNode; -} _ComputeResourceDescription__isset; - -class ComputeResourceDescription { - public: - - static const char* ascii_fingerprint; // = "3CD4212965217787DCD6081F1744069F"; - static const uint8_t binary_fingerprint[16]; // = {0x3C,0xD4,0x21,0x29,0x65,0x21,0x77,0x87,0xDC,0xD6,0x08,0x1F,0x17,0x44,0x06,0x9F}; - - ComputeResourceDescription() : computeResourceId("DO_NOT_SET_AT_CLIENTS"), hostName(), resourceDescription(), maxMemoryPerNode(0) { - } - - virtual ~ComputeResourceDescription() throw() {} - - std::string computeResourceId; - std::string hostName; - std::vector<std::string> hostAliases; - std::vector<std::string> ipAddresses; - std::string resourceDescription; - std::vector<BatchQueue> batchQueues; - std::map<FileSystems::type, std::string> fileSystems; - std::vector<JobSubmissionInterface> jobSubmissionInterfaces; - std::vector<DataMovementInterface> dataMovementInterfaces; - int32_t maxMemoryPerNode; - - _ComputeResourceDescription__isset __isset; - - void __set_computeResourceId(const std::string& val) { - computeResourceId = val; - } - - void __set_hostName(const std::string& val) { - hostName = val; - } - - void __set_hostAliases(const std::vector<std::string> & val) { - hostAliases = val; - __isset.hostAliases = true; - } - - void __set_ipAddresses(const std::vector<std::string> & val) { - ipAddresses = val; - __isset.ipAddresses = true; - } - - void __set_resourceDescription(const std::string& val) { - resourceDescription = val; - __isset.resourceDescription = true; - } - - void __set_batchQueues(const std::vector<BatchQueue> & val) { - batchQueues = val; - __isset.batchQueues = true; - } - - void __set_fileSystems(const std::map<FileSystems::type, std::string> & val) { - fileSystems = val; - __isset.fileSystems = true; - } - - void __set_jobSubmissionInterfaces(const std::vector<JobSubmissionInterface> & val) { - jobSubmissionInterfaces = val; - __isset.jobSubmissionInterfaces = true; - } - - void __set_dataMovementInterfaces(const std::vector<DataMovementInterface> & val) { - dataMovementInterfaces = val; - __isset.dataMovementInterfaces = true; - } - - void __set_maxMemoryPerNode(const int32_t val) { - maxMemoryPerNode = val; - __isset.maxMemoryPerNode = true; - } - - bool operator == (const ComputeResourceDescription & rhs) const - { - if (!(computeResourceId == rhs.computeResourceId)) - return false; - if (!(hostName == rhs.hostName)) - return false; - if (__isset.hostAliases != rhs.__isset.hostAliases) - return false; - else if (__isset.hostAliases && !(hostAliases == rhs.hostAliases)) - return false; - if (__isset.ipAddresses != rhs.__isset.ipAddresses) - return false; - else if (__isset.ipAddresses && !(ipAddresses == rhs.ipAddresses)) - return false; - if (__isset.resourceDescription != rhs.__isset.resourceDescription) - return false; - else if (__isset.resourceDescription && !(resourceDescription == rhs.resourceDescription)) - return false; - if (__isset.batchQueues != rhs.__isset.batchQueues) - return false; - else if (__isset.batchQueues && !(batchQueues == rhs.batchQueues)) - return false; - if (__isset.fileSystems != rhs.__isset.fileSystems) - return false; - else if (__isset.fileSystems && !(fileSystems == rhs.fileSystems)) - return false; - if (__isset.jobSubmissionInterfaces != rhs.__isset.jobSubmissionInterfaces) - return false; - else if (__isset.jobSubmissionInterfaces && !(jobSubmissionInterfaces == rhs.jobSubmissionInterfaces)) - return false; - if (__isset.dataMovementInterfaces != rhs.__isset.dataMovementInterfaces) - return false; - else if (__isset.dataMovementInterfaces && !(dataMovementInterfaces == rhs.dataMovementInterfaces)) - return false; - if (__isset.maxMemoryPerNode != rhs.__isset.maxMemoryPerNode) - return false; - else if (__isset.maxMemoryPerNode && !(maxMemoryPerNode == rhs.maxMemoryPerNode)) - return false; - return true; - } - bool operator != (const ComputeResourceDescription &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ComputeResourceDescription & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(ComputeResourceDescription &a, ComputeResourceDescription &b); - -}}}}} // namespace - -#endif
http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_constants.cpp deleted file mode 100644 index c4fb5fd..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_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.2) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "data_resource_models_constants.h" - -namespace apache { namespace airavata { namespace model { namespace data { namespace resource { - -const data_resource_modelsConstants g_data_resource_models_constants; - -data_resource_modelsConstants::data_resource_modelsConstants() { -} - -}}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_constants.h deleted file mode 100644 index 62881c7..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_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.2) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef data_resource_models_CONSTANTS_H -#define data_resource_models_CONSTANTS_H - -#include "data_resource_models_types.h" - -namespace apache { namespace airavata { namespace model { namespace data { namespace resource { - -class data_resource_modelsConstants { - public: - data_resource_modelsConstants(); - -}; - -extern const data_resource_modelsConstants g_data_resource_models_constants; - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.cpp deleted file mode 100644 index 863c082..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.cpp +++ /dev/null @@ -1,707 +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.2) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "data_resource_models_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace data { namespace resource { - -int _kReplicaLocationCategoryValues[] = { - ReplicaLocationCategory::GATEWAY_DATA_STORE, - ReplicaLocationCategory::COMPUTE_RESOURCE, - ReplicaLocationCategory::LONG_TERM_STORAGE_RESOURCE, - ReplicaLocationCategory::OTHER -}; -const char* _kReplicaLocationCategoryNames[] = { - "GATEWAY_DATA_STORE", - "COMPUTE_RESOURCE", - "LONG_TERM_STORAGE_RESOURCE", - "OTHER" -}; -const std::map<int, const char*> _ReplicaLocationCategory_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kReplicaLocationCategoryValues, _kReplicaLocationCategoryNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kReplicaPersistentTypeValues[] = { - ReplicaPersistentType::TRANSIENT, - ReplicaPersistentType::PERSISTENT -}; -const char* _kReplicaPersistentTypeNames[] = { - "TRANSIENT", - "PERSISTENT" -}; -const std::map<int, const char*> _ReplicaPersistentType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kReplicaPersistentTypeValues, _kReplicaPersistentTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - - -DataResourceModel::~DataResourceModel() throw() { -} - - -void DataResourceModel::__set_resourceId(const std::string& val) { - this->resourceId = val; -__isset.resourceId = true; -} - -void DataResourceModel::__set_resourceName(const std::string& val) { - this->resourceName = val; -__isset.resourceName = true; -} - -void DataResourceModel::__set_resourceDescription(const std::string& val) { - this->resourceDescription = val; -__isset.resourceDescription = true; -} - -void DataResourceModel::__set_ownerName(const std::string& val) { - this->ownerName = val; -__isset.ownerName = true; -} - -void DataResourceModel::__set_resourceSize(const int32_t val) { - this->resourceSize = val; -__isset.resourceSize = true; -} - -void DataResourceModel::__set_creationTime(const int64_t val) { - this->creationTime = val; -__isset.creationTime = true; -} - -void DataResourceModel::__set_lastModifiedTime(const int64_t val) { - this->lastModifiedTime = val; -__isset.lastModifiedTime = true; -} - -void DataResourceModel::__set_resourceMetadata(const std::map<std::string, std::string> & val) { - this->resourceMetadata = val; -__isset.resourceMetadata = true; -} - -void DataResourceModel::__set_dataReplicaLocations(const std::vector<DataReplicaLocationModel> & val) { - this->dataReplicaLocations = val; -__isset.dataReplicaLocations = true; -} - -const char* DataResourceModel::ascii_fingerprint = "1320CB0B65DC2E766D01B7D3255179F7"; -const uint8_t DataResourceModel::binary_fingerprint[16] = {0x13,0x20,0xCB,0x0B,0x65,0xDC,0x2E,0x76,0x6D,0x01,0xB7,0xD3,0x25,0x51,0x79,0xF7}; - -uint32_t DataResourceModel::read(::apache::thrift::protocol::TProtocol* 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->resourceId); - this->__isset.resourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceName); - this->__isset.resourceName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceDescription); - this->__isset.resourceDescription = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->ownerName); - this->__isset.ownerName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->resourceSize); - this->__isset.resourceSize = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->creationTime); - this->__isset.creationTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->lastModifiedTime); - this->__isset.lastModifiedTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->resourceMetadata.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _ktype1; - ::apache::thrift::protocol::TType _vtype2; - xfer += iprot->readMapBegin(_ktype1, _vtype2, _size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) - { - std::string _key5; - xfer += iprot->readString(_key5); - std::string& _val6 = this->resourceMetadata[_key5]; - xfer += iprot->readString(_val6); - } - xfer += iprot->readMapEnd(); - } - this->__isset.resourceMetadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->dataReplicaLocations.clear(); - uint32_t _size7; - ::apache::thrift::protocol::TType _etype10; - xfer += iprot->readListBegin(_etype10, _size7); - this->dataReplicaLocations.resize(_size7); - uint32_t _i11; - for (_i11 = 0; _i11 < _size7; ++_i11) - { - xfer += this->dataReplicaLocations[_i11].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.dataReplicaLocations = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t DataResourceModel::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("DataResourceModel"); - - if (this->__isset.resourceId) { - xfer += oprot->writeFieldBegin("resourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->resourceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceName) { - xfer += oprot->writeFieldBegin("resourceName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->resourceName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceDescription) { - xfer += oprot->writeFieldBegin("resourceDescription", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->resourceDescription); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.ownerName) { - xfer += oprot->writeFieldBegin("ownerName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->ownerName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceSize) { - xfer += oprot->writeFieldBegin("resourceSize", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->resourceSize); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.creationTime) { - xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->creationTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.lastModifiedTime) { - xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->lastModifiedTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceMetadata) { - xfer += oprot->writeFieldBegin("resourceMetadata", ::apache::thrift::protocol::T_MAP, 8); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->resourceMetadata.size())); - std::map<std::string, std::string> ::const_iterator _iter12; - for (_iter12 = this->resourceMetadata.begin(); _iter12 != this->resourceMetadata.end(); ++_iter12) - { - xfer += oprot->writeString(_iter12->first); - xfer += oprot->writeString(_iter12->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.dataReplicaLocations) { - xfer += oprot->writeFieldBegin("dataReplicaLocations", ::apache::thrift::protocol::T_LIST, 9); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->dataReplicaLocations.size())); - std::vector<DataReplicaLocationModel> ::const_iterator _iter13; - for (_iter13 = this->dataReplicaLocations.begin(); _iter13 != this->dataReplicaLocations.end(); ++_iter13) - { - xfer += (*_iter13).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - -void swap(DataResourceModel &a, DataResourceModel &b) { - using ::std::swap; - swap(a.resourceId, b.resourceId); - swap(a.resourceName, b.resourceName); - swap(a.resourceDescription, b.resourceDescription); - swap(a.ownerName, b.ownerName); - swap(a.resourceSize, b.resourceSize); - swap(a.creationTime, b.creationTime); - swap(a.lastModifiedTime, b.lastModifiedTime); - swap(a.resourceMetadata, b.resourceMetadata); - swap(a.dataReplicaLocations, b.dataReplicaLocations); - swap(a.__isset, b.__isset); -} - -DataResourceModel::DataResourceModel(const DataResourceModel& other14) { - resourceId = other14.resourceId; - resourceName = other14.resourceName; - resourceDescription = other14.resourceDescription; - ownerName = other14.ownerName; - resourceSize = other14.resourceSize; - creationTime = other14.creationTime; - lastModifiedTime = other14.lastModifiedTime; - resourceMetadata = other14.resourceMetadata; - dataReplicaLocations = other14.dataReplicaLocations; - __isset = other14.__isset; -} -DataResourceModel& DataResourceModel::operator=(const DataResourceModel& other15) { - resourceId = other15.resourceId; - resourceName = other15.resourceName; - resourceDescription = other15.resourceDescription; - ownerName = other15.ownerName; - resourceSize = other15.resourceSize; - creationTime = other15.creationTime; - lastModifiedTime = other15.lastModifiedTime; - resourceMetadata = other15.resourceMetadata; - dataReplicaLocations = other15.dataReplicaLocations; - __isset = other15.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DataResourceModel& obj) { - using apache::thrift::to_string; - out << "DataResourceModel("; - out << "resourceId="; (obj.__isset.resourceId ? (out << to_string(obj.resourceId)) : (out << "<null>")); - out << ", " << "resourceName="; (obj.__isset.resourceName ? (out << to_string(obj.resourceName)) : (out << "<null>")); - out << ", " << "resourceDescription="; (obj.__isset.resourceDescription ? (out << to_string(obj.resourceDescription)) : (out << "<null>")); - out << ", " << "ownerName="; (obj.__isset.ownerName ? (out << to_string(obj.ownerName)) : (out << "<null>")); - out << ", " << "resourceSize="; (obj.__isset.resourceSize ? (out << to_string(obj.resourceSize)) : (out << "<null>")); - out << ", " << "creationTime="; (obj.__isset.creationTime ? (out << to_string(obj.creationTime)) : (out << "<null>")); - out << ", " << "lastModifiedTime="; (obj.__isset.lastModifiedTime ? (out << to_string(obj.lastModifiedTime)) : (out << "<null>")); - out << ", " << "resourceMetadata="; (obj.__isset.resourceMetadata ? (out << to_string(obj.resourceMetadata)) : (out << "<null>")); - out << ", " << "dataReplicaLocations="; (obj.__isset.dataReplicaLocations ? (out << to_string(obj.dataReplicaLocations)) : (out << "<null>")); - out << ")"; - return out; -} - - -DataReplicaLocationModel::~DataReplicaLocationModel() throw() { -} - - -void DataReplicaLocationModel::__set_replicaId(const std::string& val) { - this->replicaId = val; -__isset.replicaId = true; -} - -void DataReplicaLocationModel::__set_resourceId(const std::string& val) { - this->resourceId = val; -__isset.resourceId = true; -} - -void DataReplicaLocationModel::__set_replicaName(const std::string& val) { - this->replicaName = val; -__isset.replicaName = true; -} - -void DataReplicaLocationModel::__set_replicaDescription(const std::string& val) { - this->replicaDescription = val; -__isset.replicaDescription = true; -} - -void DataReplicaLocationModel::__set_creationTime(const int64_t val) { - this->creationTime = val; -__isset.creationTime = true; -} - -void DataReplicaLocationModel::__set_lastModifiedTime(const int64_t val) { - this->lastModifiedTime = val; -__isset.lastModifiedTime = true; -} - -void DataReplicaLocationModel::__set_replicaLocationCategory(const ReplicaLocationCategory::type val) { - this->replicaLocationCategory = val; -__isset.replicaLocationCategory = true; -} - -void DataReplicaLocationModel::__set_replicaPersistentType(const ReplicaPersistentType::type val) { - this->replicaPersistentType = val; -__isset.replicaPersistentType = true; -} - -void DataReplicaLocationModel::__set_dataLocations(const std::vector<std::string> & val) { - this->dataLocations = val; -__isset.dataLocations = true; -} - -void DataReplicaLocationModel::__set_replicaMetadata(const std::map<std::string, std::string> & val) { - this->replicaMetadata = val; -__isset.replicaMetadata = true; -} - -const char* DataReplicaLocationModel::ascii_fingerprint = "781A1748A91BB45A79F33F79DC9474F1"; -const uint8_t DataReplicaLocationModel::binary_fingerprint[16] = {0x78,0x1A,0x17,0x48,0xA9,0x1B,0xB4,0x5A,0x79,0xF3,0x3F,0x79,0xDC,0x94,0x74,0xF1}; - -uint32_t DataReplicaLocationModel::read(::apache::thrift::protocol::TProtocol* 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->replicaId); - this->__isset.replicaId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceId); - this->__isset.resourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->replicaName); - this->__isset.replicaName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->replicaDescription); - this->__isset.replicaDescription = 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_I64) { - xfer += iprot->readI64(this->lastModifiedTime); - this->__isset.lastModifiedTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast16; - xfer += iprot->readI32(ecast16); - this->replicaLocationCategory = (ReplicaLocationCategory::type)ecast16; - this->__isset.replicaLocationCategory = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast17; - xfer += iprot->readI32(ecast17); - this->replicaPersistentType = (ReplicaPersistentType::type)ecast17; - this->__isset.replicaPersistentType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->dataLocations.clear(); - uint32_t _size18; - ::apache::thrift::protocol::TType _etype21; - xfer += iprot->readListBegin(_etype21, _size18); - this->dataLocations.resize(_size18); - uint32_t _i22; - for (_i22 = 0; _i22 < _size18; ++_i22) - { - xfer += iprot->readString(this->dataLocations[_i22]); - } - xfer += iprot->readListEnd(); - } - this->__isset.dataLocations = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->replicaMetadata.clear(); - uint32_t _size23; - ::apache::thrift::protocol::TType _ktype24; - ::apache::thrift::protocol::TType _vtype25; - xfer += iprot->readMapBegin(_ktype24, _vtype25, _size23); - uint32_t _i27; - for (_i27 = 0; _i27 < _size23; ++_i27) - { - std::string _key28; - xfer += iprot->readString(_key28); - std::string& _val29 = this->replicaMetadata[_key28]; - xfer += iprot->readString(_val29); - } - xfer += iprot->readMapEnd(); - } - this->__isset.replicaMetadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t DataReplicaLocationModel::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("DataReplicaLocationModel"); - - if (this->__isset.replicaId) { - xfer += oprot->writeFieldBegin("replicaId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->replicaId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceId) { - xfer += oprot->writeFieldBegin("resourceId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->resourceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaName) { - xfer += oprot->writeFieldBegin("replicaName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->replicaName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaDescription) { - xfer += oprot->writeFieldBegin("replicaDescription", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->replicaDescription); - 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.lastModifiedTime) { - xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->lastModifiedTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaLocationCategory) { - xfer += oprot->writeFieldBegin("replicaLocationCategory", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->replicaLocationCategory); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaPersistentType) { - xfer += oprot->writeFieldBegin("replicaPersistentType", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32((int32_t)this->replicaPersistentType); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.dataLocations) { - xfer += oprot->writeFieldBegin("dataLocations", ::apache::thrift::protocol::T_LIST, 9); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->dataLocations.size())); - std::vector<std::string> ::const_iterator _iter30; - for (_iter30 = this->dataLocations.begin(); _iter30 != this->dataLocations.end(); ++_iter30) - { - xfer += oprot->writeString((*_iter30)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaMetadata) { - xfer += oprot->writeFieldBegin("replicaMetadata", ::apache::thrift::protocol::T_MAP, 10); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->replicaMetadata.size())); - std::map<std::string, std::string> ::const_iterator _iter31; - for (_iter31 = this->replicaMetadata.begin(); _iter31 != this->replicaMetadata.end(); ++_iter31) - { - xfer += oprot->writeString(_iter31->first); - xfer += oprot->writeString(_iter31->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - -void swap(DataReplicaLocationModel &a, DataReplicaLocationModel &b) { - using ::std::swap; - swap(a.replicaId, b.replicaId); - swap(a.resourceId, b.resourceId); - swap(a.replicaName, b.replicaName); - swap(a.replicaDescription, b.replicaDescription); - swap(a.creationTime, b.creationTime); - swap(a.lastModifiedTime, b.lastModifiedTime); - swap(a.replicaLocationCategory, b.replicaLocationCategory); - swap(a.replicaPersistentType, b.replicaPersistentType); - swap(a.dataLocations, b.dataLocations); - swap(a.replicaMetadata, b.replicaMetadata); - swap(a.__isset, b.__isset); -} - -DataReplicaLocationModel::DataReplicaLocationModel(const DataReplicaLocationModel& other32) { - replicaId = other32.replicaId; - resourceId = other32.resourceId; - replicaName = other32.replicaName; - replicaDescription = other32.replicaDescription; - creationTime = other32.creationTime; - lastModifiedTime = other32.lastModifiedTime; - replicaLocationCategory = other32.replicaLocationCategory; - replicaPersistentType = other32.replicaPersistentType; - dataLocations = other32.dataLocations; - replicaMetadata = other32.replicaMetadata; - __isset = other32.__isset; -} -DataReplicaLocationModel& DataReplicaLocationModel::operator=(const DataReplicaLocationModel& other33) { - replicaId = other33.replicaId; - resourceId = other33.resourceId; - replicaName = other33.replicaName; - replicaDescription = other33.replicaDescription; - creationTime = other33.creationTime; - lastModifiedTime = other33.lastModifiedTime; - replicaLocationCategory = other33.replicaLocationCategory; - replicaPersistentType = other33.replicaPersistentType; - dataLocations = other33.dataLocations; - replicaMetadata = other33.replicaMetadata; - __isset = other33.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DataReplicaLocationModel& obj) { - using apache::thrift::to_string; - out << "DataReplicaLocationModel("; - out << "replicaId="; (obj.__isset.replicaId ? (out << to_string(obj.replicaId)) : (out << "<null>")); - out << ", " << "resourceId="; (obj.__isset.resourceId ? (out << to_string(obj.resourceId)) : (out << "<null>")); - out << ", " << "replicaName="; (obj.__isset.replicaName ? (out << to_string(obj.replicaName)) : (out << "<null>")); - out << ", " << "replicaDescription="; (obj.__isset.replicaDescription ? (out << to_string(obj.replicaDescription)) : (out << "<null>")); - out << ", " << "creationTime="; (obj.__isset.creationTime ? (out << to_string(obj.creationTime)) : (out << "<null>")); - out << ", " << "lastModifiedTime="; (obj.__isset.lastModifiedTime ? (out << to_string(obj.lastModifiedTime)) : (out << "<null>")); - out << ", " << "replicaLocationCategory="; (obj.__isset.replicaLocationCategory ? (out << to_string(obj.replicaLocationCategory)) : (out << "<null>")); - out << ", " << "replicaPersistentType="; (obj.__isset.replicaPersistentType ? (out << to_string(obj.replicaPersistentType)) : (out << "<null>")); - out << ", " << "dataLocations="; (obj.__isset.dataLocations ? (out << to_string(obj.dataLocations)) : (out << "<null>")); - out << ", " << "replicaMetadata="; (obj.__isset.replicaMetadata ? (out << to_string(obj.replicaMetadata)) : (out << "<null>")); - out << ")"; - return out; -} - -}}}}} // namespace http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.h deleted file mode 100644 index c2f018c..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_resource_models_types.h +++ /dev/null @@ -1,291 +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.2) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef data_resource_models_TYPES_H -#define data_resource_models_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> - - -namespace apache { namespace airavata { namespace model { namespace data { namespace resource { - -struct ReplicaLocationCategory { - enum type { - GATEWAY_DATA_STORE = 0, - COMPUTE_RESOURCE = 1, - LONG_TERM_STORAGE_RESOURCE = 2, - OTHER = 3 - }; -}; - -extern const std::map<int, const char*> _ReplicaLocationCategory_VALUES_TO_NAMES; - -struct ReplicaPersistentType { - enum type { - TRANSIENT = 0, - PERSISTENT = 1 - }; -}; - -extern const std::map<int, const char*> _ReplicaPersistentType_VALUES_TO_NAMES; - -class DataResourceModel; - -class DataReplicaLocationModel; - -typedef struct _DataResourceModel__isset { - _DataResourceModel__isset() : resourceId(false), resourceName(false), resourceDescription(false), ownerName(false), resourceSize(false), creationTime(false), lastModifiedTime(false), resourceMetadata(false), dataReplicaLocations(false) {} - bool resourceId :1; - bool resourceName :1; - bool resourceDescription :1; - bool ownerName :1; - bool resourceSize :1; - bool creationTime :1; - bool lastModifiedTime :1; - bool resourceMetadata :1; - bool dataReplicaLocations :1; -} _DataResourceModel__isset; - -class DataResourceModel { - public: - - static const char* ascii_fingerprint; // = "1320CB0B65DC2E766D01B7D3255179F7"; - static const uint8_t binary_fingerprint[16]; // = {0x13,0x20,0xCB,0x0B,0x65,0xDC,0x2E,0x76,0x6D,0x01,0xB7,0xD3,0x25,0x51,0x79,0xF7}; - - DataResourceModel(const DataResourceModel&); - DataResourceModel& operator=(const DataResourceModel&); - DataResourceModel() : resourceId(), resourceName(), resourceDescription(), ownerName(), resourceSize(0), creationTime(0), lastModifiedTime(0) { - } - - virtual ~DataResourceModel() throw(); - std::string resourceId; - std::string resourceName; - std::string resourceDescription; - std::string ownerName; - int32_t resourceSize; - int64_t creationTime; - int64_t lastModifiedTime; - std::map<std::string, std::string> resourceMetadata; - std::vector<DataReplicaLocationModel> dataReplicaLocations; - - _DataResourceModel__isset __isset; - - void __set_resourceId(const std::string& val); - - void __set_resourceName(const std::string& val); - - void __set_resourceDescription(const std::string& val); - - void __set_ownerName(const std::string& val); - - void __set_resourceSize(const int32_t val); - - void __set_creationTime(const int64_t val); - - void __set_lastModifiedTime(const int64_t val); - - void __set_resourceMetadata(const std::map<std::string, std::string> & val); - - void __set_dataReplicaLocations(const std::vector<DataReplicaLocationModel> & val); - - bool operator == (const DataResourceModel & rhs) const - { - if (__isset.resourceId != rhs.__isset.resourceId) - return false; - else if (__isset.resourceId && !(resourceId == rhs.resourceId)) - return false; - if (__isset.resourceName != rhs.__isset.resourceName) - return false; - else if (__isset.resourceName && !(resourceName == rhs.resourceName)) - return false; - if (__isset.resourceDescription != rhs.__isset.resourceDescription) - return false; - else if (__isset.resourceDescription && !(resourceDescription == rhs.resourceDescription)) - return false; - if (__isset.ownerName != rhs.__isset.ownerName) - return false; - else if (__isset.ownerName && !(ownerName == rhs.ownerName)) - return false; - if (__isset.resourceSize != rhs.__isset.resourceSize) - return false; - else if (__isset.resourceSize && !(resourceSize == rhs.resourceSize)) - return false; - if (__isset.creationTime != rhs.__isset.creationTime) - return false; - else if (__isset.creationTime && !(creationTime == rhs.creationTime)) - return false; - if (__isset.lastModifiedTime != rhs.__isset.lastModifiedTime) - return false; - else if (__isset.lastModifiedTime && !(lastModifiedTime == rhs.lastModifiedTime)) - return false; - if (__isset.resourceMetadata != rhs.__isset.resourceMetadata) - return false; - else if (__isset.resourceMetadata && !(resourceMetadata == rhs.resourceMetadata)) - return false; - if (__isset.dataReplicaLocations != rhs.__isset.dataReplicaLocations) - return false; - else if (__isset.dataReplicaLocations && !(dataReplicaLocations == rhs.dataReplicaLocations)) - return false; - return true; - } - bool operator != (const DataResourceModel &rhs) const { - return !(*this == rhs); - } - - bool operator < (const DataResourceModel & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const DataResourceModel& obj); -}; - -void swap(DataResourceModel &a, DataResourceModel &b); - -typedef struct _DataReplicaLocationModel__isset { - _DataReplicaLocationModel__isset() : replicaId(false), resourceId(false), replicaName(false), replicaDescription(false), creationTime(false), lastModifiedTime(false), replicaLocationCategory(false), replicaPersistentType(false), dataLocations(false), replicaMetadata(false) {} - bool replicaId :1; - bool resourceId :1; - bool replicaName :1; - bool replicaDescription :1; - bool creationTime :1; - bool lastModifiedTime :1; - bool replicaLocationCategory :1; - bool replicaPersistentType :1; - bool dataLocations :1; - bool replicaMetadata :1; -} _DataReplicaLocationModel__isset; - -class DataReplicaLocationModel { - public: - - static const char* ascii_fingerprint; // = "781A1748A91BB45A79F33F79DC9474F1"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x1A,0x17,0x48,0xA9,0x1B,0xB4,0x5A,0x79,0xF3,0x3F,0x79,0xDC,0x94,0x74,0xF1}; - - DataReplicaLocationModel(const DataReplicaLocationModel&); - DataReplicaLocationModel& operator=(const DataReplicaLocationModel&); - DataReplicaLocationModel() : replicaId(), resourceId(), replicaName(), replicaDescription(), creationTime(0), lastModifiedTime(0), replicaLocationCategory((ReplicaLocationCategory::type)0), replicaPersistentType((ReplicaPersistentType::type)0) { - } - - virtual ~DataReplicaLocationModel() throw(); - std::string replicaId; - std::string resourceId; - std::string replicaName; - std::string replicaDescription; - int64_t creationTime; - int64_t lastModifiedTime; - ReplicaLocationCategory::type replicaLocationCategory; - ReplicaPersistentType::type replicaPersistentType; - std::vector<std::string> dataLocations; - std::map<std::string, std::string> replicaMetadata; - - _DataReplicaLocationModel__isset __isset; - - void __set_replicaId(const std::string& val); - - void __set_resourceId(const std::string& val); - - void __set_replicaName(const std::string& val); - - void __set_replicaDescription(const std::string& val); - - void __set_creationTime(const int64_t val); - - void __set_lastModifiedTime(const int64_t val); - - void __set_replicaLocationCategory(const ReplicaLocationCategory::type val); - - void __set_replicaPersistentType(const ReplicaPersistentType::type val); - - void __set_dataLocations(const std::vector<std::string> & val); - - void __set_replicaMetadata(const std::map<std::string, std::string> & val); - - bool operator == (const DataReplicaLocationModel & rhs) const - { - if (__isset.replicaId != rhs.__isset.replicaId) - return false; - else if (__isset.replicaId && !(replicaId == rhs.replicaId)) - return false; - if (__isset.resourceId != rhs.__isset.resourceId) - return false; - else if (__isset.resourceId && !(resourceId == rhs.resourceId)) - return false; - if (__isset.replicaName != rhs.__isset.replicaName) - return false; - else if (__isset.replicaName && !(replicaName == rhs.replicaName)) - return false; - if (__isset.replicaDescription != rhs.__isset.replicaDescription) - return false; - else if (__isset.replicaDescription && !(replicaDescription == rhs.replicaDescription)) - return false; - if (__isset.creationTime != rhs.__isset.creationTime) - return false; - else if (__isset.creationTime && !(creationTime == rhs.creationTime)) - return false; - if (__isset.lastModifiedTime != rhs.__isset.lastModifiedTime) - return false; - else if (__isset.lastModifiedTime && !(lastModifiedTime == rhs.lastModifiedTime)) - return false; - if (__isset.replicaLocationCategory != rhs.__isset.replicaLocationCategory) - return false; - else if (__isset.replicaLocationCategory && !(replicaLocationCategory == rhs.replicaLocationCategory)) - return false; - if (__isset.replicaPersistentType != rhs.__isset.replicaPersistentType) - return false; - else if (__isset.replicaPersistentType && !(replicaPersistentType == rhs.replicaPersistentType)) - return false; - if (__isset.dataLocations != rhs.__isset.dataLocations) - return false; - else if (__isset.dataLocations && !(dataLocations == rhs.dataLocations)) - return false; - if (__isset.replicaMetadata != rhs.__isset.replicaMetadata) - return false; - else if (__isset.replicaMetadata && !(replicaMetadata == rhs.replicaMetadata)) - return false; - return true; - } - bool operator != (const DataReplicaLocationModel &rhs) const { - return !(*this == rhs); - } - - bool operator < (const DataReplicaLocationModel & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const DataReplicaLocationModel& obj); -}; - -void swap(DataReplicaLocationModel &a, DataReplicaLocationModel &b); - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.cpp deleted file mode 100644 index a88d6b3..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.cpp +++ /dev/null @@ -1,40 +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 "experimentModel_constants.h" - -namespace apache { namespace airavata { namespace model { namespace workspace { namespace experiment { - -const experimentModelConstants g_experimentModel_constants; - -experimentModelConstants::experimentModelConstants() { - DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS"; - - DEFAULT_PROJECT_NAME = "DEFAULT"; - - SINGLE_APP_NODE_NAME = "SINGLE_APP_NODE"; - -} - -}}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.h deleted file mode 100644 index 9e70278..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experimentModel_constants.h +++ /dev/null @@ -1,44 +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 experimentModel_CONSTANTS_H -#define experimentModel_CONSTANTS_H - -#include "experimentModel_types.h" - -namespace apache { namespace airavata { namespace model { namespace workspace { namespace experiment { - -class experimentModelConstants { - public: - experimentModelConstants(); - - std::string DEFAULT_ID; - std::string DEFAULT_PROJECT_NAME; - std::string SINGLE_APP_NODE_NAME; -}; - -extern const experimentModelConstants g_experimentModel_constants; - -}}}}} // namespace - -#endif
