This project has retired. For details please refer to its Attic page.
RepositoryScannerStatistics xref
View Javadoc
1   package org.apache.archiva.rest.api.model;
2   /*
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
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
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
18   * under the License.
19   */
20  
21  import org.apache.archiva.admin.model.beans.ManagedRepository;
22  
23  import javax.xml.bind.annotation.XmlRootElement;
24  import java.io.Serializable;
25  import java.util.List;
26  
27  /**
28   * @author Olivier Lamy
29   */
30  @XmlRootElement( name = "repositoryScannerStatistics" )
31  public class RepositoryScannerStatistics
32      implements Serializable
33  {
34      private ManagedRepository managedRepository;
35  
36      private List<ConsumerScanningStatistics> consumerScanningStatistics;
37  
38      private long totalFileCount = 0;
39  
40      private long newFileCount = 0;
41  
42      public RepositoryScannerStatistics()
43      {
44          // no op
45      }
46  
47      public ManagedRepository getManagedRepository()
48      {
49          return managedRepository;
50      }
51  
52      public void setManagedRepository( ManagedRepository managedRepository )
53      {
54          this.managedRepository = managedRepository;
55      }
56  
57      public List<ConsumerScanningStatistics> getConsumerScanningStatistics()
58      {
59          return consumerScanningStatistics;
60      }
61  
62      public void setConsumerScanningStatistics( List<ConsumerScanningStatistics> consumerScanningStatistics )
63      {
64          this.consumerScanningStatistics = consumerScanningStatistics;
65      }
66  
67      public long getTotalFileCount()
68      {
69          return totalFileCount;
70      }
71  
72      public void setTotalFileCount( long totalFileCount )
73      {
74          this.totalFileCount = totalFileCount;
75      }
76  
77      public long getNewFileCount()
78      {
79          return newFileCount;
80      }
81  
82      public void setNewFileCount( long newFileCount )
83      {
84          this.newFileCount = newFileCount;
85      }
86  }