001    /**
002     * Copyright (c) 2010 Yahoo! Inc. All rights reserved.
003     * Licensed under the Apache License, Version 2.0 (the "License");
004     * you may not use this file except in compliance with the License.
005     * You may obtain a copy of the License at
006     *
007     *   http://www.apache.org/licenses/LICENSE-2.0
008     *
009     *  Unless required by applicable law or agreed to in writing, software
010     *  distributed under the License is distributed on an "AS IS" BASIS,
011     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012     *  See the License for the specific language governing permissions and
013     *  limitations under the License. See accompanying LICENSE file.
014     */
015    package org.apache.oozie.coord;
016    
017    import java.util.Date;
018    import java.util.TimeZone;
019    
020    /**
021     * This class is a bean to represent a dataset.
022     */
023    public class SyncCoordDataset {
024        protected String name;
025        protected String type;
026        protected int frequency;
027        private TimeUnit timeUnit;
028        private TimeZone timeZone;
029        private TimeUnit endOfDuration; // End of Month or End of Days
030        protected Date initInstance;
031        protected String uriTemplate;
032        protected String doneFlag;
033    
034        /**
035         * @return the name
036         */
037        public String getDoneFlag() {
038            return doneFlag;
039        }
040    
041        /**
042         * @param name the name to set
043         */
044        public void setDoneFlag(String doneFlag) {
045            this.doneFlag = doneFlag;
046        }
047    
048        /**
049         * @return the name
050         */
051        public String getName() {
052            return name;
053        }
054    
055        /**
056         * @param name the name to set
057         */
058        public void setName(String name) {
059            this.name = name;
060        }
061    
062        /**
063         * @return the frequency
064         */
065        public int getFrequency() {
066            return frequency;
067        }
068    
069        /**
070         * @param frequency the frequency to set
071         */
072        public void setFrequency(int frequency) {
073            this.frequency = frequency;
074        }
075    
076        /**
077         * @return the uriTemplate
078         */
079        public String getUriTemplate() {
080            return uriTemplate;
081        }
082    
083        /**
084         * @param uriTemplate the uriTemplate to set
085         */
086        public void setUriTemplate(String uriTemplate) {
087            this.uriTemplate = uriTemplate;
088        }
089    
090        /**
091         * @return the type
092         */
093        public String getType() {
094            return type;
095        }
096    
097        /**
098         * @param type the type to set
099         */
100        public void setType(String type) {
101            this.type = type;
102        }
103    
104        public TimeUnit getTimeUnit() {
105            return timeUnit;
106        }
107    
108        public void setTimeUnit(TimeUnit timeUnit) {
109            this.timeUnit = timeUnit;
110        }
111    
112        public Date getInitInstance() {
113            return initInstance;
114        }
115    
116        public void setInitInstance(Date initInstance) {
117            this.initInstance = initInstance;
118        }
119    
120        public TimeZone getTimeZone() {
121            return timeZone;
122        }
123    
124        public void setTimeZone(TimeZone timeZone) {
125            this.timeZone = timeZone;
126        }
127    
128        public TimeUnit getEndOfDuration() {
129            return endOfDuration;
130        }
131    
132        public void setEndOfDuration(TimeUnit endOfDuration) {
133            this.endOfDuration = endOfDuration;
134        }
135    
136    }