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    enum Status {
035        CREATED, STARTED, SUCCEEDED, KILLED, FAILED
036    }
037
038    /**
039     * Defines the possible status of an SLA events.
040     */
041    enum SlaAppType {
042        COORDINATOR_ACTION, COORDINATOR_JOB, WORKFLOW_JOB, WORKFLOW_ACTION
043    }
044
045    long getEvent_id();
046
047    String getSlaId();
048
049    SlaAppType getAppType();
050
051    String getAppName();
052
053    String getUser();
054
055    String getGroupName();
056
057    String getParentClientId();
058
059    String getParentSlaId();
060
061    Date getExpectedStart();
062
063    Date getExpectedEnd();
064
065    Date getStatusTimestamp();
066
067    String getNotificationMsg();
068
069    String getAlertContact();
070
071    String getDevContact();
072
073    String getQaContact();
074
075    String getSeContact();
076
077    String getAlertFrequency();
078
079    String getAlertPercentage();
080
081    String getUpstreamApps();
082
083    Status getJobStatus();
084
085    String getJobData();
086
087}