[jboss-cvs] JBossAS SVN: r75658 - in projects/cluster/ha-server-api/tags: 1.1.0.CR2 and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 10 22:17:49 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-07-10 22:17:49 -0400 (Thu, 10 Jul 2008)
New Revision: 75658

Added:
   projects/cluster/ha-server-api/tags/1.1.0.CR2/
   projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml
   projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java
Removed:
   projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml
   projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java
Log:
[maven-release-plugin]  copy for tag 1.1.0.CR2

Copied: projects/cluster/ha-server-api/tags/1.1.0.CR2 (from rev 75641, projects/cluster/ha-server-api/trunk)

Deleted: projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml
===================================================================
--- projects/cluster/ha-server-api/trunk/pom.xml	2008-07-10 21:54:47 UTC (rev 75641)
+++ projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml	2008-07-11 02:17:49 UTC (rev 75658)
@@ -1,182 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.jboss.cluster</groupId>
-    <artifactId>jboss-cluster</artifactId>
-    <version>1.1.0.GA</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.jboss.cluster</groupId>
-  <artifactId>jboss-ha-server-api</artifactId>
-  <packaging>jar</packaging>
-  <version>1.1.0.GA</version>
-  <name>JBoss Cluster HA Server API Classes</name>
-  <url>http://www.jboss.org</url>
-  <description>A set of server-side API classes for users of the JBoss AS clustering framework</description>
-  <licenses>
-   <license>
-      <name>lgpl</name>
-      <url>http://repository.jboss.com/licenses/lgpl.txt</url>
-   </license>
-  </licenses>
-  <organization>
-    <name>JBoss, a division of Red Hat, Inc.</name>
-    <url>http://www.jboss.org</url>
-  </organization>
-  
-  <scm>
-    <connection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/cluster/ha-server-api/trunk/</connection>
-  </scm>
-  
-  <properties>
-    <version.jboss.ha.client>1.1.0.CR1</version.jboss.ha.client>
-    <version.jboss.common.core>2.2.5.GA</version.jboss.common.core>
-    <version.jboss.logging.spi>2.0.5.GA</version.jboss.logging.spi>
-    <version.jboss.cache>2.1.1.GA</version.jboss.cache>
-    <!-- This should be [2.6.2,3.0.0) but maven complains about it -->
-    <version.jgroups>2.6.3.CR1</version.jgroups>
-    <version.jboss.cache.pojo>2.1.0.GA</version.jboss.cache.pojo>
-    <version.jboss.aop>2.0.0.CR11</version.jboss.aop>
-    <version.junit>3.8.1</version.junit>
-  </properties>
-  
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-release-plugin</artifactId>
-        <configuration>
-          <!-- The tagBase property is needed during the release process so that the maven release plugin
-            will create the release tag in the appropriate location. -->
-          <tagBase>https://svn.jboss.org/repos/jbossas/projects/cluster/ha-server-api/tags</tagBase>
-        </configuration>
-      </plugin>     
-    </plugins>
-  </build>  
-  
-  <dependencies> 
-    
-    <!-- Global dependencies -->
-    <dependency>
-      <groupId>org.jboss.cluster</groupId>
-      <artifactId>jboss-ha-client</artifactId>
-      <version>${version.jboss.ha.client}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-common-core</artifactId>
-      <version>${version.jboss.common.core}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-spi</artifactId>
-      <version>${version.jboss.logging.spi}</version>
-    </dependency> 
-      
-    <!-- Only needed if you are using the CacheManagerLocator -->
-    <dependency>
-      <groupId>org.jboss.cache</groupId>
-      <artifactId>jbosscache-core</artifactId>
-      <version>${version.jboss.cache}</version>      
-      <optional>true</optional>
-      <exclusions>
-        <exclusion>
-          <groupId>org.jboss.javaee</groupId>
-          <artifactId>jboss-javaee</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.jboss</groupId>
-          <artifactId>jboss-common-core</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>commons-logging</groupId>
-          <artifactId>commons-logging</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>jgroups</groupId>
-      <artifactId>jgroups</artifactId>
-      <version>${version.jgroups}</version>      
-      <optional>true</optional>
-      <exclusions>
-        <exclusion>
-          <groupId>commons-logging</groupId>
-          <artifactId>commons-logging</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    
-    <!-- Only needed if you are using the PojoCacheManager -->  
-    <dependency>
-      <groupId>org.jboss.cache</groupId>
-      <artifactId>jbosscache-pojo</artifactId>
-      <version>${version.jboss.cache.pojo}</version>      
-      <optional>true</optional>
-      <exclusions>
-        <exclusion>
-          <groupId>org.jboss.cache</groupId>
-          <artifactId>jbosscache-core</artifactId>
-        </exclusion>      
-        <exclusion>
-          <groupId>org.jboss.aop</groupId>
-          <artifactId>jboss-aop</artifactId>
-        </exclusion>      
-        <exclusion>
-          <groupId>commons-logging</groupId>
-          <artifactId>commons-logging</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    
-    <dependency>
-      <groupId>org.jboss.aop</groupId>
-      <artifactId>jboss-aop</artifactId>
-      <version>${version.jboss.aop}</version>
-      <optional>true</optional>
-      <exclusions>
-        <!--  Don't pull in all the stuff from aop -->
-        <exclusion>
-          <groupId>ant</groupId>
-          <artifactId>ant</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>apache-xerces</groupId>
-          <artifactId>xml-apis</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.jboss</groupId>
-          <artifactId>javassist</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.jboss.microcontainer</groupId>
-          <artifactId>jboss-container</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>jboss</groupId>
-          <artifactId>jboss-common-logging-spi</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>jboss</groupId>
-          <artifactId>jboss-common-logging-log4j</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>qdox</groupId>
-          <artifactId>qdox</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>trove</groupId>
-          <artifactId>trove</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    
-    <!-- Test dependencies -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>${version.junit}</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>  
-
-</project>
-

