Clover Coverage Report - AWS S3 Wagon 1.0.30
Coverage timestamp: Fri Apr 15 2011 14:15:11 EST
../../../../img/srcFileCovDistChart0.png 14% of files have more coverage
15   58   9   1.67
0   41   0.6   9
9     1  
1    
 
  TransferTracker       Line # 10 15 0% 9 24 0% 0.0
 
No Tests
 
1    package org.kuali.maven.wagon;
2   
3    /**
4    * Holds timing and byte count information about a transfer operation
5    *
6    * @author Jeff Caddel
7    *
8    * @since May 27, 2010 6:51:19 PM
9    */
 
10    public class TransferTracker {
11    long initiated;
12    long started;
13    long completed;
14    int byteCount;
15    SimpleFormatter formatter = new SimpleFormatter();
16   
 
17  0 toggle public long getInitiated() {
18  0 return initiated;
19    }
20   
 
21  0 toggle public void setInitiated(long initiated) {
22  0 this.initiated = initiated;
23    }
24   
 
25  0 toggle public long getStarted() {
26  0 return started;
27    }
28   
 
29  0 toggle public void setStarted(long started) {
30  0 this.started = started;
31    }
32   
 
33  0 toggle public long getCompleted() {
34  0 return completed;
35    }
36   
 
37  0 toggle public void setCompleted(long completed) {
38  0 this.completed = completed;
39    }
40   
 
41  0 toggle public int getByteCount() {
42  0 return byteCount;
43    }
44   
 
45  0 toggle public void setByteCount(int byteCount) {
46  0 this.byteCount = byteCount;
47    }
48   
 
49  0 toggle public String toString() {
50  0 long elapsed = completed - started;
51  0 StringBuffer sb = new StringBuffer();
52  0 sb.append("[" + formatter.getTime(elapsed));
53  0 sb.append(", " + formatter.getSize(byteCount));
54  0 sb.append(", " + formatter.getRate(elapsed, byteCount));
55  0 sb.append("]");
56  0 return sb.toString();
57    }
58    }