KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > server > config > EngineConfiguration


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package sync4j.server.config;
20
21 /**
22  *
23  * This class is just a container of SyncServer engine configuration.
24  *
25  * @author Stefano Fornari @ Funambol
26  * @version $Id: EngineConfiguration.java,v 1.5 2005/03/02 20:57:39 harrie Exp $
27  */

28 public class EngineConfiguration {
29     
30     // ------------------------------------------------------------ Private data
31

32     /**
33      * The server URI
34      */

35     private String JavaDoc serverURI;
36     
37     /**
38      * The SyncStrategy implementation to use
39      */

40     private String JavaDoc strategy;
41     
42     /**
43      * The SessionHandler to use
44      */

45     private String JavaDoc sessionHandler;
46     
47     /**
48      * The PersistentStore to use
49      */

50     private String JavaDoc store;
51     
52     /**
53      * The SecurityOfficer to use
54      */

55     private String JavaDoc officer;
56     
57     /**
58      * The PipelineManager to use
59      */

60     private String JavaDoc pipelineManager;
61     
62     /**
63      * The UserManager to use
64      */

65     private String JavaDoc userManager;
66     
67     /**
68      * The LoggingConfiguration to use
69      */

70     private String JavaDoc loggingConfiguration;
71     
72     /**
73      * The minimum MaxMsgSize allowed
74      */

75     private long minMaxMsgSize;
76         
77     // ---------------------------------------------------------- Public methods
78

79     /**
80      * Getter for property serverURI.
81      * @return Value of property serverURI.
82      */

83     public String JavaDoc getServerURI() {
84         return serverURI;
85     }
86     
87     /**
88      * Setter for property serverURI.
89      * @param serverURI New value of property serverURI.
90      */

91     public void setServerURI(String JavaDoc serverURI) {
92         this.serverURI = serverURI;
93     }
94     
95     /**
96      * Getter for property strategy.
97      * @return Value of property strategy.
98      */

99     public String JavaDoc getStrategy() {
100         return strategy;
101     }
102     
103     /**
104      * Setter for property strategy.
105      * @param strategy New value of property strategy.
106      */

107     public void setStrategy(String JavaDoc strategy) {
108         this.strategy = strategy;
109     }
110     
111     /**
112      * Getter for property sessionHandler.
113      * @return Value of property sessionHandler.
114      */

115     public String JavaDoc getSessionHandler() {
116         return sessionHandler;
117     }
118     
119     /**
120      * Setter for property sessionHandler.
121      * @param sessionHandler New value of property sessionHandler.
122      */

123     public void setSessionHandler(String JavaDoc sessionHandler) {
124         this.sessionHandler = sessionHandler;
125     }
126     
127     /**
128      * Getter for property store.
129      * @return Value of property store.
130      */

131     public String JavaDoc getStore() {
132         return store;
133     }
134     
135     /**
136      * Setter for property store.
137      * @param store New value of property store.
138      */

139     public void setStore(String JavaDoc store) {
140         this.store = store;
141     }
142     
143     /**
144      * Getter for property officer.
145      * @return Value of property officer.
146      */

147     public String JavaDoc getOfficer() {
148         return officer;
149     }
150     
151     /**
152      * Setter for property officer.
153      * @param officer New value of property officer.
154      */

155     public void setOfficer(String JavaDoc officer) {
156         this.officer = officer;
157     }
158     
159     /**
160      * Getter for property pipelineManager.
161      * @return Value of property pipelineManager.
162      */

163     public String JavaDoc getPipelineManager() {
164         return pipelineManager;
165     }
166     
167     /**
168      * Setter for property pipelineManager.
169      * @param pipelineManager New value of property pipelineManager.
170      */

171     public void setPipelineManager(String JavaDoc pipelineManager) {
172         this.pipelineManager = pipelineManager;
173     }
174     
175     /**
176      * Getter for property userManager.
177      * @return Value of property userManager.
178      */

179     public String JavaDoc getUserManager() {
180         return userManager;
181     }
182     
183     /**
184      * Setter for property userManager.
185      * @param userManager New value of property userManager.
186      */

187     public void setUserManager(String JavaDoc userManager) {
188         this.userManager = userManager;
189     }
190     
191     /**
192      * Getter for property loggingConfiguration.
193      * @return Value of property loggingConfiguration.
194      */

195     public String JavaDoc getLoggingConfiguration() {
196         return loggingConfiguration;
197     }
198     
199     /**
200      * Setter for property loggingConfiguration.
201      * @param loggingConfiguration the new value of property loggingConfiguration.
202      */

203     public void setLoggingConfiguration(String JavaDoc loggingConfiguration) {
204         this.loggingConfiguration = loggingConfiguration;
205     }
206     
207     /**
208      * Getter for property minMaxMsgSize.
209      * @return Value of property minMaxMsgSize.
210      */

211     public long getMinMaxMsgSize() {
212         return minMaxMsgSize;
213     }
214
215     /**
216      * Setter for property minMaxMsgSize.
217      * @param minMaxMsgSize New value of property minMaxMsgSize.
218      */

219     public void setMinMaxMsgSize(long minMaxMsgSize) {
220         this.minMaxMsgSize = minMaxMsgSize;
221     }
222         
223     /**
224      * String representation for debug purposes
225      *
226      * @return the string representation of this object
227      */

228     public String JavaDoc toString() {
229         StringBuffer JavaDoc buf = new StringBuffer JavaDoc();
230         
231         buf.append(getClass().getName())
232            .append('@')
233            .append(hashCode())
234            .append("{\n")
235            .append("serverURI: ").append(serverURI).append('\n')
236            .append("strategy: ").append(strategy).append('\n')
237            .append("sessionHandler: ").append(sessionHandler).append('\n')
238            .append("store: ").append(store).append('\n')
239            .append("loggingConfiguration: ").append(loggingConfiguration).append('\n')
240            .append('}');
241         
242         return buf.toString();
243     }
244  }
245
Popular Tags