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/compute_resource_model_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h deleted file mode 100644 index 95ab605..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h +++ /dev/null @@ -1,860 +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 compute_resource_model_TYPES_H -#define compute_resource_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" -#include "parallelism_model_types.h" -#include "data_movement_models_types.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, - CLOUD = 5 - }; -}; - -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 JobSubmissionProtocol { - enum type { - LOCAL = 0, - SSH = 1, - GLOBUS = 2, - UNICORE = 3, - CLOUD = 4, - SSH_FORK = 5, - LOCAL_FORK = 6 - }; -}; - -extern const std::map<int, const char*> _JobSubmissionProtocol_VALUES_TO_NAMES; - -struct MonitorMode { - enum type { - POLL_JOB_MANAGER = 0, - CLOUD_JOB_MONITOR = 1, - JOB_EMAIL_NOTIFICATION_MONITOR = 2, - XSEDE_AMQP_SUBSCRIBE = 3, - FORK = 4, - LOCAL = 5 - }; -}; - -extern const std::map<int, const char*> _MonitorMode_VALUES_TO_NAMES; - -struct DMType { - enum type { - COMPUTE_RESOURCE = 0, - STORAGE_RESOURCE = 1 - }; -}; - -extern const std::map<int, const char*> _DMType_VALUES_TO_NAMES; - -struct ProviderName { - enum type { - EC2 = 0, - AWSEC2 = 1, - RACKSPACE = 2 - }; -}; - -extern const std::map<int, const char*> _ProviderName_VALUES_TO_NAMES; - -class ResourceJobManager; - -class BatchQueue; - -class LOCALSubmission; - -class SSHJobSubmission; - -class GlobusJobSubmission; - -class UnicoreJobSubmission; - -class CloudJobSubmission; - -class JobSubmissionInterface; - -class ComputeResourceDescription; - -typedef struct _ResourceJobManager__isset { - _ResourceJobManager__isset() : pushMonitoringEndpoint(false), jobManagerBinPath(false), jobManagerCommands(false), parallelismPrefix(false) {} - bool pushMonitoringEndpoint :1; - bool jobManagerBinPath :1; - bool jobManagerCommands :1; - bool parallelismPrefix :1; -} _ResourceJobManager__isset; - -class ResourceJobManager { - public: - - ResourceJobManager(const ResourceJobManager&); - ResourceJobManager& operator=(const ResourceJobManager&); - 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; - std::map< ::apache::airavata::model::appcatalog::parallelism::ApplicationParallelismType::type, std::string> parallelismPrefix; - - _ResourceJobManager__isset __isset; - - void __set_resourceJobManagerId(const std::string& val); - - void __set_resourceJobManagerType(const ResourceJobManagerType::type val); - - void __set_pushMonitoringEndpoint(const std::string& val); - - void __set_jobManagerBinPath(const std::string& val); - - void __set_jobManagerCommands(const std::map<JobManagerCommand::type, std::string> & val); - - void __set_parallelismPrefix(const std::map< ::apache::airavata::model::appcatalog::parallelism::ApplicationParallelismType::type, std::string> & val); - - 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; - if (__isset.parallelismPrefix != rhs.__isset.parallelismPrefix) - return false; - else if (__isset.parallelismPrefix && !(parallelismPrefix == rhs.parallelismPrefix)) - 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(ResourceJobManager &a, ResourceJobManager &b); - -inline std::ostream& operator<<(std::ostream& out, const ResourceJobManager& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _BatchQueue__isset { - _BatchQueue__isset() : queueDescription(false), maxRunTime(false), maxNodes(false), maxProcessors(false), maxJobsInQueue(false), maxMemory(false), cpuPerNode(false), defaultNodeCount(false), defaultCPUCount(false), isDefaultQueue(false) {} - bool queueDescription :1; - bool maxRunTime :1; - bool maxNodes :1; - bool maxProcessors :1; - bool maxJobsInQueue :1; - bool maxMemory :1; - bool cpuPerNode :1; - bool defaultNodeCount :1; - bool defaultCPUCount :1; - bool isDefaultQueue :1; -} _BatchQueue__isset; - -class BatchQueue { - public: - - BatchQueue(const BatchQueue&); - BatchQueue& operator=(const BatchQueue&); - BatchQueue() : queueName(), queueDescription(), maxRunTime(0), maxNodes(0), maxProcessors(0), maxJobsInQueue(0), maxMemory(0), cpuPerNode(0), defaultNodeCount(0), defaultCPUCount(0), isDefaultQueue(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; - int32_t cpuPerNode; - int32_t defaultNodeCount; - int32_t defaultCPUCount; - bool isDefaultQueue; - - _BatchQueue__isset __isset; - - void __set_queueName(const std::string& val); - - void __set_queueDescription(const std::string& val); - - void __set_maxRunTime(const int32_t val); - - void __set_maxNodes(const int32_t val); - - void __set_maxProcessors(const int32_t val); - - void __set_maxJobsInQueue(const int32_t val); - - void __set_maxMemory(const int32_t val); - - void __set_cpuPerNode(const int32_t val); - - void __set_defaultNodeCount(const int32_t val); - - void __set_defaultCPUCount(const int32_t val); - - void __set_isDefaultQueue(const bool val); - - 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; - if (__isset.cpuPerNode != rhs.__isset.cpuPerNode) - return false; - else if (__isset.cpuPerNode && !(cpuPerNode == rhs.cpuPerNode)) - return false; - if (__isset.defaultNodeCount != rhs.__isset.defaultNodeCount) - return false; - else if (__isset.defaultNodeCount && !(defaultNodeCount == rhs.defaultNodeCount)) - return false; - if (__isset.defaultCPUCount != rhs.__isset.defaultCPUCount) - return false; - else if (__isset.defaultCPUCount && !(defaultCPUCount == rhs.defaultCPUCount)) - return false; - if (__isset.isDefaultQueue != rhs.__isset.isDefaultQueue) - return false; - else if (__isset.isDefaultQueue && !(isDefaultQueue == rhs.isDefaultQueue)) - 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(BatchQueue &a, BatchQueue &b); - -inline std::ostream& operator<<(std::ostream& out, const BatchQueue& obj) -{ - obj.printTo(out); - return out; -} - - -class LOCALSubmission { - public: - - LOCALSubmission(const LOCALSubmission&); - LOCALSubmission& operator=(const LOCALSubmission&); - LOCALSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol(( ::apache::airavata::model::data::movement::SecurityProtocol::type)0) { - } - - virtual ~LOCALSubmission() throw(); - std::string jobSubmissionInterfaceId; - ResourceJobManager resourceJobManager; - ::apache::airavata::model::data::movement::SecurityProtocol::type securityProtocol; - - void __set_jobSubmissionInterfaceId(const std::string& val); - - void __set_resourceJobManager(const ResourceJobManager& val); - - void __set_securityProtocol(const ::apache::airavata::model::data::movement::SecurityProtocol::type val); - - bool operator == (const LOCALSubmission & rhs) const - { - if (!(jobSubmissionInterfaceId == rhs.jobSubmissionInterfaceId)) - return false; - if (!(resourceJobManager == rhs.resourceJobManager)) - return false; - if (!(securityProtocol == rhs.securityProtocol)) - 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(LOCALSubmission &a, LOCALSubmission &b); - -inline std::ostream& operator<<(std::ostream& out, const LOCALSubmission& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _SSHJobSubmission__isset { - _SSHJobSubmission__isset() : alternativeSSHHostName(false), sshPort(true), monitorMode(false), batchQueueEmailSenders(false) {} - bool alternativeSSHHostName :1; - bool sshPort :1; - bool monitorMode :1; - bool batchQueueEmailSenders :1; -} _SSHJobSubmission__isset; - -class SSHJobSubmission { - public: - - SSHJobSubmission(const SSHJobSubmission&); - SSHJobSubmission& operator=(const SSHJobSubmission&); - SSHJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol(( ::apache::airavata::model::data::movement::SecurityProtocol::type)0), alternativeSSHHostName(), sshPort(22), monitorMode((MonitorMode::type)0) { - } - - virtual ~SSHJobSubmission() throw(); - std::string jobSubmissionInterfaceId; - ::apache::airavata::model::data::movement::SecurityProtocol::type securityProtocol; - ResourceJobManager resourceJobManager; - std::string alternativeSSHHostName; - int32_t sshPort; - MonitorMode::type monitorMode; - std::vector<std::string> batchQueueEmailSenders; - - _SSHJobSubmission__isset __isset; - - void __set_jobSubmissionInterfaceId(const std::string& val); - - void __set_securityProtocol(const ::apache::airavata::model::data::movement::SecurityProtocol::type val); - - void __set_resourceJobManager(const ResourceJobManager& val); - - void __set_alternativeSSHHostName(const std::string& val); - - void __set_sshPort(const int32_t val); - - void __set_monitorMode(const MonitorMode::type val); - - void __set_batchQueueEmailSenders(const std::vector<std::string> & val); - - 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; - if (__isset.batchQueueEmailSenders != rhs.__isset.batchQueueEmailSenders) - return false; - else if (__isset.batchQueueEmailSenders && !(batchQueueEmailSenders == rhs.batchQueueEmailSenders)) - 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(SSHJobSubmission &a, SSHJobSubmission &b); - -inline std::ostream& operator<<(std::ostream& out, const SSHJobSubmission& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _GlobusJobSubmission__isset { - _GlobusJobSubmission__isset() : globusGateKeeperEndPoint(false) {} - bool globusGateKeeperEndPoint :1; -} _GlobusJobSubmission__isset; - -class GlobusJobSubmission { - public: - - GlobusJobSubmission(const GlobusJobSubmission&); - GlobusJobSubmission& operator=(const GlobusJobSubmission&); - GlobusJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol(( ::apache::airavata::model::data::movement::SecurityProtocol::type)0) { - } - - virtual ~GlobusJobSubmission() throw(); - std::string jobSubmissionInterfaceId; - ::apache::airavata::model::data::movement::SecurityProtocol::type securityProtocol; - std::vector<std::string> globusGateKeeperEndPoint; - - _GlobusJobSubmission__isset __isset; - - void __set_jobSubmissionInterfaceId(const std::string& val); - - void __set_securityProtocol(const ::apache::airavata::model::data::movement::SecurityProtocol::type val); - - void __set_globusGateKeeperEndPoint(const std::vector<std::string> & val); - - 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(GlobusJobSubmission &a, GlobusJobSubmission &b); - -inline std::ostream& operator<<(std::ostream& out, const GlobusJobSubmission& obj) -{ - obj.printTo(out); - return out; -} - - -class UnicoreJobSubmission { - public: - - UnicoreJobSubmission(const UnicoreJobSubmission&); - UnicoreJobSubmission& operator=(const UnicoreJobSubmission&); - UnicoreJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol(( ::apache::airavata::model::data::movement::SecurityProtocol::type)0), unicoreEndPointURL() { - } - - virtual ~UnicoreJobSubmission() throw(); - std::string jobSubmissionInterfaceId; - ::apache::airavata::model::data::movement::SecurityProtocol::type securityProtocol; - std::string unicoreEndPointURL; - - void __set_jobSubmissionInterfaceId(const std::string& val); - - void __set_securityProtocol(const ::apache::airavata::model::data::movement::SecurityProtocol::type val); - - void __set_unicoreEndPointURL(const std::string& 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(UnicoreJobSubmission &a, UnicoreJobSubmission &b); - -inline std::ostream& operator<<(std::ostream& out, const UnicoreJobSubmission& obj) -{ - obj.printTo(out); - return out; -} - - -class CloudJobSubmission { - public: - - CloudJobSubmission(const CloudJobSubmission&); - CloudJobSubmission& operator=(const CloudJobSubmission&); - CloudJobSubmission() : jobSubmissionInterfaceId("DO_NOT_SET_AT_CLIENTS"), securityProtocol(( ::apache::airavata::model::data::movement::SecurityProtocol::type)0), nodeId(), executableType(), providerName((ProviderName::type)0), userAccountName() { - } - - virtual ~CloudJobSubmission() throw(); - std::string jobSubmissionInterfaceId; - ::apache::airavata::model::data::movement::SecurityProtocol::type securityProtocol; - std::string nodeId; - std::string executableType; - ProviderName::type providerName; - std::string userAccountName; - - void __set_jobSubmissionInterfaceId(const std::string& val); - - void __set_securityProtocol(const ::apache::airavata::model::data::movement::SecurityProtocol::type val); - - void __set_nodeId(const std::string& val); - - void __set_executableType(const std::string& val); - - void __set_providerName(const ProviderName::type val); - - void __set_userAccountName(const std::string& 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(CloudJobSubmission &a, CloudJobSubmission &b); - -inline std::ostream& operator<<(std::ostream& out, const CloudJobSubmission& obj) -{ - obj.printTo(out); - return out; -} - - -class JobSubmissionInterface { - public: - - JobSubmissionInterface(const JobSubmissionInterface&); - JobSubmissionInterface& operator=(const JobSubmissionInterface&); - 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); - - void __set_jobSubmissionProtocol(const JobSubmissionProtocol::type val); - - void __set_priorityOrder(const int32_t 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(JobSubmissionInterface &a, JobSubmissionInterface &b); - -inline std::ostream& operator<<(std::ostream& out, const JobSubmissionInterface& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _ComputeResourceDescription__isset { - _ComputeResourceDescription__isset() : hostAliases(false), ipAddresses(false), resourceDescription(false), enabled(false), batchQueues(false), fileSystems(false), jobSubmissionInterfaces(false), dataMovementInterfaces(false), maxMemoryPerNode(false), gatewayUsageReporting(false), gatewayUsageModuleLoadCommand(false), gatewayUsageExecutable(false) {} - bool hostAliases :1; - bool ipAddresses :1; - bool resourceDescription :1; - bool enabled :1; - bool batchQueues :1; - bool fileSystems :1; - bool jobSubmissionInterfaces :1; - bool dataMovementInterfaces :1; - bool maxMemoryPerNode :1; - bool gatewayUsageReporting :1; - bool gatewayUsageModuleLoadCommand :1; - bool gatewayUsageExecutable :1; -} _ComputeResourceDescription__isset; - -class ComputeResourceDescription { - public: - - ComputeResourceDescription(const ComputeResourceDescription&); - ComputeResourceDescription& operator=(const ComputeResourceDescription&); - ComputeResourceDescription() : computeResourceId("DO_NOT_SET_AT_CLIENTS"), hostName(), resourceDescription(), enabled(0), maxMemoryPerNode(0), gatewayUsageReporting(0), gatewayUsageModuleLoadCommand(), gatewayUsageExecutable() { - } - - virtual ~ComputeResourceDescription() throw(); - std::string computeResourceId; - std::string hostName; - std::vector<std::string> hostAliases; - std::vector<std::string> ipAddresses; - std::string resourceDescription; - bool enabled; - std::vector<BatchQueue> batchQueues; - std::map<FileSystems::type, std::string> fileSystems; - std::vector<JobSubmissionInterface> jobSubmissionInterfaces; - std::vector< ::apache::airavata::model::data::movement::DataMovementInterface> dataMovementInterfaces; - int32_t maxMemoryPerNode; - bool gatewayUsageReporting; - std::string gatewayUsageModuleLoadCommand; - std::string gatewayUsageExecutable; - - _ComputeResourceDescription__isset __isset; - - void __set_computeResourceId(const std::string& val); - - void __set_hostName(const std::string& val); - - void __set_hostAliases(const std::vector<std::string> & val); - - void __set_ipAddresses(const std::vector<std::string> & val); - - void __set_resourceDescription(const std::string& val); - - void __set_enabled(const bool val); - - void __set_batchQueues(const std::vector<BatchQueue> & val); - - void __set_fileSystems(const std::map<FileSystems::type, std::string> & val); - - void __set_jobSubmissionInterfaces(const std::vector<JobSubmissionInterface> & val); - - void __set_dataMovementInterfaces(const std::vector< ::apache::airavata::model::data::movement::DataMovementInterface> & val); - - void __set_maxMemoryPerNode(const int32_t val); - - void __set_gatewayUsageReporting(const bool val); - - void __set_gatewayUsageModuleLoadCommand(const std::string& val); - - void __set_gatewayUsageExecutable(const std::string& val); - - 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.enabled != rhs.__isset.enabled) - return false; - else if (__isset.enabled && !(enabled == rhs.enabled)) - 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; - if (__isset.gatewayUsageReporting != rhs.__isset.gatewayUsageReporting) - return false; - else if (__isset.gatewayUsageReporting && !(gatewayUsageReporting == rhs.gatewayUsageReporting)) - return false; - if (__isset.gatewayUsageModuleLoadCommand != rhs.__isset.gatewayUsageModuleLoadCommand) - return false; - else if (__isset.gatewayUsageModuleLoadCommand && !(gatewayUsageModuleLoadCommand == rhs.gatewayUsageModuleLoadCommand)) - return false; - if (__isset.gatewayUsageExecutable != rhs.__isset.gatewayUsageExecutable) - return false; - else if (__isset.gatewayUsageExecutable && !(gatewayUsageExecutable == rhs.gatewayUsageExecutable)) - 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; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(ComputeResourceDescription &a, ComputeResourceDescription &b); - -inline std::ostream& operator<<(std::ostream& out, const ComputeResourceDescription& 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/credential_summary_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_constants.cpp deleted file mode 100644 index 62d3d4a..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_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 "credential_summary_constants.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace credentialsummary { - -const credential_summaryConstants g_credential_summary_constants; - -credential_summaryConstants::credential_summaryConstants() { -} - -}}}}} // 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/credential_summary_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_constants.h deleted file mode 100644 index 62bef1f..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_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 credential_summary_CONSTANTS_H -#define credential_summary_CONSTANTS_H - -#include "credential_summary_types.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace credentialsummary { - -class credential_summaryConstants { - public: - credential_summaryConstants(); - -}; - -extern const credential_summaryConstants g_credential_summary_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/credential_summary_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_types.cpp deleted file mode 100644 index c470a1c..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_types.cpp +++ /dev/null @@ -1,234 +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 "credential_summary_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace credentialsummary { - - -CredentialSummary::~CredentialSummary() throw() { -} - - -void CredentialSummary::__set_gatewayId(const std::string& val) { - this->gatewayId = val; -} - -void CredentialSummary::__set_username(const std::string& val) { - this->username = val; -} - -void CredentialSummary::__set_token(const std::string& val) { - this->token = val; -} - -void CredentialSummary::__set_publicKey(const std::string& val) { - this->publicKey = val; -__isset.publicKey = true; -} - -void CredentialSummary::__set_persistedTime(const int64_t val) { - this->persistedTime = val; -__isset.persistedTime = true; -} - -void CredentialSummary::__set_description(const std::string& val) { - this->description = val; -__isset.description = true; -} - -uint32_t CredentialSummary::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_gatewayId = false; - bool isset_username = false; - bool isset_token = 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->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->username); - isset_username = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->token); - isset_token = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->publicKey); - this->__isset.publicKey = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->persistedTime); - this->__isset.persistedTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->description); - this->__isset.description = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_username) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_token) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t CredentialSummary::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("CredentialSummary"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("username", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->username); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("token", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->token); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.publicKey) { - xfer += oprot->writeFieldBegin("publicKey", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->publicKey); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.persistedTime) { - xfer += oprot->writeFieldBegin("persistedTime", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->persistedTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.description) { - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->description); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(CredentialSummary &a, CredentialSummary &b) { - using ::std::swap; - swap(a.gatewayId, b.gatewayId); - swap(a.username, b.username); - swap(a.token, b.token); - swap(a.publicKey, b.publicKey); - swap(a.persistedTime, b.persistedTime); - swap(a.description, b.description); - swap(a.__isset, b.__isset); -} - -CredentialSummary::CredentialSummary(const CredentialSummary& other0) { - gatewayId = other0.gatewayId; - username = other0.username; - token = other0.token; - publicKey = other0.publicKey; - persistedTime = other0.persistedTime; - description = other0.description; - __isset = other0.__isset; -} -CredentialSummary& CredentialSummary::operator=(const CredentialSummary& other1) { - gatewayId = other1.gatewayId; - username = other1.username; - token = other1.token; - publicKey = other1.publicKey; - persistedTime = other1.persistedTime; - description = other1.description; - __isset = other1.__isset; - return *this; -} -void CredentialSummary::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CredentialSummary("; - out << "gatewayId=" << to_string(gatewayId); - out << ", " << "username=" << to_string(username); - out << ", " << "token=" << to_string(token); - out << ", " << "publicKey="; (__isset.publicKey ? (out << to_string(publicKey)) : (out << "<null>")); - out << ", " << "persistedTime="; (__isset.persistedTime ? (out << to_string(persistedTime)) : (out << "<null>")); - out << ", " << "description="; (__isset.description ? (out << to_string(description)) : (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/credential_summary_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_types.h deleted file mode 100644 index 2668279..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/credential_summary_types.h +++ /dev/null @@ -1,122 +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 credential_summary_TYPES_H -#define credential_summary_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 appcatalog { namespace credentialsummary { - -class CredentialSummary; - -typedef struct _CredentialSummary__isset { - _CredentialSummary__isset() : publicKey(false), persistedTime(false), description(false) {} - bool publicKey :1; - bool persistedTime :1; - bool description :1; -} _CredentialSummary__isset; - -class CredentialSummary { - public: - - CredentialSummary(const CredentialSummary&); - CredentialSummary& operator=(const CredentialSummary&); - CredentialSummary() : gatewayId(), username(), token(), publicKey(), persistedTime(0), description() { - } - - virtual ~CredentialSummary() throw(); - std::string gatewayId; - std::string username; - std::string token; - std::string publicKey; - int64_t persistedTime; - std::string description; - - _CredentialSummary__isset __isset; - - void __set_gatewayId(const std::string& val); - - void __set_username(const std::string& val); - - void __set_token(const std::string& val); - - void __set_publicKey(const std::string& val); - - void __set_persistedTime(const int64_t val); - - void __set_description(const std::string& val); - - bool operator == (const CredentialSummary & rhs) const - { - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(username == rhs.username)) - return false; - if (!(token == rhs.token)) - return false; - if (__isset.publicKey != rhs.__isset.publicKey) - return false; - else if (__isset.publicKey && !(publicKey == rhs.publicKey)) - return false; - if (__isset.persistedTime != rhs.__isset.persistedTime) - return false; - else if (__isset.persistedTime && !(persistedTime == rhs.persistedTime)) - return false; - if (__isset.description != rhs.__isset.description) - return false; - else if (__isset.description && !(description == rhs.description)) - return false; - return true; - } - bool operator != (const CredentialSummary &rhs) const { - return !(*this == rhs); - } - - bool operator < (const CredentialSummary & ) 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(CredentialSummary &a, CredentialSummary &b); - -inline std::ostream& operator<<(std::ostream& out, const CredentialSummary& 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/data_catalog_models_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_constants.cpp deleted file mode 100644 index 53eac5e..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_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.3) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "data_catalog_models_constants.h" - -namespace apache { namespace airavata { namespace model { namespace data { namespace product { - -const data_catalog_modelsConstants g_data_catalog_models_constants; - -data_catalog_modelsConstants::data_catalog_modelsConstants() { -} - -}}}}} // 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/data_catalog_models_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_constants.h deleted file mode 100644 index 4841fb7..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_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.3) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef data_catalog_models_CONSTANTS_H -#define data_catalog_models_CONSTANTS_H - -#include "data_catalog_models_types.h" - -namespace apache { namespace airavata { namespace model { namespace data { namespace product { - -class data_catalog_modelsConstants { - public: - data_catalog_modelsConstants(); - -}; - -extern const data_catalog_modelsConstants g_data_catalog_models_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/data_catalog_models_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.cpp deleted file mode 100644 index d72043d..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.cpp +++ /dev/null @@ -1,867 +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 "data_catalog_models_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace data { namespace product { - -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)); - -int _kDataProductTypeValues[] = { - DataProductType::DIR, - DataProductType::FILE, - DataProductType::COLLECTION -}; -const char* _kDataProductTypeNames[] = { - "DIR", - "FILE", - "COLLECTION" -}; -const std::map<int, const char*> _DataProductType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kDataProductTypeValues, _kDataProductTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - - -DataProductModel::~DataProductModel() throw() { -} - - -void DataProductModel::__set_productUri(const std::string& val) { - this->productUri = val; -__isset.productUri = true; -} - -void DataProductModel::__set_gatewayId(const std::string& val) { - this->gatewayId = val; -__isset.gatewayId = true; -} - -void DataProductModel::__set_parentProductUri(const std::string& val) { - this->parentProductUri = val; -__isset.parentProductUri = true; -} - -void DataProductModel::__set_logicalPath(const std::string& val) { - this->logicalPath = val; -__isset.logicalPath = true; -} - -void DataProductModel::__set_productName(const std::string& val) { - this->productName = val; -__isset.productName = true; -} - -void DataProductModel::__set_productDescription(const std::string& val) { - this->productDescription = val; -__isset.productDescription = true; -} - -void DataProductModel::__set_ownerName(const std::string& val) { - this->ownerName = val; -__isset.ownerName = true; -} - -void DataProductModel::__set_dataProductType(const DataProductType::type val) { - this->dataProductType = val; -__isset.dataProductType = true; -} - -void DataProductModel::__set_productSize(const int32_t val) { - this->productSize = val; -__isset.productSize = true; -} - -void DataProductModel::__set_creationTime(const int64_t val) { - this->creationTime = val; -__isset.creationTime = true; -} - -void DataProductModel::__set_lastModifiedTime(const int64_t val) { - this->lastModifiedTime = val; -__isset.lastModifiedTime = true; -} - -void DataProductModel::__set_productMetadata(const std::map<std::string, std::string> & val) { - this->productMetadata = val; -__isset.productMetadata = true; -} - -void DataProductModel::__set_replicaLocations(const std::vector<DataReplicaLocationModel> & val) { - this->replicaLocations = val; -__isset.replicaLocations = true; -} - -void DataProductModel::__set_childProducts(const std::vector<DataProductModel> & val) { - this->childProducts = val; -__isset.childProducts = true; -} - -uint32_t DataProductModel::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->productUri); - this->__isset.productUri = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - this->__isset.gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->parentProductUri); - this->__isset.parentProductUri = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->logicalPath); - this->__isset.logicalPath = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->productName); - this->__isset.productName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->productDescription); - this->__isset.productDescription = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->ownerName); - this->__isset.ownerName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->dataProductType = (DataProductType::type)ecast0; - this->__isset.dataProductType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->productSize); - this->__isset.productSize = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->creationTime); - this->__isset.creationTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->lastModifiedTime); - this->__isset.lastModifiedTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->productMetadata.clear(); - uint32_t _size1; - ::apache::thrift::protocol::TType _ktype2; - ::apache::thrift::protocol::TType _vtype3; - xfer += iprot->readMapBegin(_ktype2, _vtype3, _size1); - uint32_t _i5; - for (_i5 = 0; _i5 < _size1; ++_i5) - { - std::string _key6; - xfer += iprot->readString(_key6); - std::string& _val7 = this->productMetadata[_key6]; - xfer += iprot->readString(_val7); - } - xfer += iprot->readMapEnd(); - } - this->__isset.productMetadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 13: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->replicaLocations.clear(); - uint32_t _size8; - ::apache::thrift::protocol::TType _etype11; - xfer += iprot->readListBegin(_etype11, _size8); - this->replicaLocations.resize(_size8); - uint32_t _i12; - for (_i12 = 0; _i12 < _size8; ++_i12) - { - xfer += this->replicaLocations[_i12].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.replicaLocations = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 14: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->childProducts.clear(); - uint32_t _size13; - ::apache::thrift::protocol::TType _etype16; - xfer += iprot->readListBegin(_etype16, _size13); - this->childProducts.resize(_size13); - uint32_t _i17; - for (_i17 = 0; _i17 < _size13; ++_i17) - { - xfer += this->childProducts[_i17].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.childProducts = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t DataProductModel::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("DataProductModel"); - - if (this->__isset.productUri) { - xfer += oprot->writeFieldBegin("productUri", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->productUri); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.gatewayId) { - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.parentProductUri) { - xfer += oprot->writeFieldBegin("parentProductUri", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->parentProductUri); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.logicalPath) { - xfer += oprot->writeFieldBegin("logicalPath", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->logicalPath); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productName) { - xfer += oprot->writeFieldBegin("productName", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->productName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productDescription) { - xfer += oprot->writeFieldBegin("productDescription", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->productDescription); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.ownerName) { - xfer += oprot->writeFieldBegin("ownerName", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->ownerName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.dataProductType) { - xfer += oprot->writeFieldBegin("dataProductType", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32((int32_t)this->dataProductType); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productSize) { - xfer += oprot->writeFieldBegin("productSize", ::apache::thrift::protocol::T_I32, 9); - xfer += oprot->writeI32(this->productSize); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.creationTime) { - xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 10); - xfer += oprot->writeI64(this->creationTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.lastModifiedTime) { - xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 11); - xfer += oprot->writeI64(this->lastModifiedTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productMetadata) { - xfer += oprot->writeFieldBegin("productMetadata", ::apache::thrift::protocol::T_MAP, 12); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->productMetadata.size())); - std::map<std::string, std::string> ::const_iterator _iter18; - for (_iter18 = this->productMetadata.begin(); _iter18 != this->productMetadata.end(); ++_iter18) - { - xfer += oprot->writeString(_iter18->first); - xfer += oprot->writeString(_iter18->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaLocations) { - xfer += oprot->writeFieldBegin("replicaLocations", ::apache::thrift::protocol::T_LIST, 13); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->replicaLocations.size())); - std::vector<DataReplicaLocationModel> ::const_iterator _iter19; - for (_iter19 = this->replicaLocations.begin(); _iter19 != this->replicaLocations.end(); ++_iter19) - { - xfer += (*_iter19).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.childProducts) { - xfer += oprot->writeFieldBegin("childProducts", ::apache::thrift::protocol::T_LIST, 14); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->childProducts.size())); - std::vector<DataProductModel> ::const_iterator _iter20; - for (_iter20 = this->childProducts.begin(); _iter20 != this->childProducts.end(); ++_iter20) - { - xfer += (*_iter20).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(DataProductModel &a, DataProductModel &b) { - using ::std::swap; - swap(a.productUri, b.productUri); - swap(a.gatewayId, b.gatewayId); - swap(a.parentProductUri, b.parentProductUri); - swap(a.logicalPath, b.logicalPath); - swap(a.productName, b.productName); - swap(a.productDescription, b.productDescription); - swap(a.ownerName, b.ownerName); - swap(a.dataProductType, b.dataProductType); - swap(a.productSize, b.productSize); - swap(a.creationTime, b.creationTime); - swap(a.lastModifiedTime, b.lastModifiedTime); - swap(a.productMetadata, b.productMetadata); - swap(a.replicaLocations, b.replicaLocations); - swap(a.childProducts, b.childProducts); - swap(a.__isset, b.__isset); -} - -DataProductModel::DataProductModel(const DataProductModel& other21) { - productUri = other21.productUri; - gatewayId = other21.gatewayId; - parentProductUri = other21.parentProductUri; - logicalPath = other21.logicalPath; - productName = other21.productName; - productDescription = other21.productDescription; - ownerName = other21.ownerName; - dataProductType = other21.dataProductType; - productSize = other21.productSize; - creationTime = other21.creationTime; - lastModifiedTime = other21.lastModifiedTime; - productMetadata = other21.productMetadata; - replicaLocations = other21.replicaLocations; - childProducts = other21.childProducts; - __isset = other21.__isset; -} -DataProductModel& DataProductModel::operator=(const DataProductModel& other22) { - productUri = other22.productUri; - gatewayId = other22.gatewayId; - parentProductUri = other22.parentProductUri; - logicalPath = other22.logicalPath; - productName = other22.productName; - productDescription = other22.productDescription; - ownerName = other22.ownerName; - dataProductType = other22.dataProductType; - productSize = other22.productSize; - creationTime = other22.creationTime; - lastModifiedTime = other22.lastModifiedTime; - productMetadata = other22.productMetadata; - replicaLocations = other22.replicaLocations; - childProducts = other22.childProducts; - __isset = other22.__isset; - return *this; -} -void DataProductModel::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DataProductModel("; - out << "productUri="; (__isset.productUri ? (out << to_string(productUri)) : (out << "<null>")); - out << ", " << "gatewayId="; (__isset.gatewayId ? (out << to_string(gatewayId)) : (out << "<null>")); - out << ", " << "parentProductUri="; (__isset.parentProductUri ? (out << to_string(parentProductUri)) : (out << "<null>")); - out << ", " << "logicalPath="; (__isset.logicalPath ? (out << to_string(logicalPath)) : (out << "<null>")); - out << ", " << "productName="; (__isset.productName ? (out << to_string(productName)) : (out << "<null>")); - out << ", " << "productDescription="; (__isset.productDescription ? (out << to_string(productDescription)) : (out << "<null>")); - out << ", " << "ownerName="; (__isset.ownerName ? (out << to_string(ownerName)) : (out << "<null>")); - out << ", " << "dataProductType="; (__isset.dataProductType ? (out << to_string(dataProductType)) : (out << "<null>")); - out << ", " << "productSize="; (__isset.productSize ? (out << to_string(productSize)) : (out << "<null>")); - out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>")); - out << ", " << "lastModifiedTime="; (__isset.lastModifiedTime ? (out << to_string(lastModifiedTime)) : (out << "<null>")); - out << ", " << "productMetadata="; (__isset.productMetadata ? (out << to_string(productMetadata)) : (out << "<null>")); - out << ", " << "replicaLocations="; (__isset.replicaLocations ? (out << to_string(replicaLocations)) : (out << "<null>")); - out << ", " << "childProducts="; (__isset.childProducts ? (out << to_string(childProducts)) : (out << "<null>")); - out << ")"; -} - - -DataReplicaLocationModel::~DataReplicaLocationModel() throw() { -} - - -void DataReplicaLocationModel::__set_replicaId(const std::string& val) { - this->replicaId = val; -__isset.replicaId = true; -} - -void DataReplicaLocationModel::__set_productUri(const std::string& val) { - this->productUri = val; -__isset.productUri = 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_validUntilTime(const int64_t val) { - this->validUntilTime = val; -__isset.validUntilTime = 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_storageResourceId(const std::string& val) { - this->storageResourceId = val; -__isset.storageResourceId = true; -} - -void DataReplicaLocationModel::__set_filePath(const std::string& val) { - this->filePath = val; -__isset.filePath = true; -} - -void DataReplicaLocationModel::__set_replicaMetadata(const std::map<std::string, std::string> & val) { - this->replicaMetadata = val; -__isset.replicaMetadata = true; -} - -uint32_t DataReplicaLocationModel::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->replicaId); - this->__isset.replicaId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->productUri); - this->__isset.productUri = 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_I64) { - xfer += iprot->readI64(this->validUntilTime); - this->__isset.validUntilTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast23; - xfer += iprot->readI32(ecast23); - this->replicaLocationCategory = (ReplicaLocationCategory::type)ecast23; - this->__isset.replicaLocationCategory = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast24; - xfer += iprot->readI32(ecast24); - this->replicaPersistentType = (ReplicaPersistentType::type)ecast24; - this->__isset.replicaPersistentType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->storageResourceId); - this->__isset.storageResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->filePath); - this->__isset.filePath = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->replicaMetadata.clear(); - uint32_t _size25; - ::apache::thrift::protocol::TType _ktype26; - ::apache::thrift::protocol::TType _vtype27; - xfer += iprot->readMapBegin(_ktype26, _vtype27, _size25); - uint32_t _i29; - for (_i29 = 0; _i29 < _size25; ++_i29) - { - std::string _key30; - xfer += iprot->readString(_key30); - std::string& _val31 = this->replicaMetadata[_key30]; - xfer += iprot->readString(_val31); - } - 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; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - 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.productUri) { - xfer += oprot->writeFieldBegin("productUri", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->productUri); - 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.validUntilTime) { - xfer += oprot->writeFieldBegin("validUntilTime", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->validUntilTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaLocationCategory) { - xfer += oprot->writeFieldBegin("replicaLocationCategory", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32((int32_t)this->replicaLocationCategory); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaPersistentType) { - xfer += oprot->writeFieldBegin("replicaPersistentType", ::apache::thrift::protocol::T_I32, 9); - xfer += oprot->writeI32((int32_t)this->replicaPersistentType); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.storageResourceId) { - xfer += oprot->writeFieldBegin("storageResourceId", ::apache::thrift::protocol::T_STRING, 10); - xfer += oprot->writeString(this->storageResourceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.filePath) { - xfer += oprot->writeFieldBegin("filePath", ::apache::thrift::protocol::T_STRING, 11); - xfer += oprot->writeString(this->filePath); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaMetadata) { - xfer += oprot->writeFieldBegin("replicaMetadata", ::apache::thrift::protocol::T_MAP, 12); - { - 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 _iter32; - for (_iter32 = this->replicaMetadata.begin(); _iter32 != this->replicaMetadata.end(); ++_iter32) - { - xfer += oprot->writeString(_iter32->first); - xfer += oprot->writeString(_iter32->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(DataReplicaLocationModel &a, DataReplicaLocationModel &b) { - using ::std::swap; - swap(a.replicaId, b.replicaId); - swap(a.productUri, b.productUri); - swap(a.replicaName, b.replicaName); - swap(a.replicaDescription, b.replicaDescription); - swap(a.creationTime, b.creationTime); - swap(a.lastModifiedTime, b.lastModifiedTime); - swap(a.validUntilTime, b.validUntilTime); - swap(a.replicaLocationCategory, b.replicaLocationCategory); - swap(a.replicaPersistentType, b.replicaPersistentType); - swap(a.storageResourceId, b.storageResourceId); - swap(a.filePath, b.filePath); - swap(a.replicaMetadata, b.replicaMetadata); - swap(a.__isset, b.__isset); -} - -DataReplicaLocationModel::DataReplicaLocationModel(const DataReplicaLocationModel& other33) { - replicaId = other33.replicaId; - productUri = other33.productUri; - replicaName = other33.replicaName; - replicaDescription = other33.replicaDescription; - creationTime = other33.creationTime; - lastModifiedTime = other33.lastModifiedTime; - validUntilTime = other33.validUntilTime; - replicaLocationCategory = other33.replicaLocationCategory; - replicaPersistentType = other33.replicaPersistentType; - storageResourceId = other33.storageResourceId; - filePath = other33.filePath; - replicaMetadata = other33.replicaMetadata; - __isset = other33.__isset; -} -DataReplicaLocationModel& DataReplicaLocationModel::operator=(const DataReplicaLocationModel& other34) { - replicaId = other34.replicaId; - productUri = other34.productUri; - replicaName = other34.replicaName; - replicaDescription = other34.replicaDescription; - creationTime = other34.creationTime; - lastModifiedTime = other34.lastModifiedTime; - validUntilTime = other34.validUntilTime; - replicaLocationCategory = other34.replicaLocationCategory; - replicaPersistentType = other34.replicaPersistentType; - storageResourceId = other34.storageResourceId; - filePath = other34.filePath; - replicaMetadata = other34.replicaMetadata; - __isset = other34.__isset; - return *this; -} -void DataReplicaLocationModel::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DataReplicaLocationModel("; - out << "replicaId="; (__isset.replicaId ? (out << to_string(replicaId)) : (out << "<null>")); - out << ", " << "productUri="; (__isset.productUri ? (out << to_string(productUri)) : (out << "<null>")); - out << ", " << "replicaName="; (__isset.replicaName ? (out << to_string(replicaName)) : (out << "<null>")); - out << ", " << "replicaDescription="; (__isset.replicaDescription ? (out << to_string(replicaDescription)) : (out << "<null>")); - out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>")); - out << ", " << "lastModifiedTime="; (__isset.lastModifiedTime ? (out << to_string(lastModifiedTime)) : (out << "<null>")); - out << ", " << "validUntilTime="; (__isset.validUntilTime ? (out << to_string(validUntilTime)) : (out << "<null>")); - out << ", " << "replicaLocationCategory="; (__isset.replicaLocationCategory ? (out << to_string(replicaLocationCategory)) : (out << "<null>")); - out << ", " << "replicaPersistentType="; (__isset.replicaPersistentType ? (out << to_string(replicaPersistentType)) : (out << "<null>")); - out << ", " << "storageResourceId="; (__isset.storageResourceId ? (out << to_string(storageResourceId)) : (out << "<null>")); - out << ", " << "filePath="; (__isset.filePath ? (out << to_string(filePath)) : (out << "<null>")); - out << ", " << "replicaMetadata="; (__isset.replicaMetadata ? (out << to_string(replicaMetadata)) : (out << "<null>")); - out << ")"; -} - -}}}}} // namespace
