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