1   package org.apache.continuum.distributed.transport.master;
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  import com.atlassian.xmlrpc.ServiceObject;
23  
24  import java.util.Map;
25  
26  
27  
28  
29  @ServiceObject( "MasterBuildAgentTransportService" )
30  public interface MasterBuildAgentTransportService
31  {
32      public Boolean returnBuildResult( Map<String, Object> buildResult, String buildAgentUrl )
33          throws Exception;
34  
35      public Boolean startProjectBuild( Integer projectId, String buildAgentUrl )
36          throws Exception;
37  
38      public Boolean prepareBuildFinished( Map<String, Object> prepareBuildResult, String buildAgentUrl )
39          throws Exception;
40  
41      public Boolean startPrepareBuild( Map<String, Object> prepareBuildResult, String buildAgentUrl )
42          throws Exception;
43  
44      public Map<String, String> getEnvironments( Integer buildDefinitionId, String installationType )
45          throws Exception;
46  
47      public Boolean updateProject( Map<String, Object> project )
48          throws Exception;
49  
50      public Boolean ping()
51          throws Exception;
52  
53      public Boolean shouldBuild( Map<String, Object> context, String buildAgentUrl )
54          throws Exception;
55  }