1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing, software13 * 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 and16 * limitations under the License.17 */18package org.apache.hadoop.chukwa.datacollection.agent.rest;
1920import javax.xml.bind.annotation.XmlAttribute;
21import javax.xml.bind.annotation.XmlElement;
22import javax.xml.bind.annotation.XmlRootElement;
23import javax.xml.bind.annotation.XmlAccessorType;
24import javax.xml.bind.annotation.XmlAccessType;
2526 @XmlRootElement
27 @XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
28publicclassAdaptorConfig {
29private String id;
30private String dataType;
31private String adaptorClass;
32private String adaptorParams;
33privatelong offset;
3435publicAdaptorConfig() {
36 }
3738 @XmlElement
39public String getId() {
40return id;
41 }
4243publicvoid setId(String id) {
44this.id = id;
45 }
4647 @XmlElement
48public String getDataType() {
49return dataType;
50 }
5152publicvoid setDataType(String dataType) {
53this.dataType = dataType;
54 }
5556 @XmlElement
57public String getAdaptorClass() {
58return adaptorClass;
59 }
6061publicvoid setAdaptorClass(String adaptorClass) {
62this.adaptorClass = adaptorClass;
63 }
6465 @XmlElement
66public String getAdaptorParams() {
67return adaptorParams;
68 }
6970publicvoid setAdaptorParams(String adaptorParams) {
71this.adaptorParams = adaptorParams;
72 }
7374 @XmlElement
75publiclong getOffset() {
76return offset;
77 }
7879publicvoid setOffset(long offset) {
80this.offset = offset;
81 }
82 }