1 | <?php |
||
21 | class MarathonAppEntity implements JobEntityInterface |
||
22 | { |
||
23 | public $id = ''; |
||
24 | |||
25 | public $cmd = null; |
||
26 | |||
27 | public $cpus = 0; |
||
28 | |||
29 | public $mem = 0; |
||
30 | |||
31 | public $args = null; |
||
32 | |||
33 | /** |
||
34 | * @var PortDefinition[] |
||
35 | */ |
||
36 | public $portDefinitions = null; |
||
37 | |||
38 | public $requirePorts = false; |
||
39 | |||
40 | public $instances = 0; |
||
41 | |||
42 | public $executor = ''; |
||
43 | |||
44 | /** |
||
45 | * @var Container |
||
46 | */ |
||
47 | public $container = null; |
||
48 | |||
49 | /** |
||
50 | * @var Network[] |
||
51 | */ |
||
52 | public $networks = []; |
||
53 | |||
54 | public $env = null; |
||
55 | |||
56 | /** |
||
57 | * @var array |
||
58 | */ |
||
59 | public $constraints = []; |
||
60 | |||
61 | public $acceptedResourceRoles = null; |
||
62 | |||
63 | public $labels = null; |
||
64 | |||
65 | public $uris = []; |
||
66 | |||
67 | /** |
||
68 | * @var Fetch[] |
||
69 | */ |
||
70 | public $fetch = []; |
||
71 | |||
72 | public $dependencies = []; |
||
73 | |||
74 | /** |
||
75 | * @var HealthCheck[] |
||
76 | */ |
||
77 | public $healthChecks = null; |
||
78 | |||
79 | public $backoffSeconds = 1; |
||
80 | |||
81 | public $backoffFactor = 1.15; |
||
82 | |||
83 | public $maxLaunchDelaySeconds = 3600; |
||
84 | |||
85 | public $taskKillGracePeriodSeconds = 0; |
||
86 | |||
87 | /** |
||
88 | * @var UpgradeStrategy |
||
89 | */ |
||
90 | public $upgradeStrategy = null; |
||
91 | |||
92 | |||
93 | /** |
||
94 | * @var IpAddress |
||
95 | */ |
||
96 | public $ipAddress = null; |
||
97 | |||
98 | 52 | public function __construct($data = null) |
|
139 | |||
140 | /** |
||
141 | * @inheritdoc |
||
142 | * @return array |
||
143 | */ |
||
144 | 4 | public function jsonSerialize() |
|
166 | |||
167 | /** |
||
168 | * @inheritdoc |
||
169 | * @return \ArrayIterator |
||
170 | */ |
||
171 | 5 | public function getIterator() |
|
175 | |||
176 | /** |
||
177 | * @inheritdoc |
||
178 | * @return array |
||
179 | */ |
||
180 | 5 | public function getSimpleArrayCopy() |
|
190 | |||
191 | /** |
||
192 | * @inheritdoc |
||
193 | * @return bool |
||
194 | */ |
||
195 | public function isSchedulingJob() |
||
199 | |||
200 | /** |
||
201 | * @inheritdoc |
||
202 | * @return bool |
||
203 | */ |
||
204 | 5 | public function isDependencyJob() |
|
208 | |||
209 | /** |
||
210 | * @return string |
||
211 | */ |
||
212 | 5 | public function getEntityType() |
|
216 | |||
217 | /** |
||
218 | * @return string |
||
219 | */ |
||
220 | 28 | public function getKey() |
|
224 | } |
||
225 |