Clover icon

Coverage Report

  1. Project Clover database Thu Dec 4 2025 16:11:35 GMT
  2. Package jalview.ws.api

File JobId.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

2
11
7
1
67
47
8
0.73
1.57
7
1.14

Classes

Class Line # Actions
JobId 5 11 8
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package jalview.ws.api;
2   
3    import java.util.Date;
4   
 
5    public class JobId
6    {
7    // TODO: JobId could include sequenceI anonymisation stuff
8    // TODO: getProgress() -> input stream to log file for job.
9    private String serviceType;
10   
11    private String serviceImpl;
12   
13    private String jobId;
14    // TODO: java2script instant
15    private String creationTime=null;
16   
 
17  0 toggle public JobId(String serviceType, String serviceImpl, String id)
18    {
19  0 this.serviceType = serviceType;
20  0 this.serviceImpl = serviceImpl;
21  0 jobId = id;
22    /*
23    * @j2sIgnore
24    */
25    {
26    // creationTime = Date.from(Instant.now()).toString();
27    }
28  0 if (creationTime==null)
29    {
30  0 creationTime = new Date().toString(); // j2s only
31    }
32    }
33   
 
34  0 toggle @Override
35    public String toString()
36    {
37  0 return "" + serviceType + ":" + serviceImpl + ":" + jobId + "\nCreated "
38    + creationTime;
39    }
40    /**
41    * a stringified version of the Job Id that can be saved in project.
42    */
 
43  0 toggle public String getURI()
44    {
45  0 return jobId;
46    }
47   
 
48  0 toggle public String getServiceType()
49    {
50  0 return serviceType;
51    }
52   
 
53  0 toggle public String getServiceImpl()
54    {
55  0 return serviceImpl;
56    }
57   
 
58  0 toggle public String getJobId()
59    {
60  0 return jobId;
61    }
62   
 
63  0 toggle public String getCreationTime()
64    {
65  0 return creationTime;
66    }
67    }