Copied: projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml (from rev 75657, projects/cluster/ha-server-api/trunk/pom.xml)
===================================================================
--- projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml	                        (rev 0)
+++ projects/cluster/ha-server-api/tags/1.1.0.CR2/pom.xml	2008-07-11 02:17:49 UTC (rev 75658)
@@ -0,0 +1,186 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss.cluster</groupId>
+    <artifactId>jboss-cluster</artifactId>
+    <version>1.1.0.GA</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.cluster</groupId>
+  <artifactId>jboss-ha-server-api</artifactId>
+  <packaging>jar</packaging>
+  <version>1.1.0.CR2</version>
+  <name>JBoss Cluster HA Server API Classes</name>
+  <url>http://www.jboss.org</url>
+  <description>A set of server-side API classes for users of the JBoss AS clustering framework</description>
+  <licenses>
+   <license>
+      <name>lgpl</name>
+      <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+   </license>
+  </licenses>
+  <organization>
+    <name>JBoss, a division of Red Hat, Inc.</name>
+    <url>http://www.jboss.org</url>
+  </organization>
+  
+  <scm>
+    <connection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/cluster/ha-server-api/tags/1.1.0.CR2</connection>
+  </scm>
+  
+  <properties>
+    <version.jboss.ha.client>1.1.0.CR2</version.jboss.ha.client>
+    <version.jboss.common.core>2.2.7.GA</version.jboss.common.core>
+    <version.jboss.logging.spi>2.0.5.GA</version.jboss.logging.spi>
+    <version.jboss.cache>2.2.0.CR6</version.jboss.cache>
+    <!-- This should be [2.6.2,3.0.0) but maven complains about it -->
+    <version.jgroups>2.6.3.GA</version.jgroups>
+    <version.jboss.cache.pojo>2.2.0.CR5</version.jboss.cache.pojo>
+    <version.jboss.aop>2.0.0.CR13</version.jboss.aop>
+    <version.junit>3.8.1</version.junit>
+  </properties>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-release-plugin</artifactId>
+        <configuration>
+          <!-- The tagBase property is needed during the release process so that the maven release plugin
+            will create the release tag in the appropriate location. -->
+          <tagBase>https://svn.jboss.org/repos/jbossas/projects/cluster/ha-server-api/tags</tagBase>
+        </configuration>
+      </plugin>     
+    </plugins>
+  </build>  
+  
+  <dependencies> 
+    
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss.cluster</groupId>
+      <artifactId>jboss-ha-client</artifactId>
+      <version>${version.jboss.ha.client}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>${version.jboss.common.core}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+      <version>${version.jboss.logging.spi}</version>
+    </dependency> 
+      
+    <!-- Only needed if you are using the CacheManagerLocator -->
+    <dependency>
+      <groupId>org.jboss.cache</groupId>
+      <artifactId>jbosscache-core</artifactId>
+      <version>${version.jboss.cache}</version>      
+      <optional>true</optional>
+      <exclusions>
+        <exclusion>
+          <groupId>jgroups</groupId>
+          <artifactId>jgroups</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>javax.transaction</groupId>
+          <artifactId>jta</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.jboss</groupId>
+          <artifactId>jboss-common-core</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>commons-logging</groupId>
+          <artifactId>commons-logging</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    
+    <!-- Only needed if you are using the PojoCacheManager -->  
+    <dependency>
+      <groupId>org.jboss.cache</groupId>
+      <artifactId>jbosscache-pojo</artifactId>
+      <version>${version.jboss.cache.pojo}</version>      
+      <optional>true</optional>
+      <exclusions>
+        <exclusion>
+          <groupId>org.jboss.cache</groupId>
+          <artifactId>jbosscache-core</artifactId>
+        </exclusion>      
+        <exclusion>
+          <groupId>org.jboss.aop</groupId>
+          <artifactId>jboss-aop</artifactId>
+        </exclusion>      
+        <exclusion>
+          <groupId>commons-logging</groupId>
+          <artifactId>commons-logging</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>jgroups</groupId>
+      <artifactId>jgroups</artifactId>
+      <version>${version.jgroups}</version>      
+      <optional>true</optional>
+      <exclusions>
+        <exclusion>
+          <groupId>commons-logging</groupId>
+          <artifactId>commons-logging</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.aop</groupId>
+      <artifactId>jboss-aop</artifactId>
+      <version>${version.jboss.aop}</version>
+      <optional>true</optional>
+      <exclusions>
+        <!--  Don't pull in all the stuff from aop -->
+        <exclusion>
+          <groupId>ant</groupId>
+          <artifactId>ant</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>apache-xerces</groupId>
+          <artifactId>xml-apis</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.jboss</groupId>
+          <artifactId>javassist</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.jboss.microcontainer</groupId>
+          <artifactId>jboss-container</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-spi</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-log4j</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>qdox</groupId>
+          <artifactId>qdox</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>trove</groupId>
+          <artifactId>trove</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    
+    <!-- Test dependencies -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>${version.junit}</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>  
+
+</project>
+

