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.oozie.coord;
020
021import java.util.Date;
022import java.util.TimeZone;
023
024/**
025 * This class is a bean to represent a dataset.
026 */
027public class SyncCoordDataset {
028    protected String name;
029    protected String type;
030    protected int frequency;
031    private TimeUnit timeUnit;
032    private TimeZone timeZone;
033    private TimeUnit endOfDuration; // End of Month or End of Days
034    protected Date initInstance;
035    protected String uriTemplate;
036    protected String doneFlag;
037
038    /**
039     * @return the name
040     */
041    public String getDoneFlag() {
042        return doneFlag;
043    }
044
045    /**
046     * @param doneFlag the name to set
047     */
048    public void setDoneFlag(String doneFlag) {
049        this.doneFlag = doneFlag;
050    }
051
052    /**
053     * @return the name
054     */
055    public String getName() {
056        return name;
057    }
058
059    /**
060     * @param name the name to set
061     */
062    public void setName(String name) {
063        this.name = name;
064    }
065
066    /**
067     * @return the frequency
068     */
069    public int getFrequency() {
070        return frequency;
071    }
072
073    /**
074     * @param frequency the frequency to set
075     */
076    public void setFrequency(int frequency) {
077        this.frequency = frequency;
078    }
079
080    /**
081     * @return the uriTemplate
082     */
083    public String getUriTemplate() {
084        return uriTemplate;
085    }
086
087    /**
088     * @param uriTemplate the uriTemplate to set
089     */
090    public void setUriTemplate(String uriTemplate) {
091        this.uriTemplate = uriTemplate;
092    }
093
094    /**
095     * @return the type
096     */
097    public String getType() {
098        return type;
099    }
100
101    /**
102     * @param type the type to set
103     */
104    public void setType(String type) {
105        this.type = type;
106    }
107
108    public TimeUnit getTimeUnit() {
109        return timeUnit;
110    }
111
112    public void setTimeUnit(TimeUnit timeUnit) {
113        this.timeUnit = timeUnit;
114    }
115
116    public Date getInitInstance() {
117        return initInstance;
118    }
119
120    public void setInitInstance(Date initInstance) {
121        this.initInstance = initInstance;
122    }
123
124    public TimeZone getTimeZone() {
125        return timeZone;
126    }
127
128    public void setTimeZone(TimeZone timeZone) {
129        this.timeZone = timeZone;
130    }
131
132    public TimeUnit getEndOfDuration() {
133        return endOfDuration;
134    }
135
136    public void setEndOfDuration(TimeUnit endOfDuration) {
137        this.endOfDuration = endOfDuration;
138    }
139
140}