This project has retired. For details please refer to its
Attic page.
ArchivaRepositoryStatistics xref
1 package org.apache.archiva.rest.api.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import javax.xml.bind.annotation.XmlRootElement;
22 import java.io.Serializable;
23 import java.util.Date;
24
25
26
27
28
29 @XmlRootElement( name = "archivaRepositoryStatistics" )
30 public class ArchivaRepositoryStatistics
31 implements Serializable
32 {
33 private Date scanEndTime;
34
35 private Date scanStartTime;
36
37 private long totalArtifactCount;
38
39 private long totalArtifactFileSize;
40
41 private long totalFileCount;
42
43 private long totalGroupCount;
44
45 private long totalProjectCount;
46
47 private long newFileCount;
48
49 private long duration;
50
51 private String lastScanDate;
52
53 public ArchivaRepositoryStatistics()
54 {
55
56 }
57
58 public Date getScanEndTime()
59 {
60 return scanEndTime;
61 }
62
63 public void setScanEndTime( Date scanEndTime )
64 {
65 this.scanEndTime = scanEndTime;
66 }
67
68 public Date getScanStartTime()
69 {
70 return scanStartTime;
71 }
72
73 public void setScanStartTime( Date scanStartTime )
74 {
75 this.scanStartTime = scanStartTime;
76 }
77
78 public long getTotalArtifactCount()
79 {
80 return totalArtifactCount;
81 }
82
83 public void setTotalArtifactCount( long totalArtifactCount )
84 {
85 this.totalArtifactCount = totalArtifactCount;
86 }
87
88 public long getTotalArtifactFileSize()
89 {
90 return totalArtifactFileSize;
91 }
92
93 public void setTotalArtifactFileSize( long totalArtifactFileSize )
94 {
95 this.totalArtifactFileSize = totalArtifactFileSize;
96 }
97
98 public long getTotalFileCount()
99 {
100 return totalFileCount;
101 }
102
103 public void setTotalFileCount( long totalFileCount )
104 {
105 this.totalFileCount = totalFileCount;
106 }
107
108 public long getTotalGroupCount()
109 {
110 return totalGroupCount;
111 }
112
113 public void setTotalGroupCount( long totalGroupCount )
114 {
115 this.totalGroupCount = totalGroupCount;
116 }
117
118 public long getTotalProjectCount()
119 {
120 return totalProjectCount;
121 }
122
123 public void setTotalProjectCount( long totalProjectCount )
124 {
125 this.totalProjectCount = totalProjectCount;
126 }
127
128 public long getNewFileCount()
129 {
130 return newFileCount;
131 }
132
133 public void setNewFileCount( long newFileCount )
134 {
135 this.newFileCount = newFileCount;
136 }
137
138 public void setDuration( long duration )
139 {
140 this.duration = duration;
141 }
142
143 public long getDuration()
144 {
145 return duration;
146 }
147
148 public String getLastScanDate()
149 {
150 return lastScanDate;
151 }
152
153 public void setLastScanDate( String lastScanDate )
154 {
155 this.lastScanDate = lastScanDate;
156 }
157
158 @Override
159 public String toString()
160 {
161 final StringBuilder sb = new StringBuilder();
162 sb.append( "ArchivaRepositoryStatistics" );
163 sb.append( "{scanEndTime=" ).append( scanEndTime );
164 sb.append( ", scanStartTime=" ).append( scanStartTime );
165 sb.append( ", totalArtifactCount=" ).append( totalArtifactCount );
166 sb.append( ", totalArtifactFileSize=" ).append( totalArtifactFileSize );
167 sb.append( ", totalFileCount=" ).append( totalFileCount );
168 sb.append( ", totalGroupCount=" ).append( totalGroupCount );
169 sb.append( ", totalProjectCount=" ).append( totalProjectCount );
170 sb.append( ", newFileCount=" ).append( newFileCount );
171 sb.append( ", duration=" ).append( duration );
172 sb.append( ", lastScanDate='" ).append( lastScanDate ).append( '\'' );
173 sb.append( '}' );
174 return sb.toString();
175 }
176 }