1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ws; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
|
|
| 0% |
Uncovered Elements: 26 (26) |
Complexity: 13 |
Complexity Density: 1 |
|
28 |
|
public abstract class AWsJob |
29 |
|
{ |
30 |
|
protected int jobnum = 0; |
31 |
|
|
32 |
|
protected String jobId; |
33 |
|
|
34 |
|
|
35 |
|
@param |
36 |
|
|
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0 |
public void setJobId(String jobId)... |
39 |
|
{ |
40 |
0 |
this.jobId = jobId; |
41 |
|
} |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
protected boolean cancelled = false; |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
int allowedServerExceptions = 3; |
52 |
|
|
53 |
|
|
54 |
|
@param |
55 |
|
|
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0 |
public void setAllowedServerExceptions(int allowedServerExceptions)... |
58 |
|
{ |
59 |
0 |
this.allowedServerExceptions = allowedServerExceptions; |
60 |
|
} |
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
protected boolean submitted = false; |
67 |
|
|
68 |
|
|
69 |
|
@param |
70 |
|
|
71 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
0 |
public void setJobnum(int jobnum)... |
73 |
|
{ |
74 |
0 |
this.jobnum = jobnum; |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
@param |
79 |
|
|
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0 |
public void setSubmitted(boolean submitted)... |
82 |
|
{ |
83 |
0 |
this.submitted = submitted; |
84 |
|
} |
85 |
|
|
86 |
|
|
87 |
|
@param |
88 |
|
|
89 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
0 |
public void setSubjobComplete(boolean subjobComplete)... |
91 |
|
{ |
92 |
0 |
this.subjobComplete = subjobComplete; |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
|
@return |
97 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
0 |
public int getJobnum()... |
99 |
|
{ |
100 |
0 |
return jobnum; |
101 |
|
} |
102 |
|
|
103 |
|
|
104 |
|
@return |
105 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
0 |
public String getJobId()... |
107 |
|
{ |
108 |
0 |
return jobId; |
109 |
|
} |
110 |
|
|
111 |
|
|
112 |
|
@return |
113 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
0 |
public boolean isCancelled()... |
115 |
|
{ |
116 |
0 |
return cancelled; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
@return |
121 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
0 |
public int getAllowedServerExceptions()... |
123 |
|
{ |
124 |
0 |
return allowedServerExceptions; |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
@return |
129 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
0 |
public boolean isSubmitted()... |
131 |
|
{ |
132 |
0 |
return submitted; |
133 |
|
} |
134 |
|
|
135 |
|
|
136 |
|
@return |
137 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
138 |
0 |
public boolean isSubjobComplete()... |
139 |
|
{ |
140 |
0 |
return subjobComplete; |
141 |
|
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
protected boolean subjobComplete = false; |
147 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
148 |
0 |
public AWsJob()... |
149 |
|
{ |
150 |
|
} |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
@return |
155 |
|
|
156 |
|
abstract public boolean hasResults(); |
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
@return |
161 |
|
|
162 |
|
public abstract boolean hasValidInput(); |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
@return |
167 |
|
|
168 |
|
abstract public boolean isRunning(); |
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
@return |
173 |
|
|
174 |
|
abstract public boolean isQueued(); |
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
@return |
179 |
|
|
180 |
|
abstract public boolean isFinished(); |
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
@return |
185 |
|
|
186 |
|
|
187 |
|
abstract public boolean isFailed(); |
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
@return |
192 |
|
|
193 |
|
abstract public boolean isBroken(); |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
@return |
198 |
|
|
199 |
|
abstract public boolean isServerError(); |
200 |
|
|
201 |
|
|
202 |
|
|
203 |
|
@return |
204 |
|
|
205 |
|
abstract public boolean hasStatus(); |
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
@return |
210 |
|
|
211 |
|
abstract public String getStatus(); |
212 |
|
|
213 |
|
abstract public boolean hasResponse(); |
214 |
|
|
215 |
|
abstract public void clearResponse(); |
216 |
|
|
217 |
|
abstract public String getState(); |
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
@return |
223 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
224 |
0 |
protected String _defaultState()... |
225 |
|
{ |
226 |
|
|
227 |
0 |
String state = ""; |
228 |
0 |
return state; |
229 |
|
} |
230 |
|
} |