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  
22  
23  
24  import org.apache.archiva.admin.model.beans.ManagedRepository;
25  
26  import javax.xml.bind.annotation.XmlRootElement;
27  import java.io.Serializable;
28  import java.util.List;
29  
30  /**
31   * @author Olivier Lamy
32   */
33  @XmlRootElement( name = "repositoryScannerStatistics" )
34  public class RepositoryScannerStatistics
35      implements Serializable
36  {
37      private ManagedRepository managedRepository;
38  
39      private List<ConsumerScanningStatistics> consumerScanningStatistics;
40  
41      private long totalFileCount = 0;
42  
43      private long newFileCount = 0;
44  
45      public RepositoryScannerStatistics()
46      {
47          // no op
48      }
49  
50      public ManagedRepository getManagedRepository()
51      {
52          return managedRepository;
53      }
54  
55      public void setManagedRepository( ManagedRepository managedRepository )
56      {
57          this.managedRepository = managedRepository;
58      }
59  
60      public List<ConsumerScanningStatistics> getConsumerScanningStatistics()
61      {
62          return consumerScanningStatistics;
63      }
64  
65      public void setConsumerScanningStatistics( List<ConsumerScanningStatistics> consumerScanningStatistics )
66      {
67          this.consumerScanningStatistics = consumerScanningStatistics;
68      }
69  
70      public long getTotalFileCount()
71      {
72          return totalFileCount;
73      }
74  
75      public void setTotalFileCount( long totalFileCount )
76      {
77          this.totalFileCount = totalFileCount;
78      }
79  
80      public long getNewFileCount()
81      {
82          return newFileCount;
83      }
84  
85      public void setNewFileCount( long newFileCount )
86      {
87          this.newFileCount = newFileCount;
88      }
89  }