]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/VirtualServer.java
Merge commit 'c46f0ff'
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / VirtualServer.java
1 package fi.vtt.simantics.procore.internal;\r
2 \r
3 import org.simantics.db.ServerI;\r
4 import org.simantics.db.exception.DatabaseException;\r
5 \r
6 class VirtualServer implements ServerI {\r
7     private boolean active = false;\r
8 \r
9     @Override\r
10     public void start() throws DatabaseException {\r
11         active = true;\r
12     }\r
13 \r
14     @Override\r
15     public void stop() throws DatabaseException {\r
16         active = false;\r
17     }\r
18 \r
19     @Override\r
20     public boolean isActive() {\r
21         return active;\r
22     }\r
23 \r
24     @Override\r
25     public synchronized String getAddress() throws DatabaseException {\r
26         return "";\r
27     }\r
28 \r
29 //    @Override\r
30 //    public synchronized ServerAddress getServerAddress() throws DatabaseException {\r
31 //        return new ServerAddress("");\r
32 //    }\r
33 \r
34     @Override\r
35     public String execute(String command) throws DatabaseException {\r
36         return null;\r
37     }\r
38 \r
39     @Override\r
40     public String executeAndDisconnect(String command) throws DatabaseException {\r
41         return null;\r
42     }\r
43 }\r