diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2020-01-28 02:09:08 +0000 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2020-01-28 02:09:08 +0000 |
commit | 93dd589450bb61e57588065f03d1582f0ffc2f6a (patch) | |
tree | d2b5ba4bfae5d773c95632614d61763eeafa1a7e /src/main/java/pl/edu/mimuw/cloudatlas/client | |
parent | 67303cfe22770fe7110841d6d3609657fed218c0 (diff) |
Fix contact selection and add excessive logs
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/client')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java | 11 |
1 files changed, 11 insertions, 0 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 b11a8b7..bbdb8dc 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/ClientController.java @@ -45,10 +45,21 @@ public class ClientController { String agentHostname = System.getProperty("agent_hostname"); Registry registry = LocateRegistry.getRegistry(agentHostname); this.agentApi = (Api) registry.lookup("Api"); + System.out.println("agent api:"); + System.out.println(this.agentApi); String querySignerHostname = System.getProperty("query_signer_hostname"); Registry querySignerRegistry = LocateRegistry.getRegistry(querySignerHostname); + System.out.println("querySignerHostname: " + querySignerHostname); + System.out.println(InetAddress.getByName("localhost")); + System.out.println(InetAddress.getByName(querySignerHostname)); + System.out.println("LIST:"); + System.out.println(querySignerRegistry.list()); + System.out.println("registry:"); + System.out.println(querySignerRegistry); this.querySignerApi = (QuerySignerApi) querySignerRegistry.lookup("QuerySignerApi"); + System.out.println("api:"); + System.out.println(this.querySignerApi); } catch (Exception e) { System.err.println("Client exception:"); e.printStackTrace(); |