@@ -88,7 +88,7 @@ public long getEntryLogSizeLimit() {
8888 * new log size limitation
8989 */
9090 public ServerConfiguration setEntryLogSizeLimit (long logSizeLimit ) {
91- this .addProperty (ENTRY_LOG_SIZE_LIMIT , Long .toString (logSizeLimit ));
91+ this .setProperty (ENTRY_LOG_SIZE_LIMIT , Long .toString (logSizeLimit ));
9292 return this ;
9393 }
9494
@@ -109,7 +109,7 @@ public long getGcWaitTime() {
109109 * @return server configuration
110110 */
111111 public ServerConfiguration setGcWaitTime (long gcWaitTime ) {
112- this .addProperty (GC_WAIT_TIME , Long .toString (gcWaitTime ));
112+ this .setProperty (GC_WAIT_TIME , Long .toString (gcWaitTime ));
113113 return this ;
114114 }
115115
@@ -130,7 +130,7 @@ public int getFlushInterval() {
130130 * @return server configuration
131131 */
132132 public ServerConfiguration setFlushInterval (int flushInterval ) {
133- this .addProperty (FLUSH_INTERVAL , Integer .toString (flushInterval ));
133+ this .setProperty (FLUSH_INTERVAL , Integer .toString (flushInterval ));
134134 return this ;
135135 }
136136
@@ -187,7 +187,7 @@ public long getMaxJournalSize() {
187187 * @return server configuration
188188 */
189189 public ServerConfiguration setMaxJournalSize (long maxJournalSize ) {
190- this .addProperty (MAX_JOURNAL_SIZE , Long .toString (maxJournalSize ));
190+ this .setProperty (MAX_JOURNAL_SIZE , Long .toString (maxJournalSize ));
191191 return this ;
192192 }
193193
@@ -208,7 +208,7 @@ public int getMaxBackupJournals() {
208208 * @return server configuration
209209 */
210210 public ServerConfiguration setMaxBackupJournals (int maxBackupJournals ) {
211- this .addProperty (MAX_BACKUP_JOURNALS , Integer .toString (maxBackupJournals ));
211+ this .setProperty (MAX_BACKUP_JOURNALS , Integer .toString (maxBackupJournals ));
212212 return this ;
213213 }
214214
@@ -229,7 +229,7 @@ public int getBookiePort() {
229229 * @return server configuration
230230 */
231231 public ServerConfiguration setBookiePort (int port ) {
232- this .addProperty (BOOKIE_PORT , Integer .toString (port ));
232+ this .setProperty (BOOKIE_PORT , Integer .toString (port ));
233233 return this ;
234234 }
235235
@@ -250,7 +250,7 @@ public String getJournalDirName() {
250250 * @return server configuration
251251 */
252252 public ServerConfiguration setJournalDirName (String journalDir ) {
253- this .addProperty (JOURNAL_DIR , journalDir );
253+ this .setProperty (JOURNAL_DIR , journalDir );
254254 return this ;
255255 }
256256
@@ -291,7 +291,7 @@ public ServerConfiguration setLedgerDirNames(String[] ledgerDirs) {
291291 if (null == ledgerDirs ) {
292292 return this ;
293293 }
294- this .addProperty (LEDGER_DIRS , StringUtils .join (ledgerDirs , SEP ));
294+ this .setProperty (LEDGER_DIRS , StringUtils .join (ledgerDirs , SEP ));
295295 return this ;
296296 }
297297
@@ -329,7 +329,7 @@ public boolean getServerTcpNoDelay() {
329329 * @return server configuration
330330 */
331331 public ServerConfiguration setServerTcpNoDelay (boolean noDelay ) {
332- addProperty (SERVER_TCP_NODELAY , Boolean .toString (noDelay ));
332+ setProperty (SERVER_TCP_NODELAY , Boolean .toString (noDelay ));
333333 return this ;
334334 }
335335
@@ -349,7 +349,7 @@ public String getZkServers() {
349349 * ZooKeeper servers to connect
350350 */
351351 public ServerConfiguration setZkServers (String zkServers ) {
352- addProperty (ZK_SERVERS , zkServers );
352+ setProperty (ZK_SERVERS , zkServers );
353353 return this ;
354354 }
355355
@@ -370,7 +370,7 @@ public int getZkTimeout() {
370370 * @return server configuration
371371 */
372372 public ServerConfiguration setZkTimeout (int zkTimeout ) {
373- addProperty (ZK_SERVERS , Integer .toString (zkTimeout ));
373+ setProperty (ZK_SERVERS , Integer .toString (zkTimeout ));
374374 return this ;
375375 }
376376
0 commit comments