org.apache.oozie.util.db
Class SLADbXOperations

java.lang.Object
  extended by org.apache.oozie.util.db.SLADbXOperations

public class SLADbXOperations
extends Object


Field Summary
static String CLIENT_ID_TAG
           
 
Constructor Summary
SLADbXOperations()
           
 
Method Summary
static SLAEventBean createSlaRegistrationEvent(org.jdom.Element eSla, String slaId, org.apache.oozie.client.SLAEvent.SlaAppType appType, String user, String groupName)
          Create SLA registration event
static SLAEventBean createSlaStatusEvent(String id, org.apache.oozie.client.SLAEvent.Status status, org.apache.oozie.client.SLAEvent.SlaAppType appType)
          Create SLA status event
static SLAEventBean createStatusEvent(String slaXml, String id, org.apache.oozie.client.SLAEvent.Status stat, org.apache.oozie.client.SLAEvent.SlaAppType appType)
          Create SLA status event
static String getClientId()
          Return client id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_ID_TAG

public static final String CLIENT_ID_TAG
See Also:
Constant Field Values
Constructor Detail

SLADbXOperations

public SLADbXOperations()
Method Detail

createSlaRegistrationEvent

public static SLAEventBean createSlaRegistrationEvent(org.jdom.Element eSla,
                                                      String slaId,
                                                      org.apache.oozie.client.SLAEvent.SlaAppType appType,
                                                      String user,
                                                      String groupName)
                                               throws Exception
Create SLA registration event

Parameters:
eSla - SLA xml element
slaId - SLA Id
appType - SLA app type
user - user name
groupName - group name
Throws:
Exception

createSlaStatusEvent

public static SLAEventBean createSlaStatusEvent(String id,
                                                org.apache.oozie.client.SLAEvent.Status status,
                                                org.apache.oozie.client.SLAEvent.SlaAppType appType)
                                         throws Exception
Create SLA status event

Parameters:
id - SLA Id
status - SLA status
appType - SLA app type
Throws:
Exception

createStatusEvent

public static SLAEventBean createStatusEvent(String slaXml,
                                             String id,
                                             org.apache.oozie.client.SLAEvent.Status stat,
                                             org.apache.oozie.client.SLAEvent.SlaAppType appType)
                                      throws CommandException
Create SLA status event

Parameters:
slaXml - SLA xml element
id - SLA Id
stat - SLA status
appType - SLA app type
Throws:
CommandException

getClientId

public static String getClientId()
Return client id

Returns:
client id


Copyright © 2013 Apache Software Foundation. All Rights Reserved.