1 package org.apache.continuum.taskqueue;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.Map;
23
24 import org.codehaus.plexus.taskqueue.Task;
25
26 public class PrepareBuildProjectsTask
27 implements Task
28 {
29 private final Map<Integer, Integer> projectsBuildDefinitionsMap;
30
31 private final int trigger;
32
33 private final int projectGroupId;
34
35 private final String projectGroupName;
36
37 private final String scmRootAddress;
38
39 private final int projectScmRootId;
40
41 public PrepareBuildProjectsTask( Map<Integer, Integer> projectsBuildDefinitionsMap, int trigger, int projectGroupId,
42 String projectGroupName, String scmRootAddress, int projectScmRootId )
43 {
44 this.projectsBuildDefinitionsMap = projectsBuildDefinitionsMap;
45 this.trigger = trigger;
46 this.projectGroupId = projectGroupId;
47 this.projectGroupName = projectGroupName;
48 this.scmRootAddress = scmRootAddress;
49 this.projectScmRootId = projectScmRootId;
50 }
51
52 public long getMaxExecutionTime()
53 {
54
55 return 0;
56 }
57
58 public Map<Integer, Integer> getProjectsBuildDefinitionsMap()
59 {
60 return projectsBuildDefinitionsMap;
61 }
62
63 public int getTrigger()
64 {
65 return trigger;
66 }
67
68 public int getHashCode()
69 {
70 return this.hashCode();
71 }
72
73 public int getProjectGroupId()
74 {
75 return projectGroupId;
76 }
77
78 public String getProjectGroupName()
79 {
80 return projectGroupName;
81 }
82
83 public String getScmRootAddress()
84 {
85 return scmRootAddress;
86 }
87
88 public int getProjectScmRootId()
89 {
90 return projectScmRootId;
91 }
92
93 public int hashCode()
94 {
95 return this.projectGroupId + this.projectScmRootId + this.trigger;
96 }
97 }