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 */1819package org.apache.hadoop.chukwa.rest.bean;
2021import javax.xml.bind.annotation.XmlElement;
22import javax.xml.bind.annotation.XmlRootElement;
23import javax.xml.bind.annotation.XmlType;
2425 @XmlRootElement
26 @XmlType(propOrder={"code", "message"})
27publicclassReturnCodeBean {
28publicstaticfinalint FAIL=0;
29publicstaticfinalint SUCCESS=1;
30privateint code;
31private String message;
3233publicReturnCodeBean() {
34 }
3536publicReturnCodeBean(int code, String message) {
37this.code=code;
38this.message=message;
39 }
4041 @XmlElement
42publicint getCode() {
43return code;
44 }
4546 @XmlElement
47public String getMessage() {
48return message;
49 }
5051publicvoid setCode(int code) {
52this.code=code;
53 }
5455publicvoid setMessage(String message) {
56this.message=message;
57 }
58 }