001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.hadoop.yarn.api.records.timeline;
020
021
022import org.apache.hadoop.classification.InterfaceAudience;
023import org.apache.hadoop.classification.InterfaceStability;
024
025import javax.xml.bind.annotation.XmlAccessType;
026import javax.xml.bind.annotation.XmlAccessorType;
027import javax.xml.bind.annotation.XmlElement;
028import javax.xml.bind.annotation.XmlRootElement;
029
030@XmlRootElement(name = "about")
031@XmlAccessorType(XmlAccessType.NONE)
032@InterfaceAudience.Public
033@InterfaceStability.Evolving
034public class TimelineAbout {
035
036  private String about;
037  private String timelineServiceVersion;
038  private String timelineServiceBuildVersion;
039  private String timelineServiceVersionBuiltOn;
040  private String hadoopVersion;
041  private String hadoopBuildVersion;
042  private String hadoopVersionBuiltOn;
043
044  public TimelineAbout() {
045  }
046
047  public TimelineAbout(String about) {
048    this.about = about;
049  }
050
051  @XmlElement(name = "About")
052  public String getAbout() {
053    return about;
054  }
055
056  public void setAbout(String about) {
057    this.about = about;
058  }
059
060  @XmlElement(name = "timeline-service-version")
061  public String getTimelineServiceVersion() {
062    return timelineServiceVersion;
063  }
064
065  public void setTimelineServiceVersion(String timelineServiceVersion) {
066    this.timelineServiceVersion = timelineServiceVersion;
067  }
068
069  @XmlElement(name = "timeline-service-build-version")
070  public String getTimelineServiceBuildVersion() {
071    return timelineServiceBuildVersion;
072  }
073
074  public void setTimelineServiceBuildVersion(
075      String timelineServiceBuildVersion) {
076    this.timelineServiceBuildVersion = timelineServiceBuildVersion;
077  }
078
079  @XmlElement(name = "timeline-service-version-built-on")
080  public String getTimelineServiceVersionBuiltOn() {
081    return timelineServiceVersionBuiltOn;
082  }
083
084  public void setTimelineServiceVersionBuiltOn(
085      String timelineServiceVersionBuiltOn) {
086    this.timelineServiceVersionBuiltOn = timelineServiceVersionBuiltOn;
087  }
088
089  @XmlElement(name = "hadoop-version")
090  public String getHadoopVersion() {
091    return hadoopVersion;
092  }
093
094  public void setHadoopVersion(String hadoopVersion) {
095    this.hadoopVersion = hadoopVersion;
096  }
097
098  @XmlElement(name = "hadoop-build-version")
099  public String getHadoopBuildVersion() {
100    return hadoopBuildVersion;
101  }
102
103  public void setHadoopBuildVersion(String hadoopBuildVersion) {
104    this.hadoopBuildVersion = hadoopBuildVersion;
105  }
106
107  @XmlElement(name = "hadoop-version-built-on")
108  public String getHadoopVersionBuiltOn() {
109    return hadoopVersionBuiltOn;
110  }
111
112  public void setHadoopVersionBuiltOn(String hadoopVersionBuiltOn) {
113    this.hadoopVersionBuiltOn = hadoopVersionBuiltOn;
114  }
115}
116