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