| 1 |
|
package jalview.ws2.api; |
| 2 |
|
|
| 3 |
|
import java.util.Date; |
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
@link |
| 11 |
|
|
| 12 |
|
@see |
| 13 |
|
|
| 14 |
|
@author |
| 15 |
|
|
| |
|
| 53.8% |
Uncovered Elements: 6 (13) |
Complexity: 5 |
Complexity Density: 0.62 |
|
| 16 |
|
public class WebServiceJobHandle |
| 17 |
|
{ |
| 18 |
|
|
| 19 |
|
private final String serviceClient; |
| 20 |
|
|
| 21 |
|
|
| 22 |
|
private final String serviceName; |
| 23 |
|
|
| 24 |
|
|
| 25 |
|
private final String url; |
| 26 |
|
|
| 27 |
|
|
| 28 |
|
private final String jobId; |
| 29 |
|
|
| 30 |
|
private Date creationTime = new Date(); |
| 31 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 32 |
37 |
public WebServiceJobHandle(String serviceClient, String serviceName,... |
| 33 |
|
String url, String jobId) |
| 34 |
|
{ |
| 35 |
37 |
this.serviceClient = serviceClient; |
| 36 |
37 |
this.serviceName = serviceName; |
| 37 |
37 |
this.url = url; |
| 38 |
37 |
this.jobId = jobId; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
@return |
| 45 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0 |
public String getUrl()... |
| 47 |
|
{ |
| 48 |
0 |
return url; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
@return |
| 55 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 56 |
3 |
public String getJobId()... |
| 57 |
|
{ |
| 58 |
3 |
return jobId; |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
|
| 62 |
|
@return |
| 63 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 64 |
0 |
public Date getCreationTime()... |
| 65 |
|
{ |
| 66 |
0 |
return creationTime; |
| 67 |
|
} |
| 68 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 69 |
0 |
public String toString()... |
| 70 |
|
{ |
| 71 |
0 |
return String.format("%s:%s [%s] Created %s", serviceClient, serviceName, |
| 72 |
|
jobId, creationTime); |
| 73 |
|
} |
| 74 |
|
} |