This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.rest.api.model;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021
022
023
024import org.apache.archiva.admin.model.beans.ManagedRepository;
025
026import javax.xml.bind.annotation.XmlRootElement;
027import java.io.Serializable;
028import java.util.List;
029
030/**
031 * @author Olivier Lamy
032 */
033@XmlRootElement( name = "repositoryScannerStatistics" )
034public class RepositoryScannerStatistics
035    implements Serializable
036{
037    private ManagedRepository managedRepository;
038
039    private List<ConsumerScanningStatistics> consumerScanningStatistics;
040
041    private long totalFileCount = 0;
042
043    private long newFileCount = 0;
044
045    public RepositoryScannerStatistics()
046    {
047        // no op
048    }
049
050    public ManagedRepository getManagedRepository()
051    {
052        return managedRepository;
053    }
054
055    public void setManagedRepository( ManagedRepository managedRepository )
056    {
057        this.managedRepository = managedRepository;
058    }
059
060    public List<ConsumerScanningStatistics> getConsumerScanningStatistics()
061    {
062        return consumerScanningStatistics;
063    }
064
065    public void setConsumerScanningStatistics( List<ConsumerScanningStatistics> consumerScanningStatistics )
066    {
067        this.consumerScanningStatistics = consumerScanningStatistics;
068    }
069
070    public long getTotalFileCount()
071    {
072        return totalFileCount;
073    }
074
075    public void setTotalFileCount( long totalFileCount )
076    {
077        this.totalFileCount = totalFileCount;
078    }
079
080    public long getNewFileCount()
081    {
082        return newFileCount;
083    }
084
085    public void setNewFileCount( long newFileCount )
086    {
087        this.newFileCount = newFileCount;
088    }
089}