1 package org.simantics.db.testing.common;
4 import org.simantics.db.ServerI;
5 import org.simantics.db.exception.DatabaseException;
7 public class Server4Remote implements ServerI {
8 private boolean active = false;
9 private String host = null;
11 public Server4Remote(String host, int port) {
17 public void start() throws DatabaseException {
22 public void stop() throws DatabaseException {
27 public boolean isActive() {
32 public String getAddress() throws DatabaseException {
33 return "" + host + ":" + port;
37 // public synchronized ServerAddress getServerAddress()
38 // throws DatabaseException {
39 // return new ServerAddress(host, port);
43 public String execute(String command) throws DatabaseException {
44 throw new DatabaseException("Execute method not supported for remote server.");
48 public String executeAndDisconnect(String command) throws DatabaseException {
49 throw new DatabaseException("ExecuteAndDisconnect method not supported for remote server.");