Deleted: projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java	2008-07-10 21:54:47 UTC (rev 75641)
+++ projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java	2008-07-11 02:17:49 UTC (rev 75658)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ha.framework.interfaces;
-
-/**
- * Cluster abstraction of JGroups' RspFilter that allows termination of a group 
- * request based on logic implemented by an implementation of this interface. 
- * The abstraction has be done to avoid first, leaking JGroups classes to 
- * ha-server-api consumers and secondly, avoid direct dependency on JGroups.  
- * 
- * @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
- */
-public interface ResponseFilter
-{
-   boolean isAcceptable(Object response, ClusterNode sender);
-   
-   boolean needMoreResponses();
-}

Copied: projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java (from rev 75642, projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java)
===================================================================
--- projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java	                        (rev 0)
+++ projects/cluster/ha-server-api/tags/1.1.0.CR2/src/main/java/org/jboss/ha/framework/interfaces/ResponseFilter.java	2008-07-11 02:17:49 UTC (rev 75658)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ha.framework.interfaces;
+
+/**
+ * Interface defining when a group request is done, allowing early termination 
+ * of a group request based on logic implemented by the caller. For example,
+ * an RPC could be invoked on all members of a group, but as soon as a single
+ * valid response is received the {@link #needMoreResponses()} method could
+ * return <code>false</code> allowing the call to return without waiting for
+ * other slower-to-arrive responses.
+ * 
+ * Based on JGroups' RspFilter concept, but with a separate abstraction. 
+ * The abstraction has be done to avoid leaking JGroups classes to 
+ * ha-server-api consumers and to avoid adding an absolute dependency on JGroups
+ * to HAPartition implementations.
+ * 
+ * @see HAPartition#callMethodOnCluster(String, String, Object[], Class[], boolean, ResponseFilter)
+ * 
+ * @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
+ */
+public interface ResponseFilter
+{
+   /**
+    * Determines whether a response from a given sender should be added to the 
+    * response list of the request
+    * @param response The response (usually a serializable value)
+    * @param sender The sender of response
+    * @return <code>true</code> if we should add the response to the response 
+    * list of returned by 
+    * {@link HAPartition#callMethodOnCluster(String, String, Object[], Class[], boolean, ResponseFilter)
+    * otherwise false. In the latter case, the response will not be included in 
+    * the list returned to the RPC caller.
+    */
+   boolean isAcceptable(Object response, ClusterNode sender);
+   
+   /**
+    * Right after a call to {@link #isAcceptable(Object, ClusterNode)}, this 
+    * method is called to see whether we are done with the request and can 
+    * unblock the caller.
+    * 
+    * @return <code>true</code> if the request is done, otherwise <code>false</code>alse
+    */
+   boolean needMoreResponses();
+}




More information about the jboss-cvs-commits mailing list