summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-12-11 17:59:30 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-12-11 17:59:30 +0000
commit8871c7e6e8c6b2737742d27397b51386ee213fae (patch)
treee1e43495dd427705f1fe19301673e217a77b7845 /sca-java-2.x/trunk/modules
parent164b78f7b9a383b038d093efcecd30cf84056958 (diff)
Correct spelling mistake and increase repeat count.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@889734 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java2
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java2
-rw-r--r--sca-java-2.x/trunk/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java5
3 files changed, 5 insertions, 4 deletions
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<EndpointReference> findEndpointReference(Endpoint endpoint);
- List<EndpointReference> getEndpointRefereneces();
+ List<EndpointReference> 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<EndpointReference> getEndpointRefereneces() {
+ public synchronized List<EndpointReference> 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<EndpointReference> getEndpointRefereneces() {
+ public List<EndpointReference> getEndpointReferences() {
return endpointreferences;
}