continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r983838 - in /continuum/trunk/continuum-xmlrpc: continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ continuum-xmlrpc-server/src/main/java/org/...
Date Mon, 09 Aug 2010 22:55:53 GMT
Author: ctan
Date: Mon Aug  9 22:55:53 2010
New Revision: 983838

URL: http://svn.apache.org/viewvc?rev=983838&view=rev
Log:
[CONTINUUM-2561] exposed service for checking if project is in prepare build queue

Modified:
    continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
    continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
    continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java

Modified: continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java?rev=983838&r1=983837&r2=983838&view=diff
==============================================================================
--- continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
(original)
+++ continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-api/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumService.java
Mon Aug  9 22:55:53 2010
@@ -1031,9 +1031,18 @@ public interface ContinuumService
 
 
     /**
-     * Return true is the project is in building queue.
+     * Return true if the project is in prepare build queue
+     * 
+     *  @param projectId The project id
+     *  @throws ContinuumException
+     */
+    boolean isProjectInPrepareBuildQueue( int projectId )
+        throws Exception;
+
+    /**
+     * Return true if the project is in building queue.
      *
-     * @param projectGroupId The project group id
+     * @param projectId The project id
      * @throws ContinuumException
      */
     boolean isProjectInBuildingQueue( int projectId )

Modified: continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java?rev=983838&r1=983837&r2=983838&view=diff
==============================================================================
--- continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
(original)
+++ continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-client/src/main/java/org/apache/maven/continuum/xmlrpc/client/ContinuumXmlRpcClient.java
Mon Aug  9 22:55:53 2010
@@ -510,6 +510,11 @@ public class ContinuumXmlRpcClient
     // ----------------------------------------------------------------------
     // Queue
     // ----------------------------------------------------------------------
+    public boolean isProjectInPrepareBuildQueue( int projectId )
+        throws Exception
+    {
+        return continuum.isProjectInPrepareBuildQueue( projectId );
+    }
 
     public List<BuildProjectTask> getProjectsInBuildQueue()
         throws Exception

Modified: continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java?rev=983838&r1=983837&r2=983838&view=diff
==============================================================================
--- continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
(original)
+++ continuum/trunk/continuum-xmlrpc/continuum-xmlrpc-server/src/main/java/org/apache/maven/continuum/xmlrpc/server/ContinuumServiceImpl.java
Mon Aug  9 22:55:53 2010
@@ -1060,6 +1060,19 @@ public class ContinuumServiceImpl
     // ----------------------------------------------------------------------
 
 
+    public boolean isProjectInPrepareBuildQueue( int projectId )
+        throws ContinuumException
+    {
+        try
+        {
+            return parallelBuildsManager.isInPrepareBuildQueue( projectId );
+        }
+        catch ( BuildManagerException e )
+        {
+            throw new ContinuumException( e.getMessage(), e );
+        }
+    }
+
     public boolean isProjectInBuildingQueue( int projectId )
         throws ContinuumException
     {



Mime
View raw message