KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > network > NetworkBridgeConfiguration


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
4  * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
5  * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
6  * License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  */

14
15 package org.apache.activemq.network;
16
17 /**
18  * Configuration for a NetworkBridge
19  *
20  * @version $Revision: 1.1 $
21  */

22 public class NetworkBridgeConfiguration{
23
24     private boolean conduitSubscriptions=true;
25     private boolean dynamicOnly=false;
26     private boolean dispatchAsync=true;
27     private boolean decreaseNetworkConsumerPriority=false;
28     private boolean duplex=false;
29     private boolean bridgeTempDestinations=true;
30     private int prefetchSize=1000;
31     private int networkTTL=1;
32     private String JavaDoc brokerName="localhost";
33     private String JavaDoc userName;
34     private String JavaDoc password;
35     private String JavaDoc destinationFilter = ">";
36     private String JavaDoc name = "localhost";
37
38     /**
39      * @return the conduitSubscriptions
40      */

41     public boolean isConduitSubscriptions(){
42         return this.conduitSubscriptions;
43     }
44
45     /**
46      * @param conduitSubscriptions the conduitSubscriptions to set
47      */

48     public void setConduitSubscriptions(boolean conduitSubscriptions){
49         this.conduitSubscriptions=conduitSubscriptions;
50     }
51
52     /**
53      * @return the dynamicOnly
54      */

55     public boolean isDynamicOnly(){
56         return this.dynamicOnly;
57     }
58
59     /**
60      * @param dynamicOnly the dynamicOnly to set
61      */

62     public void setDynamicOnly(boolean dynamicOnly){
63         this.dynamicOnly=dynamicOnly;
64     }
65
66     
67     /**
68      * @return the bridgeTempDestinations
69      */

70     public boolean isBridgeTempDestinations(){
71         return this.bridgeTempDestinations;
72     }
73
74     
75     /**
76      * @param bridgeTempDestinations the bridgeTempDestinations to set
77      */

78     public void setBridgeTempDestinations(boolean bridgeTempDestinations){
79         this.bridgeTempDestinations=bridgeTempDestinations;
80     }
81
82     
83     /**
84      * @return the decreaseNetworkConsumerPriority
85      */

86     public boolean isDecreaseNetworkConsumerPriority(){
87         return this.decreaseNetworkConsumerPriority;
88     }
89
90     
91     /**
92      * @param decreaseNetworkConsumerPriority the decreaseNetworkConsumerPriority to set
93      */

94     public void setDecreaseNetworkConsumerPriority(boolean decreaseNetworkConsumerPriority){
95         this.decreaseNetworkConsumerPriority=decreaseNetworkConsumerPriority;
96     }
97
98     
99     /**
100      * @return the dispatchAsync
101      */

102     public boolean isDispatchAsync(){
103         return this.dispatchAsync;
104     }
105
106     
107     /**
108      * @param dispatchAsync the dispatchAsync to set
109      */

110     public void setDispatchAsync(boolean dispatchAsync){
111         this.dispatchAsync=dispatchAsync;
112     }
113
114     
115     /**
116      * @return the duplex
117      */

118     public boolean isDuplex(){
119         return this.duplex;
120     }
121
122     
123     /**
124      * @param duplex the duplex to set
125      */

126     public void setDuplex(boolean duplex){
127         this.duplex=duplex;
128     }
129
130     
131     /**
132      * @return the brokerName
133      */

134     public String JavaDoc getBrokerName(){
135         return this.brokerName;
136     }
137
138     
139     /**
140      * @param brokerName the localBrokerName to set
141      */

142     public void setBrokerName(String JavaDoc brokerName){
143         this.brokerName=brokerName;
144     }
145
146     
147     /**
148      * @return the networkTTL
149      */

150     public int getNetworkTTL(){
151         return this.networkTTL;
152     }
153
154     
155     /**
156      * @param networkTTL the networkTTL to set
157      */

158     public void setNetworkTTL(int networkTTL){
159         this.networkTTL=networkTTL;
160     }
161
162     
163     /**
164      * @return the password
165      */

166     public String JavaDoc getPassword(){
167         return this.password;
168     }
169
170     
171     /**
172      * @param password the password to set
173      */

174     public void setPassword(String JavaDoc password){
175         this.password=password;
176     }
177
178     
179     /**
180      * @return the prefetchSize
181      */

182     public int getPrefetchSize(){
183         return this.prefetchSize;
184     }
185
186     
187     /**
188      * @param prefetchSize the prefetchSize to set
189      */

190     public void setPrefetchSize(int prefetchSize){
191         this.prefetchSize=prefetchSize;
192     }
193
194     
195     /**
196      * @return the userName
197      */

198     public String JavaDoc getUserName(){
199         return this.userName;
200     }
201
202     
203     /**
204      * @param userName the userName to set
205      */

206     public void setUserName(String JavaDoc userName){
207         this.userName=userName;
208     }
209
210     
211     /**
212      * @return the destinationFilter
213      */

214     public String JavaDoc getDestinationFilter(){
215         return this.destinationFilter;
216     }
217
218     
219     /**
220      * @param destinationFilter the destinationFilter to set
221      */

222     public void setDestinationFilter(String JavaDoc destinationFilter){
223         this.destinationFilter=destinationFilter;
224     }
225
226     /**
227      * @return the name
228      */

229     public String JavaDoc getName(){
230         return this.name;
231     }
232
233     /**
234      * @param name the name to set
235      */

236     public void setName(String JavaDoc name){
237         this.name=name;
238     }
239 }
240
Popular Tags