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