View Javadoc

1   package org.apache.continuum.release.distributed.manager;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.util.List;
23  import java.util.Map;
24  import java.util.Properties;
25  
26  import org.apache.continuum.configuration.BuildAgentConfigurationException;
27  import org.apache.continuum.model.repository.LocalRepository;
28  import org.apache.maven.continuum.model.project.Project;
29  import org.apache.maven.continuum.release.ContinuumReleaseException;
30  import org.apache.maven.shared.release.ReleaseResult;
31  
32  public interface DistributedReleaseManager
33  {
34      Map getReleasePluginParameters( int projectId, String pomFilename )
35          throws ContinuumReleaseException, BuildAgentConfigurationException;
36  
37      List<Map<String, String>> processProject( int projectId, String pomFilename, boolean autoVersionSubmodules )
38          throws ContinuumReleaseException, BuildAgentConfigurationException;
39  
40      String releasePrepare( Project project, Properties releaseProperties, Map<String, String> releaseVersion, 
41                             Map<String, String> developmentVersion, Map<String, String> environments )
42          throws ContinuumReleaseException, BuildAgentConfigurationException;
43  
44      ReleaseResult getReleaseResult( String releaseId )
45          throws ContinuumReleaseException, BuildAgentConfigurationException;
46  
47      Map getListener( String releaseId )
48          throws ContinuumReleaseException, BuildAgentConfigurationException;
49  
50      void removeListener( String releaseId )
51          throws ContinuumReleaseException, BuildAgentConfigurationException;
52  
53      String getPreparedReleaseName( String releaseId )
54          throws ContinuumReleaseException;
55  
56      void releasePerform( int projectId, String releaseId, String goals, String arguments, boolean useReleaseProfile, LocalRepository repository )
57          throws ContinuumReleaseException, BuildAgentConfigurationException;
58  
59      void releasePerformFromScm( int projectId, String goals, String arguments, boolean useReleaseProfile, LocalRepository repository, 
60                                  String scmUrl, String scmUsername, String scmPassword, String scmTag, String scmTagBase, Map environments )
61          throws ContinuumReleaseException, BuildAgentConfigurationException;
62  
63      void releaseRollback( String releaseId, int projectId )
64          throws ContinuumReleaseException, BuildAgentConfigurationException;
65  
66      String releaseCleanup( String releaseId )
67          throws ContinuumReleaseException, BuildAgentConfigurationException;
68  
69      List<Map<String, Object>> getAllReleasesInProgress()
70          throws ContinuumReleaseException, BuildAgentConfigurationException;
71  }