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 */ 018package org.apache.oozie.client; 019 020import java.util.Date; 021 022@Deprecated 023/** 024 * Bean that represents a SLA event 025 * @deprecated This interface has been deprecated by the abstract class 026 * org.apache.oozie.client.event.SLAEvent designed for the new SLA Calculator system OOZIE-1244 027 */ 028public interface SLAEvent { 029 030 /** 031 * Defines the possible status of an SLA events or Job status for SLA events. 032 */ 033 public static enum Status { 034 CREATED, STARTED, SUCCEEDED, KILLED, FAILED 035 } 036 037 /** 038 * Defines the possible status of an SLA events. 039 */ 040 public static enum SlaAppType { 041 COORDINATOR_ACTION, COORDINATOR_JOB, WORKFLOW_JOB, WORKFLOW_ACTION 042 } 043 044 public long getEvent_id(); 045 046 public String getSlaId(); 047 048 public SlaAppType getAppType(); 049 050 public String getAppName(); 051 052 public String getUser(); 053 054 public String getGroupName(); 055 056 public String getParentClientId(); 057 058 public String getParentSlaId(); 059 060 public Date getExpectedStart(); 061 062 public Date getExpectedEnd(); 063 064 public Date getStatusTimestamp(); 065 066 public String getNotificationMsg(); 067 068 public String getAlertContact(); 069 070 public String getDevContact(); 071 072 public String getQaContact(); 073 074 public String getSeContact(); 075 076 public String getAlertFrequency(); 077 078 public String getAlertPercentage(); 079 080 public String getUpstreamApps(); 081 082 public Status getJobStatus(); 083 084 public String getJobData(); 085 086}