From 8871c7e6e8c6b2737742d27397b51386ee213fae Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 11 Dec 2009 17:59:30 +0000 Subject: Correct spelling mistake and increase repeat count. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@889734 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java | 2 +- .../apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java | 2 +- .../tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java index 09f4a4d78d..630653345e 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java @@ -39,7 +39,7 @@ public interface EndpointRegistry { void addEndpointReference(EndpointReference endpointReference); void removeEndpointReference(EndpointReference endpointReference); List findEndpointReference(Endpoint endpoint); - List getEndpointRefereneces(); + List getEndpointReferences(); void addListener(EndpointListener listener); void removeListener(EndpointListener listener); diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java index 1f845ab6c1..c3dd917c05 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java @@ -148,7 +148,7 @@ public class EndpointRegistryImpl implements EndpointRegistry, LifeCycleListener logger.fine("Remove endpoint reference - " + endpointReference.toString()); } - public synchronized List getEndpointRefereneces() { + public synchronized List getEndpointReferences() { return endpointreferences; } diff --git a/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java b/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java index 6950b1fca2..0c2144ea49 100644 --- a/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java +++ b/sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java @@ -61,7 +61,7 @@ public class ReplicatedEndpointRegistry implements EndpointRegistry, LifeCycleLi private static final String MULTICAST_ADDRESS = "228.0.0.100"; private static final int MULTICAST_PORT = 50000; - private static final int FIND_REPEAT_COUNT = 3; + private static final int FIND_REPEAT_COUNT = 10; private int port = MULTICAST_PORT; private String address = MULTICAST_ADDRESS; @@ -332,6 +332,7 @@ public class ReplicatedEndpointRegistry implements EndpointRegistry, LifeCycleLi Thread.sleep(1000); } catch(Exception ex){ // do nothing + repeat=0; } } } @@ -352,7 +353,7 @@ public class ReplicatedEndpointRegistry implements EndpointRegistry, LifeCycleLi return (Endpoint)map.get(uri); } - public List getEndpointRefereneces() { + public List getEndpointReferences() { return endpointreferences; } -- cgit v1.2.3