]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/VirtualServer.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / VirtualServer.java
diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/VirtualServer.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/VirtualServer.java
new file mode 100644 (file)
index 0000000..0c6598b
--- /dev/null
@@ -0,0 +1,43 @@
+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