Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Jury2013-02-14 13:57:52 -0500
committerAndy Jury2013-02-14 13:57:52 -0500
commitb873a52a7941aae039ab1c67f440adde2f17db39 (patch)
treef112c76f8a9ddaa82eabd4e0537ec7a17aea4282 /plugins/org.eclipse.osee.framework.messaging
parent17e654a840e7a13f90a2d0ed53ee13c5d41c26d6 (diff)
downloadorg.eclipse.osee-b873a52a7941aae039ab1c67f440adde2f17db39.tar.gz
org.eclipse.osee-b873a52a7941aae039ab1c67f440adde2f17db39.tar.xz
org.eclipse.osee-b873a52a7941aae039ab1c67f440adde2f17db39.zip
feature[ats_XNVXB]: Make sure request goes out to servers on start.
Diffstat (limited to 'plugins/org.eclipse.osee.framework.messaging')
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/services/internal/RemoteServiceLookupImpl.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/services/internal/RemoteServiceLookupImpl.java b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/services/internal/RemoteServiceLookupImpl.java
index 9ab954fa76..e3a3b0bf51 100644
--- a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/services/internal/RemoteServiceLookupImpl.java
+++ b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/services/internal/RemoteServiceLookupImpl.java
@@ -17,6 +17,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
+
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.type.CompositeKeyHashMap;
import org.eclipse.osee.framework.jdk.core.type.Pair;
@@ -59,15 +60,9 @@ public class RemoteServiceLookupImpl implements RemoteServiceLookup {
@Override
public void register(String serviceName, String serviceVersion, ServiceNotification notification) {
+
addListener(serviceName, serviceVersion, notification);
- Map<String, ServiceHealthPlusTimeout> healthMap = map.get(serviceName, serviceVersion);
- if (healthMap != null) {
- for (ServiceHealthPlusTimeout serviceHealth : healthMap.values()) {
- notification.onServiceUpdate(serviceHealth.getServiceHealth());
- }
- } else {
- sendOutRequest(serviceName, serviceVersion);
- }
+ sendOutRequest(serviceName, serviceVersion);
}
@Override

Back to the top