[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Dataproc;
|
---|
| 19 |
|
---|
| 20 | class ExecutorSummary extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'excludedInStages';
|
---|
| 23 | /**
|
---|
| 24 | * @var int
|
---|
| 25 | */
|
---|
| 26 | public $activeTasks;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $addTime;
|
---|
| 31 | /**
|
---|
| 32 | * @var string[]
|
---|
| 33 | */
|
---|
| 34 | public $attributes;
|
---|
| 35 | /**
|
---|
| 36 | * @var int
|
---|
| 37 | */
|
---|
| 38 | public $completedTasks;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $diskUsed;
|
---|
| 43 | /**
|
---|
| 44 | * @var string[]
|
---|
| 45 | */
|
---|
| 46 | public $excludedInStages;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $executorId;
|
---|
| 51 | /**
|
---|
| 52 | * @var string[]
|
---|
| 53 | */
|
---|
| 54 | public $executorLogs;
|
---|
| 55 | /**
|
---|
| 56 | * @var int
|
---|
| 57 | */
|
---|
| 58 | public $failedTasks;
|
---|
| 59 | /**
|
---|
| 60 | * @var string
|
---|
| 61 | */
|
---|
| 62 | public $hostPort;
|
---|
| 63 | /**
|
---|
| 64 | * @var bool
|
---|
| 65 | */
|
---|
| 66 | public $isActive;
|
---|
| 67 | /**
|
---|
| 68 | * @var bool
|
---|
| 69 | */
|
---|
| 70 | public $isExcluded;
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $maxMemory;
|
---|
| 75 | /**
|
---|
| 76 | * @var int
|
---|
| 77 | */
|
---|
| 78 | public $maxTasks;
|
---|
| 79 | protected $memoryMetricsType = MemoryMetrics::class;
|
---|
| 80 | protected $memoryMetricsDataType = '';
|
---|
| 81 | /**
|
---|
| 82 | * @var string
|
---|
| 83 | */
|
---|
| 84 | public $memoryUsed;
|
---|
| 85 | protected $peakMemoryMetricsType = ExecutorMetrics::class;
|
---|
| 86 | protected $peakMemoryMetricsDataType = '';
|
---|
| 87 | /**
|
---|
| 88 | * @var int
|
---|
| 89 | */
|
---|
| 90 | public $rddBlocks;
|
---|
| 91 | /**
|
---|
| 92 | * @var string
|
---|
| 93 | */
|
---|
| 94 | public $removeReason;
|
---|
| 95 | /**
|
---|
| 96 | * @var string
|
---|
| 97 | */
|
---|
| 98 | public $removeTime;
|
---|
| 99 | /**
|
---|
| 100 | * @var int
|
---|
| 101 | */
|
---|
| 102 | public $resourceProfileId;
|
---|
| 103 | protected $resourcesType = ResourceInformation::class;
|
---|
| 104 | protected $resourcesDataType = 'map';
|
---|
| 105 | /**
|
---|
| 106 | * @var int
|
---|
| 107 | */
|
---|
| 108 | public $totalCores;
|
---|
| 109 | /**
|
---|
| 110 | * @var string
|
---|
| 111 | */
|
---|
| 112 | public $totalDurationMillis;
|
---|
| 113 | /**
|
---|
| 114 | * @var string
|
---|
| 115 | */
|
---|
| 116 | public $totalGcTimeMillis;
|
---|
| 117 | /**
|
---|
| 118 | * @var string
|
---|
| 119 | */
|
---|
| 120 | public $totalInputBytes;
|
---|
| 121 | /**
|
---|
| 122 | * @var string
|
---|
| 123 | */
|
---|
| 124 | public $totalShuffleRead;
|
---|
| 125 | /**
|
---|
| 126 | * @var string
|
---|
| 127 | */
|
---|
| 128 | public $totalShuffleWrite;
|
---|
| 129 | /**
|
---|
| 130 | * @var int
|
---|
| 131 | */
|
---|
| 132 | public $totalTasks;
|
---|
| 133 |
|
---|
| 134 | /**
|
---|
| 135 | * @param int
|
---|
| 136 | */
|
---|
| 137 | public function setActiveTasks($activeTasks)
|
---|
| 138 | {
|
---|
| 139 | $this->activeTasks = $activeTasks;
|
---|
| 140 | }
|
---|
| 141 | /**
|
---|
| 142 | * @return int
|
---|
| 143 | */
|
---|
| 144 | public function getActiveTasks()
|
---|
| 145 | {
|
---|
| 146 | return $this->activeTasks;
|
---|
| 147 | }
|
---|
| 148 | /**
|
---|
| 149 | * @param string
|
---|
| 150 | */
|
---|
| 151 | public function setAddTime($addTime)
|
---|
| 152 | {
|
---|
| 153 | $this->addTime = $addTime;
|
---|
| 154 | }
|
---|
| 155 | /**
|
---|
| 156 | * @return string
|
---|
| 157 | */
|
---|
| 158 | public function getAddTime()
|
---|
| 159 | {
|
---|
| 160 | return $this->addTime;
|
---|
| 161 | }
|
---|
| 162 | /**
|
---|
| 163 | * @param string[]
|
---|
| 164 | */
|
---|
| 165 | public function setAttributes($attributes)
|
---|
| 166 | {
|
---|
| 167 | $this->attributes = $attributes;
|
---|
| 168 | }
|
---|
| 169 | /**
|
---|
| 170 | * @return string[]
|
---|
| 171 | */
|
---|
| 172 | public function getAttributes()
|
---|
| 173 | {
|
---|
| 174 | return $this->attributes;
|
---|
| 175 | }
|
---|
| 176 | /**
|
---|
| 177 | * @param int
|
---|
| 178 | */
|
---|
| 179 | public function setCompletedTasks($completedTasks)
|
---|
| 180 | {
|
---|
| 181 | $this->completedTasks = $completedTasks;
|
---|
| 182 | }
|
---|
| 183 | /**
|
---|
| 184 | * @return int
|
---|
| 185 | */
|
---|
| 186 | public function getCompletedTasks()
|
---|
| 187 | {
|
---|
| 188 | return $this->completedTasks;
|
---|
| 189 | }
|
---|
| 190 | /**
|
---|
| 191 | * @param string
|
---|
| 192 | */
|
---|
| 193 | public function setDiskUsed($diskUsed)
|
---|
| 194 | {
|
---|
| 195 | $this->diskUsed = $diskUsed;
|
---|
| 196 | }
|
---|
| 197 | /**
|
---|
| 198 | * @return string
|
---|
| 199 | */
|
---|
| 200 | public function getDiskUsed()
|
---|
| 201 | {
|
---|
| 202 | return $this->diskUsed;
|
---|
| 203 | }
|
---|
| 204 | /**
|
---|
| 205 | * @param string[]
|
---|
| 206 | */
|
---|
| 207 | public function setExcludedInStages($excludedInStages)
|
---|
| 208 | {
|
---|
| 209 | $this->excludedInStages = $excludedInStages;
|
---|
| 210 | }
|
---|
| 211 | /**
|
---|
| 212 | * @return string[]
|
---|
| 213 | */
|
---|
| 214 | public function getExcludedInStages()
|
---|
| 215 | {
|
---|
| 216 | return $this->excludedInStages;
|
---|
| 217 | }
|
---|
| 218 | /**
|
---|
| 219 | * @param string
|
---|
| 220 | */
|
---|
| 221 | public function setExecutorId($executorId)
|
---|
| 222 | {
|
---|
| 223 | $this->executorId = $executorId;
|
---|
| 224 | }
|
---|
| 225 | /**
|
---|
| 226 | * @return string
|
---|
| 227 | */
|
---|
| 228 | public function getExecutorId()
|
---|
| 229 | {
|
---|
| 230 | return $this->executorId;
|
---|
| 231 | }
|
---|
| 232 | /**
|
---|
| 233 | * @param string[]
|
---|
| 234 | */
|
---|
| 235 | public function setExecutorLogs($executorLogs)
|
---|
| 236 | {
|
---|
| 237 | $this->executorLogs = $executorLogs;
|
---|
| 238 | }
|
---|
| 239 | /**
|
---|
| 240 | * @return string[]
|
---|
| 241 | */
|
---|
| 242 | public function getExecutorLogs()
|
---|
| 243 | {
|
---|
| 244 | return $this->executorLogs;
|
---|
| 245 | }
|
---|
| 246 | /**
|
---|
| 247 | * @param int
|
---|
| 248 | */
|
---|
| 249 | public function setFailedTasks($failedTasks)
|
---|
| 250 | {
|
---|
| 251 | $this->failedTasks = $failedTasks;
|
---|
| 252 | }
|
---|
| 253 | /**
|
---|
| 254 | * @return int
|
---|
| 255 | */
|
---|
| 256 | public function getFailedTasks()
|
---|
| 257 | {
|
---|
| 258 | return $this->failedTasks;
|
---|
| 259 | }
|
---|
| 260 | /**
|
---|
| 261 | * @param string
|
---|
| 262 | */
|
---|
| 263 | public function setHostPort($hostPort)
|
---|
| 264 | {
|
---|
| 265 | $this->hostPort = $hostPort;
|
---|
| 266 | }
|
---|
| 267 | /**
|
---|
| 268 | * @return string
|
---|
| 269 | */
|
---|
| 270 | public function getHostPort()
|
---|
| 271 | {
|
---|
| 272 | return $this->hostPort;
|
---|
| 273 | }
|
---|
| 274 | /**
|
---|
| 275 | * @param bool
|
---|
| 276 | */
|
---|
| 277 | public function setIsActive($isActive)
|
---|
| 278 | {
|
---|
| 279 | $this->isActive = $isActive;
|
---|
| 280 | }
|
---|
| 281 | /**
|
---|
| 282 | * @return bool
|
---|
| 283 | */
|
---|
| 284 | public function getIsActive()
|
---|
| 285 | {
|
---|
| 286 | return $this->isActive;
|
---|
| 287 | }
|
---|
| 288 | /**
|
---|
| 289 | * @param bool
|
---|
| 290 | */
|
---|
| 291 | public function setIsExcluded($isExcluded)
|
---|
| 292 | {
|
---|
| 293 | $this->isExcluded = $isExcluded;
|
---|
| 294 | }
|
---|
| 295 | /**
|
---|
| 296 | * @return bool
|
---|
| 297 | */
|
---|
| 298 | public function getIsExcluded()
|
---|
| 299 | {
|
---|
| 300 | return $this->isExcluded;
|
---|
| 301 | }
|
---|
| 302 | /**
|
---|
| 303 | * @param string
|
---|
| 304 | */
|
---|
| 305 | public function setMaxMemory($maxMemory)
|
---|
| 306 | {
|
---|
| 307 | $this->maxMemory = $maxMemory;
|
---|
| 308 | }
|
---|
| 309 | /**
|
---|
| 310 | * @return string
|
---|
| 311 | */
|
---|
| 312 | public function getMaxMemory()
|
---|
| 313 | {
|
---|
| 314 | return $this->maxMemory;
|
---|
| 315 | }
|
---|
| 316 | /**
|
---|
| 317 | * @param int
|
---|
| 318 | */
|
---|
| 319 | public function setMaxTasks($maxTasks)
|
---|
| 320 | {
|
---|
| 321 | $this->maxTasks = $maxTasks;
|
---|
| 322 | }
|
---|
| 323 | /**
|
---|
| 324 | * @return int
|
---|
| 325 | */
|
---|
| 326 | public function getMaxTasks()
|
---|
| 327 | {
|
---|
| 328 | return $this->maxTasks;
|
---|
| 329 | }
|
---|
| 330 | /**
|
---|
| 331 | * @param MemoryMetrics
|
---|
| 332 | */
|
---|
| 333 | public function setMemoryMetrics(MemoryMetrics $memoryMetrics)
|
---|
| 334 | {
|
---|
| 335 | $this->memoryMetrics = $memoryMetrics;
|
---|
| 336 | }
|
---|
| 337 | /**
|
---|
| 338 | * @return MemoryMetrics
|
---|
| 339 | */
|
---|
| 340 | public function getMemoryMetrics()
|
---|
| 341 | {
|
---|
| 342 | return $this->memoryMetrics;
|
---|
| 343 | }
|
---|
| 344 | /**
|
---|
| 345 | * @param string
|
---|
| 346 | */
|
---|
| 347 | public function setMemoryUsed($memoryUsed)
|
---|
| 348 | {
|
---|
| 349 | $this->memoryUsed = $memoryUsed;
|
---|
| 350 | }
|
---|
| 351 | /**
|
---|
| 352 | * @return string
|
---|
| 353 | */
|
---|
| 354 | public function getMemoryUsed()
|
---|
| 355 | {
|
---|
| 356 | return $this->memoryUsed;
|
---|
| 357 | }
|
---|
| 358 | /**
|
---|
| 359 | * @param ExecutorMetrics
|
---|
| 360 | */
|
---|
| 361 | public function setPeakMemoryMetrics(ExecutorMetrics $peakMemoryMetrics)
|
---|
| 362 | {
|
---|
| 363 | $this->peakMemoryMetrics = $peakMemoryMetrics;
|
---|
| 364 | }
|
---|
| 365 | /**
|
---|
| 366 | * @return ExecutorMetrics
|
---|
| 367 | */
|
---|
| 368 | public function getPeakMemoryMetrics()
|
---|
| 369 | {
|
---|
| 370 | return $this->peakMemoryMetrics;
|
---|
| 371 | }
|
---|
| 372 | /**
|
---|
| 373 | * @param int
|
---|
| 374 | */
|
---|
| 375 | public function setRddBlocks($rddBlocks)
|
---|
| 376 | {
|
---|
| 377 | $this->rddBlocks = $rddBlocks;
|
---|
| 378 | }
|
---|
| 379 | /**
|
---|
| 380 | * @return int
|
---|
| 381 | */
|
---|
| 382 | public function getRddBlocks()
|
---|
| 383 | {
|
---|
| 384 | return $this->rddBlocks;
|
---|
| 385 | }
|
---|
| 386 | /**
|
---|
| 387 | * @param string
|
---|
| 388 | */
|
---|
| 389 | public function setRemoveReason($removeReason)
|
---|
| 390 | {
|
---|
| 391 | $this->removeReason = $removeReason;
|
---|
| 392 | }
|
---|
| 393 | /**
|
---|
| 394 | * @return string
|
---|
| 395 | */
|
---|
| 396 | public function getRemoveReason()
|
---|
| 397 | {
|
---|
| 398 | return $this->removeReason;
|
---|
| 399 | }
|
---|
| 400 | /**
|
---|
| 401 | * @param string
|
---|
| 402 | */
|
---|
| 403 | public function setRemoveTime($removeTime)
|
---|
| 404 | {
|
---|
| 405 | $this->removeTime = $removeTime;
|
---|
| 406 | }
|
---|
| 407 | /**
|
---|
| 408 | * @return string
|
---|
| 409 | */
|
---|
| 410 | public function getRemoveTime()
|
---|
| 411 | {
|
---|
| 412 | return $this->removeTime;
|
---|
| 413 | }
|
---|
| 414 | /**
|
---|
| 415 | * @param int
|
---|
| 416 | */
|
---|
| 417 | public function setResourceProfileId($resourceProfileId)
|
---|
| 418 | {
|
---|
| 419 | $this->resourceProfileId = $resourceProfileId;
|
---|
| 420 | }
|
---|
| 421 | /**
|
---|
| 422 | * @return int
|
---|
| 423 | */
|
---|
| 424 | public function getResourceProfileId()
|
---|
| 425 | {
|
---|
| 426 | return $this->resourceProfileId;
|
---|
| 427 | }
|
---|
| 428 | /**
|
---|
| 429 | * @param ResourceInformation[]
|
---|
| 430 | */
|
---|
| 431 | public function setResources($resources)
|
---|
| 432 | {
|
---|
| 433 | $this->resources = $resources;
|
---|
| 434 | }
|
---|
| 435 | /**
|
---|
| 436 | * @return ResourceInformation[]
|
---|
| 437 | */
|
---|
| 438 | public function getResources()
|
---|
| 439 | {
|
---|
| 440 | return $this->resources;
|
---|
| 441 | }
|
---|
| 442 | /**
|
---|
| 443 | * @param int
|
---|
| 444 | */
|
---|
| 445 | public function setTotalCores($totalCores)
|
---|
| 446 | {
|
---|
| 447 | $this->totalCores = $totalCores;
|
---|
| 448 | }
|
---|
| 449 | /**
|
---|
| 450 | * @return int
|
---|
| 451 | */
|
---|
| 452 | public function getTotalCores()
|
---|
| 453 | {
|
---|
| 454 | return $this->totalCores;
|
---|
| 455 | }
|
---|
| 456 | /**
|
---|
| 457 | * @param string
|
---|
| 458 | */
|
---|
| 459 | public function setTotalDurationMillis($totalDurationMillis)
|
---|
| 460 | {
|
---|
| 461 | $this->totalDurationMillis = $totalDurationMillis;
|
---|
| 462 | }
|
---|
| 463 | /**
|
---|
| 464 | * @return string
|
---|
| 465 | */
|
---|
| 466 | public function getTotalDurationMillis()
|
---|
| 467 | {
|
---|
| 468 | return $this->totalDurationMillis;
|
---|
| 469 | }
|
---|
| 470 | /**
|
---|
| 471 | * @param string
|
---|
| 472 | */
|
---|
| 473 | public function setTotalGcTimeMillis($totalGcTimeMillis)
|
---|
| 474 | {
|
---|
| 475 | $this->totalGcTimeMillis = $totalGcTimeMillis;
|
---|
| 476 | }
|
---|
| 477 | /**
|
---|
| 478 | * @return string
|
---|
| 479 | */
|
---|
| 480 | public function getTotalGcTimeMillis()
|
---|
| 481 | {
|
---|
| 482 | return $this->totalGcTimeMillis;
|
---|
| 483 | }
|
---|
| 484 | /**
|
---|
| 485 | * @param string
|
---|
| 486 | */
|
---|
| 487 | public function setTotalInputBytes($totalInputBytes)
|
---|
| 488 | {
|
---|
| 489 | $this->totalInputBytes = $totalInputBytes;
|
---|
| 490 | }
|
---|
| 491 | /**
|
---|
| 492 | * @return string
|
---|
| 493 | */
|
---|
| 494 | public function getTotalInputBytes()
|
---|
| 495 | {
|
---|
| 496 | return $this->totalInputBytes;
|
---|
| 497 | }
|
---|
| 498 | /**
|
---|
| 499 | * @param string
|
---|
| 500 | */
|
---|
| 501 | public function setTotalShuffleRead($totalShuffleRead)
|
---|
| 502 | {
|
---|
| 503 | $this->totalShuffleRead = $totalShuffleRead;
|
---|
| 504 | }
|
---|
| 505 | /**
|
---|
| 506 | * @return string
|
---|
| 507 | */
|
---|
| 508 | public function getTotalShuffleRead()
|
---|
| 509 | {
|
---|
| 510 | return $this->totalShuffleRead;
|
---|
| 511 | }
|
---|
| 512 | /**
|
---|
| 513 | * @param string
|
---|
| 514 | */
|
---|
| 515 | public function setTotalShuffleWrite($totalShuffleWrite)
|
---|
| 516 | {
|
---|
| 517 | $this->totalShuffleWrite = $totalShuffleWrite;
|
---|
| 518 | }
|
---|
| 519 | /**
|
---|
| 520 | * @return string
|
---|
| 521 | */
|
---|
| 522 | public function getTotalShuffleWrite()
|
---|
| 523 | {
|
---|
| 524 | return $this->totalShuffleWrite;
|
---|
| 525 | }
|
---|
| 526 | /**
|
---|
| 527 | * @param int
|
---|
| 528 | */
|
---|
| 529 | public function setTotalTasks($totalTasks)
|
---|
| 530 | {
|
---|
| 531 | $this->totalTasks = $totalTasks;
|
---|
| 532 | }
|
---|
| 533 | /**
|
---|
| 534 | * @return int
|
---|
| 535 | */
|
---|
| 536 | public function getTotalTasks()
|
---|
| 537 | {
|
---|
| 538 | return $this->totalTasks;
|
---|
| 539 | }
|
---|
| 540 | }
|
---|
| 541 |
|
---|
| 542 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 543 | class_alias(ExecutorSummary::class, 'Google_Service_Dataproc_ExecutorSummary');
|
---|