View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.apache.hadoop.chukwa.rest.bean;
19  
20  import javax.xml.bind.annotation.XmlElement;
21  import javax.xml.bind.annotation.XmlRootElement;
22  
23  @XmlRootElement
24  public class ClientTraceBean {
25    
26    private String action;
27    private long size = 0L;
28    private String src;
29    private String dest;
30    private String date;
31    
32    @XmlElement
33    public String getAction() {
34      return action;
35    }
36    
37    public void setAction(String action) {
38      this.action = action;
39    }
40    
41    @XmlElement
42    public String getSrc() {
43      return src;
44    }
45    
46    public void setSrc(String src) {
47      this.src = src;
48    }
49    
50    @XmlElement
51    public String getDest() {
52      return dest;
53    }
54    
55    public void setDest(String dest) {
56      this.dest = dest;
57    }
58    
59    @XmlElement
60    public long getSize() {
61      return size;
62    }
63    
64    public void setSize(long size) {
65      this.size=size;
66    }
67  
68    @XmlElement
69    public String getDate() {
70      return date;
71    }
72    
73    public void setDate(String date) {
74      this.date = date;    
75    }
76  
77  }