-package fi.vtt.simantics.procore.internal;\r
-\r
-import org.simantics.db.ServerI;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-class VirtualServer implements ServerI {\r
- private boolean active = false;\r
-\r
- @Override\r
- public void start() throws DatabaseException {\r
- active = true;\r
- }\r
-\r
- @Override\r
- public void stop() throws DatabaseException {\r
- active = false;\r
- }\r
-\r
- @Override\r
- public boolean isActive() {\r
- return active;\r
- }\r
-\r
- @Override\r
- public synchronized String getAddress() throws DatabaseException {\r
- return "";\r
- }\r
-\r
-// @Override\r
-// public synchronized ServerAddress getServerAddress() throws DatabaseException {\r
-// return new ServerAddress("");\r
-// }\r
-\r
- @Override\r
- public String execute(String command) throws DatabaseException {\r
- return null;\r
- }\r
-\r
- @Override\r
- public String executeAndDisconnect(String command) throws DatabaseException {\r
- return null;\r
- }\r
-}\r
+package fi.vtt.simantics.procore.internal;
+
+import org.simantics.db.ServerI;
+import org.simantics.db.exception.DatabaseException;
+
+class VirtualServer implements ServerI {
+ private boolean active = false;
+
+ @Override
+ public void start() throws DatabaseException {
+ active = true;
+ }
+
+ @Override
+ public void stop() throws DatabaseException {
+ active = false;
+ }
+
+ @Override
+ public boolean isActive() {
+ return active;
+ }
+
+ @Override
+ public synchronized String getAddress() throws DatabaseException {
+ return "";
+ }
+
+// @Override
+// public synchronized ServerAddress getServerAddress() throws DatabaseException {
+// return new ServerAddress("");
+// }
+
+ @Override
+ public String execute(String command) throws DatabaseException {
+ return null;
+ }
+
+ @Override
+ public String executeAndDisconnect(String command) throws DatabaseException {
+ return null;
+ }
+}