comparison src/main/java/org/monetdb/merovingian/Control.java @ 716:aeb268156580

Updated Copyright year.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 05 Jan 2023 12:03:22 +0100 (2023-01-05)
parents 940e266eeccd
children e890195256ac
comparison
equal deleted inserted replaced
715:a7c7fc58d622 716:aeb268156580
1 /* 1 /*
2 * This Source Code Form is subject to the terms of the Mozilla Public 2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 * 5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2022 MonetDB B.V. 6 * Copyright 1997 - July 2008 CWI, August 2008 - 2023 MonetDB B.V.
7 */ 7 */
8 8
9 package org.monetdb.merovingian; 9 package org.monetdb.merovingian;
10 10
11 import org.monetdb.mcl.net.MapiSocket; 11 import org.monetdb.mcl.net.MapiSocket;
71 this.passphrase = passphrase; 71 this.passphrase = passphrase;
72 } 72 }
73 73
74 /** 74 /**
75 * Sets the socket timeout. 75 * Sets the socket timeout.
76 * 76 *
77 * @param timeout (in milliseconds) Use -1 to unset timeout (and use default) 77 * @param timeout (in milliseconds) Use -1 to unset timeout (and use default)
78 */ 78 */
79 public void setSoTimeout(int timeout) { 79 public void setSoTimeout(int timeout) {
80 soTimeout = timeout; 80 soTimeout = timeout;
81 } 81 }
254 throws MerovingianException, IOException 254 throws MerovingianException, IOException
255 { 255 {
256 sendCommand(database, "start", false); 256 sendCommand(database, "start", false);
257 } 257 }
258 258
259 public boolean isStopped(String database) 259 public boolean isStopped(String database)
260 throws MerovingianException, IOException 260 throws MerovingianException, IOException
261 { 261 {
262 switch (getStatus(database).getState()) { 262 switch (getStatus(database).getState()) {
263 case SABdbInactive: 263 case SABdbInactive:
264 case SABdbCrashed: 264 case SABdbCrashed:
265 case SABdbIllegal: 265 case SABdbIllegal: