continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmora...@apache.org
Subject svn commit: r780707 - in /continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum: Continuum.java build/settings/SchedulesActivator.java
Date Mon, 01 Jun 2009 16:29:05 GMT
Author: jmorales
Date: Mon Jun  1 16:29:05 2009
New Revision: 780707

URL: http://svn.apache.org/viewvc?rev=780707&view=rev
Log:
[CONTINUUM-2195] [CONTINUUM-2236] .Scheduler is updated when update or add a purgeConfiguration
or buildDefinition with schedule. Also delete schedules that are not associated with a buildDefinition
or purgeConfiguration when execute job process. I have created two groups for jobs whe add
a job to scheduler:
- PurgeConfiguration group.
- BuildDefinitionGroup.

Modified:
    continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
    continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivator.java

Modified: continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java?rev=780707&r1=780706&r2=780707&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
Mon Jun  1 16:29:05 2009
@@ -118,6 +118,7 @@
      * @throws ContinuumException
      * @deprecated
      */
+    @Deprecated
     void checkoutProject( int projectId )
         throws ContinuumException;
 
@@ -440,18 +441,21 @@
     /**
      * @deprecated
      */
+    @Deprecated
     List<BuildDefinition> getBuildDefinitions( int projectId )
         throws ContinuumException;
 
     /**
      * @deprecated
      */
+    @Deprecated
     BuildDefinition getBuildDefinition( int projectId, int buildDefinitionId )
         throws ContinuumException;
 
     /**
      * @deprecated
      */
+    @Deprecated
     void removeBuildDefinition( int projectId, int buildDefinitionId )
         throws ContinuumException;
 
@@ -528,6 +532,10 @@
 
     void removeSchedule( int scheduleId )
         throws ContinuumException;
+    
+    void activePurgeSchedule( Schedule schedule );
+    
+    void activeBuildDefinitionSchedule( Schedule schedule );
 
     // ----------------------------------------------------------------------
     // Working copy

Modified: continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivator.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivator.java?rev=780707&r1=780706&r2=780707&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivator.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/build/settings/SchedulesActivator.java
Mon Jun  1 16:29:05 2009
@@ -48,6 +48,22 @@
      */
     void activateSchedule( Schedule schedule, Continuum continuum )
         throws SchedulesActivationException;
+    
+    /**
+     * Activate schedule only for PurgeConfiguration associated.
+     * 
+     * @throws SchedulesActivationException
+     */
+    void activatePurgeSchedule( Schedule schedule, Continuum continuum )
+        throws SchedulesActivationException;
+
+    /**
+     * Activate schedule only for BuildDefinitions associated.
+     * 
+     * @throws SchedulesActivationException
+     */
+    void activateBuildSchedule( Schedule schedule, Continuum continuum )
+        throws SchedulesActivationException;
 
     /**
      * Unactivate schedule by looking at the scheduling information contained within.
@@ -56,4 +72,18 @@
      */
     void unactivateSchedule( Schedule schedule, Continuum continuum )
         throws SchedulesActivationException;
+
+    /**
+     * Unactivate schedule purgeConfigurations if it is not in a purgeConfiguration.
+     */
+    void unactivateOrphanPurgeSchedule( Schedule schedule )
+        throws SchedulesActivationException;
+
+    /**
+     * Unactivate schedule buildDefinitions if it is not in a buildDefinition.
+     * 
+     * @throws SchedulesActivationException
+     */
+    void unactivateOrphanBuildSchedule( Schedule schedule )
+        throws SchedulesActivationException;
 }



Mime
View raw message