1 package org.apache.archiva.rest.api.model;
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
21 import javax.xml.bind.annotation.XmlRootElement;
22 import java.io.Serializable;
23 import java.util.Date;
26 * @author Olivier Lamy
29 @XmlRootElement( name = "archivaRepositoryStatistics" )
30 public class ArchivaRepositoryStatistics
31 implements Serializable
33 private Date scanEndTime;
35 private Date scanStartTime;
37 private long totalArtifactCount;
39 private long totalArtifactFileSize;
41 private long totalFileCount;
43 private long totalGroupCount;
45 private long totalProjectCount;
47 private long newFileCount;
49 private long duration;
51 private String lastScanDate;
53 public ArchivaRepositoryStatistics()
58 public Date getScanEndTime()
63 public void setScanEndTime( Date scanEndTime )
65 this.scanEndTime = scanEndTime;
68 public Date getScanStartTime()
73 public void setScanStartTime( Date scanStartTime )
75 this.scanStartTime = scanStartTime;
78 public long getTotalArtifactCount()
80 return totalArtifactCount;
83 public void setTotalArtifactCount( long totalArtifactCount )
85 this.totalArtifactCount = totalArtifactCount;
88 public long getTotalArtifactFileSize()
90 return totalArtifactFileSize;
93 public void setTotalArtifactFileSize( long totalArtifactFileSize )
95 this.totalArtifactFileSize = totalArtifactFileSize;
98 public long getTotalFileCount()
100 return totalFileCount;
103 public void setTotalFileCount( long totalFileCount )
105 this.totalFileCount = totalFileCount;
108 public long getTotalGroupCount()
110 return totalGroupCount;
113 public void setTotalGroupCount( long totalGroupCount )
115 this.totalGroupCount = totalGroupCount;
118 public long getTotalProjectCount()
120 return totalProjectCount;
123 public void setTotalProjectCount( long totalProjectCount )
125 this.totalProjectCount = totalProjectCount;
128 public long getNewFileCount()
133 public void setNewFileCount( long newFileCount )
135 this.newFileCount = newFileCount;
138 public void setDuration( long duration )
140 this.duration = duration;
143 public long getDuration()
148 public String getLastScanDate()
153 public void setLastScanDate( String lastScanDate )
155 this.lastScanDate = lastScanDate;
159 public String toString()
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( '\'' );
174 return sb.toString();