diff options
Diffstat (limited to 'same/src/main')
-rw-r--r-- | same/src/main/java/com/orbekk/same/ClientServiceImpl.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/same/src/main/java/com/orbekk/same/ClientServiceImpl.java b/same/src/main/java/com/orbekk/same/ClientServiceImpl.java index 954d857..84ee015 100644 --- a/same/src/main/java/com/orbekk/same/ClientServiceImpl.java +++ b/same/src/main/java/com/orbekk/same/ClientServiceImpl.java @@ -3,8 +3,16 @@ package com.orbekk.same; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class ClientServiceImpl implements ClientService { +public class ClientServiceImpl implements ClientService, UrlReceiver { private Logger logger = LoggerFactory.getLogger(getClass()); + private ConnectionManager connections; + private State state; + private String myUrl = null; + + public ClientServiceImpl(State state, ConnectionManager connections) { + this.state = state; + this.connections = connections; + } @Override public void notifyNetwork(String networkName, String masterUrl) { @@ -15,4 +23,10 @@ public class ClientServiceImpl implements ClientService { public void setState(String component, String data, long revision) { logger.error("SetState not yet implemented."); } + + @Override + public void setUrl(String myUrl) { + logger.info("My URL is {}.", myUrl); + this.myUrl = myUrl; + } } |