]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/ServerI.java
Fail safe import fixes made by Antti
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ServerI.java
index cc202af3ac3653735f2350bc18732b1214b08b29..18592cc6db3cbaea23b4f0e0b48740fc8c245e8f 100644 (file)
@@ -1,72 +1,72 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.db;\r
-\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-public interface ServerI {\r
-\r
-       /**\r
-        * Start the server.\r
-        *\r
-        * @throws DatabaseException\r
-        */\r
-    void start() throws DatabaseException;\r
-\r
-    /**\r
-     * Ask server to stop. Server has no obligation to stop.\r
-     * After this server is either running or not.\r
-     * You can not and should not make any assumptions on server behavior.\r
-     * Remember that server lifetime is not under our control.\r
-     *\r
-     * @throws DatabaseException if server did not receive our plead or had trouble responding.\r
-     */\r
-    void stop() throws DatabaseException;\r
-\r
-    /**\r
-     * Verify if the server is in active and usable state.\r
-     *\r
-     * @return true if the server is alive and responsive.\r
-     */\r
-    boolean isActive()  throws DatabaseException;\r
-\r
-    /**\r
-     * Get the server address. Can be used with {@link Driver#getSession()} and {@link Driver#getServer()} methods.\r
-     *\r
-     * @return address of the server as canonical string.\r
-     */\r
-    public String getAddress() throws DatabaseException;\r
-\r
-//    /**\r
-//     * @return\r
-//     * @throws DatabaseException\r
-//     * @deprecated Was used for getting server address.\r
-//     * Changed to string to remove dependency to ServerAddress structure.\r
-//     * Use Use the {@link #getAddress()} method instead.\r
-//     */\r
-//    public ServerAddress getServerAddress() throws DatabaseException;\r
-\r
-    /**\r
-     * Execute server command.\r
-     *\r
-     * @return command output.\r
-     */\r
-\r
-    public String execute(String command) throws DatabaseException;\r
-\r
-    /**\r
-     * Execute server command and disconnect after command has been executed.\r
-     *\r
-     * @return command output.\r
-     */\r
-    public String executeAndDisconnect(String command) throws DatabaseException;\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.db;
+
+import org.simantics.db.exception.DatabaseException;
+
+public interface ServerI {
+
+       /**
+        * Start the server.
+        *
+        * @throws DatabaseException
+        */
+    void start() throws DatabaseException;
+
+    /**
+     * Ask server to stop. Server has no obligation to stop.
+     * After this server is either running or not.
+     * You can not and should not make any assumptions on server behavior.
+     * Remember that server lifetime is not under our control.
+     *
+     * @throws DatabaseException if server did not receive our plead or had trouble responding.
+     */
+    void stop() throws DatabaseException;
+
+    /**
+     * Verify if the server is in active and usable state.
+     *
+     * @return true if the server is alive and responsive.
+     */
+    boolean isActive()  throws DatabaseException;
+
+    /**
+     * Get the server address. Can be used with {@link Driver#getSession()} and {@link Driver#getServer()} methods.
+     *
+     * @return address of the server as canonical string.
+     */
+    public String getAddress() throws DatabaseException;
+
+//    /**
+//     * @return
+//     * @throws DatabaseException
+//     * @deprecated Was used for getting server address.
+//     * Changed to string to remove dependency to ServerAddress structure.
+//     * Use Use the {@link #getAddress()} method instead.
+//     */
+//    public ServerAddress getServerAddress() throws DatabaseException;
+
+    /**
+     * Execute server command.
+     *
+     * @return command output.
+     */
+
+    public String execute(String command) throws DatabaseException;
+
+    /**
+     * Execute server command and disconnect after command has been executed.
+     *
+     * @return command output.
+     */
+    public String executeAndDisconnect(String command) throws DatabaseException;
+}