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 | 0 | public class SedaModel extends AbstractModel |
23 | |
{ |
24 | |
|
25 | |
|
26 | |
|
27 | |
private Integer 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 | 0 | if (queueTimeout == null) |
54 | |
{ |
55 | 0 | queueTimeout = muleContext.getConfiguration().getDefaultQueueTimeout(); |
56 | |
} |
57 | 0 | if (queueProfile == null) |
58 | |
{ |
59 | 0 | queueProfile = new QueueProfile(); |
60 | |
} |
61 | 0 | if (poolingProfile == null) |
62 | |
{ |
63 | 0 | poolingProfile = new PoolingProfile(); |
64 | |
} |
65 | 0 | super.initialise(); |
66 | 0 | } |
67 | |
|
68 | |
public int getQueueTimeout() |
69 | |
{ |
70 | 0 | return queueTimeout; |
71 | |
} |
72 | |
|
73 | |
public void setQueueTimeout(int queueTimeout) |
74 | |
{ |
75 | 0 | this.queueTimeout = queueTimeout; |
76 | 0 | } |
77 | |
|
78 | |
public PoolingProfile getPoolingProfile() |
79 | |
{ |
80 | 0 | return poolingProfile; |
81 | |
} |
82 | |
|
83 | |
public void setPoolingProfile(PoolingProfile poolingProfile) |
84 | |
{ |
85 | 0 | this.poolingProfile = poolingProfile; |
86 | 0 | } |
87 | |
|
88 | |
public QueueProfile getQueueProfile() |
89 | |
{ |
90 | 0 | return queueProfile; |
91 | |
} |
92 | |
|
93 | |
public void setQueueProfile(QueueProfile queueProfile) |
94 | |
{ |
95 | 0 | this.queueProfile = queueProfile; |
96 | 0 | } |
97 | |
} |