diff options
author | Martin <marcin.j.chrzanowski@gmail.com> | 2019-11-27 17:22:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 17:22:13 +0100 |
commit | 6d27310b2cdbd6f412157eee25cc68df9486db14 (patch) | |
tree | b7ebab7fa715b194509eee9cb6ee4984ba3db840 /src/main/java/pl/edu | |
parent | 97589d8380ca12fa0a75163a6f5bd79a7e1039fa (diff) |
Parametrize RMI host (#43)
Diffstat (limited to 'src/main/java/pl/edu')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java index 557ba39..db9c09f 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java @@ -34,7 +34,8 @@ public class ClientController { ClientController() { try { - Registry registry = LocateRegistry.getRegistry("localhost"); + String hostname = System.getProperty("agent_hostname"); + Registry registry = LocateRegistry.getRegistry(hostname); this.api = (Api) registry.lookup("Api"); } catch (Exception e) { System.err.println("Client exception:"); |