You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by eg...@apache.org on 2007/05/16 16:30:05 UTC

svn commit: r538614 - in /incubator/cxf/trunk: api/src/main/java/org/apache/cxf/clustering/ rt/core/src/main/java/org/apache/cxf/clustering/

Author: eglynn
Date: Wed May 16 07:30:04 2007
New Revision: 538614

URL: http://svn.apache.org/viewvc?view=rev&rev=538614
Log:
Minor changes to logging and commentary.


Modified:
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/RandomStrategy.java
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/SequentialStrategy.java

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java?view=diff&rev=538614&r1=538613&r2=538614
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java (original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java Wed May 16 07:30:04 2007
@@ -30,7 +30,7 @@
  */
 public interface FailoverStrategy {
     /**
-     * Get the alternative endpoints for this invocation.
+     * Get the alternate endpoints for this invocation.
      * 
      * @param exchange the current Exchange
      * @param invocation the current InvocationContext

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java?view=diff&rev=538614&r1=538613&r2=538614
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java Wed May 16 07:30:04 2007
@@ -33,13 +33,17 @@
 import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.service.model.ServiceInfo;
 
+/**
+ * Failover strategy based on a static cluster represented by
+ * multiple endpoints associated with the same service instance.
+ */
 public abstract class AbstractStaticFailoverStrategy implements FailoverStrategy {
     
     private static final Logger LOG =
         LogUtils.getL7dLogger(AbstractStaticFailoverStrategy.class);
     
     /**
-     * Get the alternative endpoints for this invocation.
+     * Get the alternate endpoints for this invocation.
      * 
      * @param exchange the current Exchange
      * @return a List of alternate endpoints if available
@@ -87,7 +91,8 @@
             selected = getNextAlternate(alternates);
             LOG.log(Level.WARNING,
                     "FAILING_OVER_TO",
-                     new Object[] {selected.getEndpointInfo().getName()});
+                     new Object[] {selected.getEndpointInfo().getName(),
+                                   selected.getEndpointInfo().getAddress()});
         } else {
             LOG.warning("NO_ALTERNATE_TARGETS_REMAIN");
         }

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/RandomStrategy.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/RandomStrategy.java?view=diff&rev=538614&r1=538613&r2=538614
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/RandomStrategy.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/RandomStrategy.java Wed May 16 07:30:04 2007
@@ -24,6 +24,11 @@
 
 import org.apache.cxf.endpoint.Endpoint;
 
+/**
+ * Failover strategy based on a randomized walk through the
+ * static cluster represented by multiple endpoints associated 
+ * with the same service instance.
+ */
 public class RandomStrategy extends AbstractStaticFailoverStrategy {
     
     private Random random;

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/SequentialStrategy.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/SequentialStrategy.java?view=diff&rev=538614&r1=538613&r2=538614
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/SequentialStrategy.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/clustering/SequentialStrategy.java Wed May 16 07:30:04 2007
@@ -23,6 +23,11 @@
 
 import org.apache.cxf.endpoint.Endpoint;
 
+/**
+ * Failover strategy based on a sequential walk through the
+ * static cluster represented by multiple endpoints associated 
+ * with the same service instance.
+ */
 public class SequentialStrategy extends AbstractStaticFailoverStrategy {
 
     /**