1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.config; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.api.config.MuleConfiguration; |
15 | |
import org.mule.api.config.MuleProperties; |
16 | |
import org.mule.api.context.MuleContextAware; |
17 | |
import org.mule.api.lifecycle.FatalException; |
18 | |
import org.mule.api.lifecycle.Initialisable; |
19 | |
import org.mule.api.lifecycle.Startable; |
20 | |
import org.mule.config.i18n.CoreMessages; |
21 | |
import org.mule.util.FileUtils; |
22 | |
import org.mule.util.NumberUtils; |
23 | |
import org.mule.util.StringUtils; |
24 | |
import org.mule.util.UUID; |
25 | |
|
26 | |
import org.apache.commons.lang.BooleanUtils; |
27 | |
import org.apache.commons.logging.Log; |
28 | |
import org.apache.commons.logging.LogFactory; |
29 | |
|
30 | |
import java.net.InetAddress; |
31 | |
import java.net.UnknownHostException; |
32 | |
import java.nio.charset.Charset; |
33 | |
|
34 | |
import javax.xml.parsers.SAXParserFactory; |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
public class DefaultMuleConfiguration implements MuleConfiguration, MuleContextAware |
41 | |
{ |
42 | |
|
43 | 0 | public static final String[] DEFAULT_STACKTRACE_FILTER = ( |
44 | |
"org.mule.processor.AbstractInterceptingMessageProcessor," + |
45 | |
"org.mule.processor.chain") |
46 | |
.split(","); |
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | 0 | public static boolean fullStackTraces = false; |
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | 0 | public static boolean verboseExceptions = false; |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | 0 | public static String[] stackTraceFilter = DEFAULT_STACKTRACE_FILTER; |
67 | |
|
68 | 0 | private boolean synchronous = false; |
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | 0 | private String systemModelType = "seda"; |
75 | |
|
76 | 0 | private String encoding = "UTF-8"; |
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | 0 | private int responseTimeout = 10000; |
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | 0 | private int defaultTransactionTimeout = 30000; |
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | 0 | private int defaultQueueTimeout = 200; |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
|
99 | 0 | private int shutdownTimeout = 5000; |
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | 0 | private String workingDirectory = "./.mule"; |
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | 0 | private boolean clientMode = false; |
114 | |
|
115 | |
|
116 | |
private String id; |
117 | |
|
118 | |
|
119 | |
private String clusterId; |
120 | |
|
121 | |
|
122 | |
private String domainId; |
123 | |
|
124 | |
|
125 | |
|
126 | 0 | private boolean cacheMessageAsBytes = true; |
127 | |
|
128 | 0 | private boolean cacheMessageOriginalPayload = true; |
129 | |
|
130 | 0 | private boolean enableStreaming = true; |
131 | |
|
132 | 0 | private boolean autoWrapMessageAwareTransform = true; |
133 | |
|
134 | 0 | protected transient Log logger = LogFactory.getLog(DefaultMuleConfiguration.class); |
135 | |
|
136 | |
private MuleContext muleContext; |
137 | |
private boolean containerMode; |
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
|
145 | 0 | private boolean validateExpressions = true; |
146 | |
|
147 | |
|
148 | |
public DefaultMuleConfiguration() |
149 | |
{ |
150 | 0 | this(false); |
151 | 0 | } |
152 | |
|
153 | |
public DefaultMuleConfiguration(boolean containerMode) |
154 | 0 | { |
155 | 0 | this.containerMode = containerMode; |
156 | |
|
157 | |
|
158 | 0 | applySystemProperties(); |
159 | |
|
160 | 0 | if (id == null) |
161 | |
{ |
162 | 0 | id = UUID.getUUID(); |
163 | |
} |
164 | |
|
165 | 0 | if (clusterId == null) |
166 | |
{ |
167 | 0 | clusterId = CoreMessages.notClustered().getMessage(); |
168 | |
} |
169 | |
|
170 | 0 | if (domainId == null) |
171 | |
{ |
172 | |
try |
173 | |
{ |
174 | 0 | domainId = InetAddress.getLocalHost().getHostName(); |
175 | |
} |
176 | 0 | catch (UnknownHostException e) |
177 | |
{ |
178 | 0 | logger.warn(e); |
179 | 0 | domainId = "org.mule"; |
180 | 0 | } |
181 | |
} |
182 | |
|
183 | |
try |
184 | |
{ |
185 | 0 | validateEncoding(); |
186 | 0 | validateXML(); |
187 | |
} |
188 | 0 | catch (FatalException e) |
189 | |
{ |
190 | 0 | throw new RuntimeException(e); |
191 | 0 | } |
192 | 0 | } |
193 | |
|
194 | |
public void setMuleContext(MuleContext context) |
195 | |
{ |
196 | 0 | this.muleContext = context; |
197 | 0 | if (containerMode) |
198 | |
{ |
199 | 0 | final String muleHome = System.getProperty("mule.home"); |
200 | |
|
201 | 0 | if (StringUtils.isBlank(muleHome)) { |
202 | |
|
203 | 0 | this.workingDirectory = String.format("%s/%s", getWorkingDirectory(), getId()); |
204 | |
} |
205 | |
else |
206 | |
{ |
207 | 0 | this.workingDirectory = String.format("%s/%s/%s", muleHome.trim(), getWorkingDirectory(), getId()); |
208 | |
} |
209 | |
} |
210 | 0 | } |
211 | |
|
212 | |
|
213 | |
|
214 | |
|
215 | |
protected void applySystemProperties() |
216 | |
{ |
217 | |
String p; |
218 | |
|
219 | 0 | p = System.getProperty(MuleProperties.MULE_ENCODING_SYSTEM_PROPERTY); |
220 | 0 | if (p != null) |
221 | |
{ |
222 | 0 | encoding = p; |
223 | |
} |
224 | |
else |
225 | |
{ |
226 | 0 | System.setProperty(MuleProperties.MULE_ENCODING_SYSTEM_PROPERTY, encoding); |
227 | |
} |
228 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "endpoints.synchronous"); |
229 | 0 | if (p != null) |
230 | |
{ |
231 | 0 | synchronous = BooleanUtils.toBoolean(p); |
232 | |
} |
233 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "systemModelType"); |
234 | 0 | if (p != null) |
235 | |
{ |
236 | 0 | systemModelType = p; |
237 | |
} |
238 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "timeout.synchronous"); |
239 | 0 | if (p != null) |
240 | |
{ |
241 | 0 | responseTimeout = NumberUtils.toInt(p); |
242 | |
} |
243 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "timeout.transaction"); |
244 | 0 | if (p != null) |
245 | |
{ |
246 | 0 | defaultTransactionTimeout = NumberUtils.toInt(p); |
247 | |
} |
248 | |
|
249 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "workingDirectory"); |
250 | 0 | if (p != null) |
251 | |
{ |
252 | 0 | workingDirectory = p; |
253 | |
} |
254 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "clientMode"); |
255 | 0 | if (p != null) |
256 | |
{ |
257 | 0 | clientMode = BooleanUtils.toBoolean(p); |
258 | |
} |
259 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "serverId"); |
260 | 0 | if (p != null) |
261 | |
{ |
262 | 0 | id = p; |
263 | |
} |
264 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "clusterId"); |
265 | 0 | if (p != null) |
266 | |
{ |
267 | 0 | clusterId = p; |
268 | |
} |
269 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "domainId"); |
270 | 0 | if (p != null) |
271 | |
{ |
272 | 0 | domainId = p; |
273 | |
} |
274 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "message.cacheBytes"); |
275 | 0 | if (p != null) |
276 | |
{ |
277 | 0 | cacheMessageAsBytes = BooleanUtils.toBoolean(p); |
278 | |
} |
279 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "message.cacheOriginal"); |
280 | 0 | if (p != null) |
281 | |
{ |
282 | 0 | cacheMessageOriginalPayload = BooleanUtils.toBoolean(p); |
283 | |
} |
284 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "streaming.enable"); |
285 | 0 | if (p != null) |
286 | |
{ |
287 | 0 | enableStreaming = BooleanUtils.toBoolean(p); |
288 | |
} |
289 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "transform.autoWrap"); |
290 | 0 | if (p != null) |
291 | |
{ |
292 | 0 | autoWrapMessageAwareTransform = BooleanUtils.toBoolean(p); |
293 | |
} |
294 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "stacktrace.full"); |
295 | 0 | if (p != null) |
296 | |
{ |
297 | 0 | fullStackTraces = false; |
298 | |
} |
299 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "stacktrace.filter"); |
300 | 0 | if (p != null) |
301 | |
{ |
302 | 0 | stackTraceFilter = p.split(","); |
303 | |
} |
304 | |
|
305 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "verbose.exceptions"); |
306 | 0 | if (p != null) |
307 | |
{ |
308 | 0 | verboseExceptions = BooleanUtils.toBoolean(p); |
309 | |
} |
310 | |
else |
311 | |
{ |
312 | 0 | verboseExceptions = logger.isDebugEnabled(); |
313 | |
} |
314 | |
|
315 | 0 | p = System.getProperty(MuleProperties.SYSTEM_PROPERTY_PREFIX + "validate.expressions"); |
316 | 0 | if (p != null) |
317 | |
{ |
318 | 0 | validateExpressions = Boolean.valueOf(p); |
319 | |
} |
320 | 0 | } |
321 | |
|
322 | |
protected void validateEncoding() throws FatalException |
323 | |
{ |
324 | |
|
325 | 0 | if (!Charset.isSupported(encoding)) |
326 | |
{ |
327 | 0 | throw new FatalException(CoreMessages.propertyHasInvalidValue("encoding", encoding), this); |
328 | |
} |
329 | 0 | } |
330 | |
|
331 | |
|
332 | |
|
333 | |
|
334 | |
|
335 | |
|
336 | |
|
337 | |
|
338 | |
|
339 | |
|
340 | |
|
341 | |
protected void validateXML() throws FatalException |
342 | |
{ |
343 | 0 | SAXParserFactory f = SAXParserFactory.newInstance(); |
344 | 0 | if (f == null || f.getClass().getName().indexOf("crimson") != -1) |
345 | |
{ |
346 | 0 | throw new FatalException(CoreMessages.valueIsInvalidFor(f.getClass().getName(), |
347 | |
"javax.xml.parsers.SAXParserFactory"), this); |
348 | |
} |
349 | 0 | } |
350 | |
|
351 | |
public void setDefaultSynchronousEndpoints(boolean synchronous) |
352 | |
{ |
353 | 0 | if (verifyContextNotStarted()) |
354 | |
{ |
355 | 0 | this.synchronous = synchronous; |
356 | |
} |
357 | 0 | } |
358 | |
|
359 | |
public int getDefaultResponseTimeout() |
360 | |
{ |
361 | 0 | return responseTimeout; |
362 | |
} |
363 | |
|
364 | |
public void setDefaultResponseTimeout(int responseTimeout) |
365 | |
{ |
366 | 0 | if (verifyContextNotStarted()) |
367 | |
{ |
368 | 0 | this.responseTimeout = responseTimeout; |
369 | |
} |
370 | 0 | } |
371 | |
|
372 | |
public String getWorkingDirectory() |
373 | |
{ |
374 | 0 | return workingDirectory; |
375 | |
} |
376 | |
|
377 | |
public String getMuleHomeDirectory() |
378 | |
{ |
379 | 0 | return System.getProperty(MuleProperties.MULE_HOME_DIRECTORY_PROPERTY); |
380 | |
} |
381 | |
|
382 | |
public void setWorkingDirectory(String workingDirectory) |
383 | |
{ |
384 | 0 | if (verifyContextNotInitialized()) |
385 | |
{ |
386 | |
|
387 | 0 | this.workingDirectory = FileUtils.newFile(workingDirectory).getAbsolutePath().replaceAll("\\\\", "/"); |
388 | |
} |
389 | 0 | } |
390 | |
|
391 | |
public int getDefaultTransactionTimeout() |
392 | |
{ |
393 | 0 | return defaultTransactionTimeout; |
394 | |
} |
395 | |
|
396 | |
public void setDefaultTransactionTimeout(int defaultTransactionTimeout) |
397 | |
{ |
398 | 0 | if (verifyContextNotStarted()) |
399 | |
{ |
400 | 0 | this.defaultTransactionTimeout = defaultTransactionTimeout; |
401 | |
} |
402 | 0 | } |
403 | |
|
404 | |
|
405 | |
public boolean isValidateExpressions() |
406 | |
{ |
407 | 0 | return validateExpressions; |
408 | |
} |
409 | |
|
410 | |
public boolean isClientMode() |
411 | |
{ |
412 | 0 | return clientMode; |
413 | |
} |
414 | |
|
415 | |
public String getDefaultEncoding() |
416 | |
{ |
417 | 0 | return encoding; |
418 | |
} |
419 | |
|
420 | |
public void setDefaultEncoding(String encoding) |
421 | |
{ |
422 | 0 | if (verifyContextNotInitialized()) |
423 | |
{ |
424 | 0 | this.encoding = encoding; |
425 | |
} |
426 | 0 | } |
427 | |
|
428 | |
public String getId() |
429 | |
{ |
430 | 0 | return id; |
431 | |
} |
432 | |
|
433 | |
public void setId(String id) |
434 | |
{ |
435 | 0 | if (verifyContextNotInitialized()) |
436 | |
{ |
437 | 0 | if (StringUtils.isBlank(id)) |
438 | |
{ |
439 | 0 | throw new IllegalArgumentException("Cannot set server id to null/blank"); |
440 | |
} |
441 | 0 | this.id = id; |
442 | |
} |
443 | 0 | } |
444 | |
|
445 | |
public String getClusterId() |
446 | |
{ |
447 | 0 | return clusterId; |
448 | |
} |
449 | |
|
450 | |
public void setClusterId(String clusterId) |
451 | |
{ |
452 | 0 | if (verifyContextNotInitialized()) |
453 | |
{ |
454 | 0 | this.clusterId = clusterId; |
455 | |
} |
456 | 0 | } |
457 | |
|
458 | |
public String getDomainId() |
459 | |
{ |
460 | 0 | return domainId; |
461 | |
} |
462 | |
|
463 | |
public void setDomainId(String domainId) |
464 | |
{ |
465 | 0 | if (verifyContextNotInitialized()) |
466 | |
{ |
467 | 0 | this.domainId = domainId; |
468 | |
} |
469 | 0 | } |
470 | |
|
471 | |
public String getSystemModelType() |
472 | |
{ |
473 | 0 | return systemModelType; |
474 | |
} |
475 | |
|
476 | |
public void setSystemModelType(String systemModelType) |
477 | |
{ |
478 | 0 | if (verifyContextNotStarted()) |
479 | |
{ |
480 | 0 | this.systemModelType = systemModelType; |
481 | |
} |
482 | 0 | } |
483 | |
|
484 | |
public void setClientMode(boolean clientMode) |
485 | |
{ |
486 | 0 | if (verifyContextNotStarted()) |
487 | |
{ |
488 | 0 | this.clientMode = clientMode; |
489 | |
} |
490 | 0 | } |
491 | |
|
492 | |
public String getSystemName() |
493 | |
{ |
494 | 0 | return domainId + "." + clusterId + "." + id; |
495 | |
} |
496 | |
|
497 | |
public boolean isAutoWrapMessageAwareTransform() |
498 | |
{ |
499 | 0 | return autoWrapMessageAwareTransform; |
500 | |
} |
501 | |
|
502 | |
public void setAutoWrapMessageAwareTransform(boolean autoWrapMessageAwareTransform) |
503 | |
{ |
504 | 0 | if (verifyContextNotStarted()) |
505 | |
{ |
506 | 0 | this.autoWrapMessageAwareTransform = autoWrapMessageAwareTransform; |
507 | |
} |
508 | 0 | } |
509 | |
|
510 | |
public boolean isCacheMessageAsBytes() |
511 | |
{ |
512 | 0 | return cacheMessageAsBytes; |
513 | |
} |
514 | |
|
515 | |
public void setCacheMessageAsBytes(boolean cacheMessageAsBytes) |
516 | |
{ |
517 | 0 | if (verifyContextNotStarted()) |
518 | |
{ |
519 | 0 | this.cacheMessageAsBytes = cacheMessageAsBytes; |
520 | |
} |
521 | 0 | } |
522 | |
|
523 | |
public boolean isCacheMessageOriginalPayload() |
524 | |
{ |
525 | 0 | return cacheMessageOriginalPayload; |
526 | |
} |
527 | |
|
528 | |
public void setCacheMessageOriginalPayload(boolean cacheMessageOriginalPayload) |
529 | |
{ |
530 | 0 | if (verifyContextNotStarted()) |
531 | |
{ |
532 | 0 | this.cacheMessageOriginalPayload = cacheMessageOriginalPayload; |
533 | |
} |
534 | 0 | } |
535 | |
|
536 | |
public boolean isEnableStreaming() |
537 | |
{ |
538 | 0 | return enableStreaming; |
539 | |
} |
540 | |
|
541 | |
public void setEnableStreaming(boolean enableStreaming) |
542 | |
{ |
543 | 0 | if (verifyContextNotStarted()) |
544 | |
{ |
545 | 0 | this.enableStreaming = enableStreaming; |
546 | |
} |
547 | 0 | } |
548 | |
|
549 | |
protected boolean verifyContextNotInitialized() |
550 | |
{ |
551 | 0 | if (muleContext != null && muleContext.getLifecycleManager().isPhaseComplete(Initialisable.PHASE_NAME)) |
552 | |
{ |
553 | 0 | logger.warn("Cannot modify MuleConfiguration once the MuleContext has been initialized. Modification will be ignored."); |
554 | 0 | return false; |
555 | |
} |
556 | |
else |
557 | |
{ |
558 | 0 | return true; |
559 | |
} |
560 | |
} |
561 | |
|
562 | |
protected boolean verifyContextNotStarted() |
563 | |
{ |
564 | 0 | if (muleContext != null && muleContext.getLifecycleManager().isPhaseComplete(Startable.PHASE_NAME)) |
565 | |
{ |
566 | 0 | logger.warn("Cannot modify MuleConfiguration once the MuleContext has been started. Modification will be ignored."); |
567 | 0 | return false; |
568 | |
} |
569 | |
else |
570 | |
{ |
571 | 0 | return true; |
572 | |
} |
573 | |
} |
574 | |
|
575 | |
public int getDefaultQueueTimeout() |
576 | |
{ |
577 | 0 | return defaultQueueTimeout; |
578 | |
} |
579 | |
|
580 | |
public void setDefaultQueueTimeout(int defaultQueueTimeout) |
581 | |
{ |
582 | 0 | if (verifyContextNotStarted()) |
583 | |
{ |
584 | 0 | this.defaultQueueTimeout = defaultQueueTimeout; |
585 | |
} |
586 | 0 | } |
587 | |
|
588 | |
public int getShutdownTimeout() |
589 | |
{ |
590 | 0 | return shutdownTimeout; |
591 | |
} |
592 | |
|
593 | |
public void setShutdownTimeout(int shutdownTimeout) |
594 | |
{ |
595 | 0 | if (verifyContextNotStarted()) |
596 | |
{ |
597 | 0 | this.shutdownTimeout = shutdownTimeout; |
598 | |
} |
599 | 0 | } |
600 | |
|
601 | |
public boolean isContainerMode() |
602 | |
{ |
603 | 0 | return this.containerMode; |
604 | |
} |
605 | |
|
606 | |
@Override |
607 | |
public int hashCode() |
608 | |
{ |
609 | 0 | final int prime = 31; |
610 | 0 | int result = 1; |
611 | 0 | result = prime * result + (autoWrapMessageAwareTransform ? 1231 : 1237); |
612 | 0 | result = prime * result + (cacheMessageAsBytes ? 1231 : 1237); |
613 | 0 | result = prime * result + (cacheMessageOriginalPayload ? 1231 : 1237); |
614 | 0 | result = prime * result + (clientMode ? 1231 : 1237); |
615 | 0 | result = prime * result + ((clusterId == null) ? 0 : clusterId.hashCode()); |
616 | 0 | result = prime * result + defaultQueueTimeout; |
617 | 0 | result = prime * result + defaultTransactionTimeout; |
618 | 0 | result = prime * result + ((domainId == null) ? 0 : domainId.hashCode()); |
619 | 0 | result = prime * result + (enableStreaming ? 1231 : 1237); |
620 | 0 | result = prime * result + ((encoding == null) ? 0 : encoding.hashCode()); |
621 | 0 | result = prime * result + ((id == null) ? 0 : id.hashCode()); |
622 | 0 | result = prime * result + responseTimeout; |
623 | 0 | result = prime * result + shutdownTimeout; |
624 | 0 | result = prime * result + (synchronous ? 1231 : 1237); |
625 | 0 | result = prime * result + ((systemModelType == null) ? 0 : systemModelType.hashCode()); |
626 | 0 | result = prime * result + ((workingDirectory == null) ? 0 : workingDirectory.hashCode()); |
627 | 0 | result = prime * result + (containerMode ? 1231 : 1237); |
628 | 0 | return result; |
629 | |
} |
630 | |
|
631 | |
@Override |
632 | |
public boolean equals(Object obj) |
633 | |
{ |
634 | 0 | if (this == obj) return true; |
635 | 0 | if (obj == null) return false; |
636 | 0 | if (getClass() != obj.getClass()) return false; |
637 | 0 | DefaultMuleConfiguration other = (DefaultMuleConfiguration) obj; |
638 | 0 | if (autoWrapMessageAwareTransform != other.autoWrapMessageAwareTransform) return false; |
639 | 0 | if (cacheMessageAsBytes != other.cacheMessageAsBytes) return false; |
640 | 0 | if (cacheMessageOriginalPayload != other.cacheMessageOriginalPayload) return false; |
641 | 0 | if (clientMode != other.clientMode) return false; |
642 | 0 | if (clusterId == null) |
643 | |
{ |
644 | 0 | if (other.clusterId != null) return false; |
645 | |
} |
646 | 0 | else if (!clusterId.equals(other.clusterId)) return false; |
647 | 0 | if (defaultQueueTimeout != other.defaultQueueTimeout) return false; |
648 | 0 | if (defaultTransactionTimeout != other.defaultTransactionTimeout) return false; |
649 | 0 | if (domainId == null) |
650 | |
{ |
651 | 0 | if (other.domainId != null) return false; |
652 | |
} |
653 | 0 | else if (!domainId.equals(other.domainId)) return false; |
654 | 0 | if (enableStreaming != other.enableStreaming) return false; |
655 | 0 | if (encoding == null) |
656 | |
{ |
657 | 0 | if (other.encoding != null) return false; |
658 | |
} |
659 | 0 | else if (!encoding.equals(other.encoding)) return false; |
660 | 0 | if (id == null) |
661 | |
{ |
662 | 0 | if (other.id != null) return false; |
663 | |
} |
664 | 0 | else if (!id.equals(other.id)) return false; |
665 | 0 | if (responseTimeout != other.responseTimeout) return false; |
666 | 0 | if (shutdownTimeout != other.shutdownTimeout) return false; |
667 | 0 | if (synchronous != other.synchronous) return false; |
668 | 0 | if (systemModelType == null) |
669 | |
{ |
670 | 0 | if (other.systemModelType != null) return false; |
671 | |
} |
672 | 0 | else if (!systemModelType.equals(other.systemModelType)) return false; |
673 | 0 | if (workingDirectory == null) |
674 | |
{ |
675 | 0 | if (other.workingDirectory != null) return false; |
676 | |
} |
677 | 0 | else if (!workingDirectory.equals(other.workingDirectory)) return false; |
678 | |
|
679 | 0 | if (containerMode != other.containerMode) return false; |
680 | |
|
681 | 0 | return true; |
682 | |
} |
683 | |
|
684 | |
} |