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; 023import org.apache.oozie.coord.input.dependency.CoordInputDependency; 024 025/** 026 * This class represents a Coordinator action. 027 */ 028public class SyncCoordAction { 029 private String actionId; 030 private String name; 031 private Date nominalTime; 032 private Date actualTime; 033 private TimeZone timeZone; 034 private String frequency; 035 private TimeUnit timeUnit; 036 private TimeUnit endOfDuration; // End of Month or End of Days 037 038 private CoordInputDependency pullDependencies; 039 private CoordInputDependency pushDependencies; 040 041 042 public String getActionId() { 043 return this.actionId; 044 } 045 046 public void setActionId(String id) { 047 this.actionId = id; 048 } 049 050 public String getName() { 051 return name; 052 } 053 054 public void setName(String name) { 055 this.name = name; 056 } 057 058 public TimeZone getTimeZone() { 059 return timeZone; 060 } 061 062 public void setTimeZone(TimeZone timeZone) { 063 this.timeZone = timeZone; 064 } 065 066 public String getFrequency() { 067 return frequency; 068 } 069 070 public void setFrequency(String frequency) { 071 this.frequency = frequency; 072 } 073 074 public TimeUnit getTimeUnit() { 075 return timeUnit; 076 } 077 078 public void setTimeUnit(TimeUnit timeUnit) { 079 this.timeUnit = timeUnit; 080 } 081 082 /** 083 * @return the nominalTime 084 */ 085 public Date getNominalTime() { 086 return nominalTime; 087 } 088 089 /** 090 * @param nominalTime the nominalTime to set 091 */ 092 public void setNominalTime(Date nominalTime) { 093 this.nominalTime = nominalTime; 094 } 095 096 /** 097 * @return the actualTime 098 */ 099 public Date getActualTime() { 100 return actualTime; 101 } 102 103 /** 104 * @param actualTime the actualTime to set 105 */ 106 public void setActualTime(Date actualTime) { 107 this.actualTime = actualTime; 108 } 109 110 public TimeUnit getEndOfDuration() { 111 return endOfDuration; 112 } 113 114 public void setEndOfDuration(TimeUnit endOfDuration) { 115 this.endOfDuration = endOfDuration; 116 } 117 118 public CoordInputDependency getPullDependencies() { 119 return pullDependencies; 120 } 121 122 public void setPullDependencies(CoordInputDependency pullDependencies) { 123 this.pullDependencies = pullDependencies; 124 } 125 126 public CoordInputDependency getPushDependencies() { 127 return pushDependencies; 128 } 129 130 public void setPushDependencies(CoordInputDependency pushDependencies) { 131 this.pushDependencies = pushDependencies; 132 } 133 134 135}