From 93dd589450bb61e57588065f03d1582f0ffc2f6a Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 28 Jan 2020 02:09:08 +0000 Subject: Fix contact selection and add excessive logs --- .../java/pl/edu/mimuw/cloudatlas/client/ClientController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/client') 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(); -- cgit v1.2.3