1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.model.seda; |
12 | |
|
13 | |
import org.mule.api.lifecycle.InitialisationException; |
14 | |
import org.mule.config.PoolingProfile; |
15 | |
import org.mule.config.QueueProfile; |
16 | |
import org.mule.model.AbstractModel; |
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | 1542 | public class SedaModel extends AbstractModel |
23 | |
{ |
24 | |
|
25 | |
|
26 | |
|
27 | |
private int queueTimeout; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
protected PoolingProfile poolingProfile; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
protected QueueProfile queueProfile; |
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
public String getType() |
47 | |
{ |
48 | 0 | return "seda"; |
49 | |
} |
50 | |
|
51 | |
public void initialise() throws InitialisationException |
52 | |
{ |
53 | 1536 | queueTimeout = muleContext.getConfiguration().getDefaultSynchronousEventTimeout(); |
54 | 1536 | if (queueProfile == null) |
55 | |
{ |
56 | 1536 | queueProfile = new QueueProfile(); |
57 | |
} |
58 | 1536 | if (poolingProfile == null) |
59 | |
{ |
60 | 1536 | poolingProfile = new PoolingProfile(); |
61 | |
} |
62 | 1536 | super.initialise(); |
63 | 1536 | } |
64 | |
|
65 | |
public int getQueueTimeout() |
66 | |
{ |
67 | 390 | return queueTimeout; |
68 | |
} |
69 | |
|
70 | |
public void setQueueTimeout(int queueTimeout) |
71 | |
{ |
72 | 0 | this.queueTimeout = queueTimeout; |
73 | 0 | } |
74 | |
|
75 | |
public PoolingProfile getPoolingProfile() |
76 | |
{ |
77 | 0 | return poolingProfile; |
78 | |
} |
79 | |
|
80 | |
public void setPoolingProfile(PoolingProfile poolingProfile) |
81 | |
{ |
82 | 0 | this.poolingProfile = poolingProfile; |
83 | 0 | } |
84 | |
|
85 | |
public QueueProfile getQueueProfile() |
86 | |
{ |
87 | 386 | return queueProfile; |
88 | |
} |
89 | |
|
90 | |
public void setQueueProfile(QueueProfile queueProfile) |
91 | |
{ |
92 | 0 | this.queueProfile = queueProfile; |
93 | 0 | } |
94 | |
} |