diff options
Diffstat (limited to 'same/src/main/java/com/orbekk/same/MasterServiceProxy.java')
-rw-r--r-- | same/src/main/java/com/orbekk/same/MasterServiceProxy.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/same/src/main/java/com/orbekk/same/MasterServiceProxy.java b/same/src/main/java/com/orbekk/same/MasterServiceProxy.java deleted file mode 100644 index 0532d86..0000000 --- a/same/src/main/java/com/orbekk/same/MasterServiceProxy.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.orbekk.same; - -public class MasterServiceProxy implements MasterService { - public static class MasterDeactivatedException extends Exception { - public MasterDeactivatedException() { - } - } - - private MasterService masterService = null; - - public MasterServiceProxy() { - } - - public MasterServiceProxy(MasterService masterService) { - this.masterService = masterService; - } - - public MasterService getService() { - return masterService; - } - - public void setService(MasterService masterService) { - this.masterService = masterService; - } - - @Override - public void joinNetworkRequest(String clientUrl) throws Exception { - if (masterService != null) { - masterService.joinNetworkRequest(clientUrl); - } else { - throw new MasterDeactivatedException(); - } - } - - @Override - public boolean updateStateRequest(String component, String newData, long revision) - throws Exception { - if (masterService != null) { - return masterService.updateStateRequest(component, newData, revision); - } else { - throw new MasterDeactivatedException(); - } - } - -} |