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