Ejemplo n.º 1
0
 public function read($input)
 {
     $xfer = 0;
     $fname = null;
     $ftype = 0;
     $fid = 0;
     $xfer += $input->readStructBegin($fname);
     while (true) {
         $xfer += $input->readFieldBegin($fname, $ftype, $fid);
         if ($ftype == TType::STOP) {
             break;
         }
         switch ($fid) {
             case 0:
                 if ($ftype == TType::MAP) {
                     $this->success = array();
                     $_size77 = 0;
                     $_ktype78 = 0;
                     $_vtype79 = 0;
                     $xfer += $input->readMapBegin($_ktype78, $_vtype79, $_size77);
                     for ($_i81 = 0; $_i81 < $_size77; ++$_i81) {
                         $key82 = '';
                         $val83 = new \Airavata\Model\Workspace\Experiment\JobStatus();
                         $xfer += $input->readString($key82);
                         $val83 = new \Airavata\Model\Workspace\Experiment\JobStatus();
                         $xfer += $val83->read($input);
                         $this->success[$key82] = $val83;
                     }
                     $xfer += $input->readMapEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 1:
                 if ($ftype == TType::STRUCT) {
                     $this->ire = new \Airavata\API\Error\InvalidRequestException();
                     $xfer += $this->ire->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 2:
                 if ($ftype == TType::STRUCT) {
                     $this->enf = new \Airavata\API\Error\ExperimentNotFoundException();
                     $xfer += $this->enf->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 3:
                 if ($ftype == TType::STRUCT) {
                     $this->ace = new \Airavata\API\Error\AiravataClientException();
                     $xfer += $this->ace->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 4:
                 if ($ftype == TType::STRUCT) {
                     $this->ase = new \Airavata\API\Error\AiravataSystemException();
                     $xfer += $this->ase->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }
Ejemplo n.º 2
0
 public function read($input)
 {
     $xfer = 0;
     $fname = null;
     $ftype = 0;
     $fid = 0;
     $xfer += $input->readStructBegin($fname);
     while (true) {
         $xfer += $input->readFieldBegin($fname, $ftype, $fid);
         if ($ftype == TType::STOP) {
             break;
         }
         switch ($fid) {
             case 0:
                 if ($ftype == TType::MAP) {
                     $this->success = array();
                     $_size63 = 0;
                     $_ktype64 = 0;
                     $_vtype65 = 0;
                     $xfer += $input->readMapBegin($_ktype64, $_vtype65, $_size63);
                     for ($_i67 = 0; $_i67 < $_size63; ++$_i67) {
                         $key68 = '';
                         $val69 = new \Airavata\Model\Workspace\Experiment\JobStatus();
                         $xfer += $input->readString($key68);
                         $val69 = new \Airavata\Model\Workspace\Experiment\JobStatus();
                         $xfer += $val69->read($input);
                         $this->success[$key68] = $val69;
                     }
                     $xfer += $input->readMapEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }