X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FVirtualServer.java;fp=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FVirtualServer.java;h=0c6598b49f77f0b4290ddd43ea8998f85e8a2477;hp=0000000000000000000000000000000000000000;hb=969bd23cab98a79ca9101af33334000879fb60c5;hpb=866dba5cd5a3929bbeae85991796acb212338a08 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 index 000000000..0c6598b49 --- /dev/null +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/VirtualServer.java @@ -0,0 +1,43 @@ +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; + } +}