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 javax.xml.bind.annotation.XmlRootElement;
22 import java.io.Serializable;
23
24 /**
25 * @author Olivier Lamy
26 */
27 @XmlRootElement( name = "consumerScanningStatistics" )
28 public class ConsumerScanningStatistics
29 implements Serializable
30 {
31 private String consumerKey;
32
33 private long count;
34
35 private long time;
36
37 private String average;
38
39 public ConsumerScanningStatistics()
40 {
41 // no op
42 }
43
44 public String getConsumerKey()
45 {
46 return consumerKey;
47 }
48
49 public void setConsumerKey( String consumerKey )
50 {
51 this.consumerKey = consumerKey;
52 }
53
54 public long getCount()
55 {
56 return count;
57 }
58
59 public void setCount( long count )
60 {
61 this.count = count;
62 }
63
64 public long getTime()
65 {
66 return time;
67 }
68
69 public void setTime( long time )
70 {
71 this.time = time;
72 }
73
74 public String getAverage()
75 {
76 return average;
77 }
78
79 public void setAverage( String average )
80 {
81 this.average = average;
82 }
83 }