You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/08/01 22:32:11 UTC
airavata-php-gateway git commit: updating compute resource thrift
model class
Repository: airavata-php-gateway
Updated Branches:
refs/heads/master 6a84103ee -> 96ae4b39a
updating compute resource thrift model class
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/96ae4b39
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/96ae4b39
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/96ae4b39
Branch: refs/heads/master
Commit: 96ae4b39aad83b0085708e47c4c982857a81e93a
Parents: 6a84103
Author: Supun Nakandala <sc...@apache.org>
Authored: Sun Aug 2 01:50:43 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Sun Aug 2 01:50:43 2015 +0530
----------------------------------------------------------------------
.../Model/AppCatalog/ComputeResource/Types.php | 49 ++++++++++++++------
1 file changed, 36 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/96ae4b39/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
----------------------------------------------------------------------
diff --git a/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php b/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
index b773cc4..6835993 100644
--- a/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
@@ -2310,6 +2310,10 @@ class ComputeResourceDescription {
*/
public $resourceDescription = null;
/**
+ * @var bool
+ */
+ public $enabled = null;
+ /**
* @var \Airavata\Model\AppCatalog\ComputeResource\BatchQueue[]
*/
public $batchQueues = null;
@@ -2362,6 +2366,10 @@ class ComputeResourceDescription {
'type' => TType::STRING,
),
6 => array(
+ 'var' => 'enabled',
+ 'type' => TType::BOOL,
+ ),
+ 7 => array(
'var' => 'batchQueues',
'type' => TType::LST,
'etype' => TType::STRUCT,
@@ -2370,7 +2378,7 @@ class ComputeResourceDescription {
'class' => '\Airavata\Model\AppCatalog\ComputeResource\BatchQueue',
),
),
- 7 => array(
+ 8 => array(
'var' => 'fileSystems',
'type' => TType::MAP,
'ktype' => TType::I32,
@@ -2382,7 +2390,7 @@ class ComputeResourceDescription {
'type' => TType::STRING,
),
),
- 8 => array(
+ 9 => array(
'var' => 'jobSubmissionInterfaces',
'type' => TType::LST,
'etype' => TType::STRUCT,
@@ -2391,7 +2399,7 @@ class ComputeResourceDescription {
'class' => '\Airavata\Model\AppCatalog\ComputeResource\JobSubmissionInterface',
),
),
- 9 => array(
+ 10 => array(
'var' => 'dataMovementInterfaces',
'type' => TType::LST,
'etype' => TType::STRUCT,
@@ -2400,7 +2408,7 @@ class ComputeResourceDescription {
'class' => '\Airavata\Model\AppCatalog\ComputeResource\DataMovementInterface',
),
),
- 10 => array(
+ 11 => array(
'var' => 'maxMemoryPerNode',
'type' => TType::I32,
),
@@ -2422,6 +2430,9 @@ class ComputeResourceDescription {
if (isset($vals['resourceDescription'])) {
$this->resourceDescription = $vals['resourceDescription'];
}
+ if (isset($vals['enabled'])) {
+ $this->enabled = $vals['enabled'];
+ }
if (isset($vals['batchQueues'])) {
$this->batchQueues = $vals['batchQueues'];
}
@@ -2515,6 +2526,13 @@ class ComputeResourceDescription {
}
break;
case 6:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->enabled);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
if ($ftype == TType::LST) {
$this->batchQueues = array();
$_size35 = 0;
@@ -2532,7 +2550,7 @@ class ComputeResourceDescription {
$xfer += $input->skip($ftype);
}
break;
- case 7:
+ case 8:
if ($ftype == TType::MAP) {
$this->fileSystems = array();
$_size41 = 0;
@@ -2552,7 +2570,7 @@ class ComputeResourceDescription {
$xfer += $input->skip($ftype);
}
break;
- case 8:
+ case 9:
if ($ftype == TType::LST) {
$this->jobSubmissionInterfaces = array();
$_size48 = 0;
@@ -2570,7 +2588,7 @@ class ComputeResourceDescription {
$xfer += $input->skip($ftype);
}
break;
- case 9:
+ case 10:
if ($ftype == TType::LST) {
$this->dataMovementInterfaces = array();
$_size54 = 0;
@@ -2588,7 +2606,7 @@ class ComputeResourceDescription {
$xfer += $input->skip($ftype);
}
break;
- case 10:
+ case 11:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->maxMemoryPerNode);
} else {
@@ -2657,11 +2675,16 @@ class ComputeResourceDescription {
$xfer += $output->writeString($this->resourceDescription);
$xfer += $output->writeFieldEnd();
}
+ if ($this->enabled !== null) {
+ $xfer += $output->writeFieldBegin('enabled', TType::BOOL, 6);
+ $xfer += $output->writeBool($this->enabled);
+ $xfer += $output->writeFieldEnd();
+ }
if ($this->batchQueues !== null) {
if (!is_array($this->batchQueues)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
- $xfer += $output->writeFieldBegin('batchQueues', TType::LST, 6);
+ $xfer += $output->writeFieldBegin('batchQueues', TType::LST, 7);
{
$output->writeListBegin(TType::STRUCT, count($this->batchQueues));
{
@@ -2678,7 +2701,7 @@ class ComputeResourceDescription {
if (!is_array($this->fileSystems)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
- $xfer += $output->writeFieldBegin('fileSystems', TType::MAP, 7);
+ $xfer += $output->writeFieldBegin('fileSystems', TType::MAP, 8);
{
$output->writeMapBegin(TType::I32, TType::STRING, count($this->fileSystems));
{
@@ -2696,7 +2719,7 @@ class ComputeResourceDescription {
if (!is_array($this->jobSubmissionInterfaces)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaces', TType::LST, 8);
+ $xfer += $output->writeFieldBegin('jobSubmissionInterfaces', TType::LST, 9);
{
$output->writeListBegin(TType::STRUCT, count($this->jobSubmissionInterfaces));
{
@@ -2713,7 +2736,7 @@ class ComputeResourceDescription {
if (!is_array($this->dataMovementInterfaces)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
}
- $xfer += $output->writeFieldBegin('dataMovementInterfaces', TType::LST, 9);
+ $xfer += $output->writeFieldBegin('dataMovementInterfaces', TType::LST, 10);
{
$output->writeListBegin(TType::STRUCT, count($this->dataMovementInterfaces));
{
@@ -2727,7 +2750,7 @@ class ComputeResourceDescription {
$xfer += $output->writeFieldEnd();
}
if ($this->maxMemoryPerNode !== null) {
- $xfer += $output->writeFieldBegin('maxMemoryPerNode', TType::I32, 10);
+ $xfer += $output->writeFieldBegin('maxMemoryPerNode', TType::I32, 11);
$xfer += $output->writeI32($this->maxMemoryPerNode);
$xfer += $output->writeFieldEnd();
}