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 represents a Coordinator action.
022 */
023 public class SyncCoordAction {
024 private String actionId;
025 private String name;
026 private Date nominalTime;
027 private Date actualTime;
028 private TimeZone timeZone;
029 private int frequency;
030 private TimeUnit timeUnit;
031 private TimeUnit endOfDuration; // End of Month or End of Days
032
033 public String getActionId() {
034 return this.actionId;
035 }
036
037 public void setActionId(String id) {
038 this.actionId = id;
039 }
040
041 public String getName() {
042 return name;
043 }
044
045 public void setName(String name) {
046 this.name = name;
047 }
048
049 public TimeZone getTimeZone() {
050 return timeZone;
051 }
052
053 public void setTimeZone(TimeZone timeZone) {
054 this.timeZone = timeZone;
055 }
056
057 public int getFrequency() {
058 return frequency;
059 }
060
061 public void setFrequency(int frequency) {
062 this.frequency = frequency;
063 }
064
065 public TimeUnit getTimeUnit() {
066 return timeUnit;
067 }
068
069 public void setTimeUnit(TimeUnit timeUnit) {
070 this.timeUnit = timeUnit;
071 }
072
073 /**
074 * @return the nominalTime
075 */
076 public Date getNominalTime() {
077 return nominalTime;
078 }
079
080 /**
081 * @param nominalTime the nominalTime to set
082 */
083 public void setNominalTime(Date nominalTime) {
084 this.nominalTime = nominalTime;
085 }
086
087 /**
088 * @return the actualTime
089 */
090 public Date getActualTime() {
091 return actualTime;
092 }
093
094 /**
095 * @param actualTime the actualTime to set
096 */
097 public void setActualTime(Date actualTime) {
098 this.actualTime = actualTime;
099 }
100
101 public TimeUnit getEndOfDuration() {
102 return endOfDuration;
103 }
104
105 public void setEndOfDuration(TimeUnit endOfDuration) {
106 this.endOfDuration = endOfDuration;
107 }
108
109 }