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