public class SLAOperations extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALERT_EVENTS |
static String |
ALL_VALUE |
static XLog |
LOG |
static String |
MAX_DURATION |
static String |
NOMINAL_TIME |
static String |
SHOULD_END |
static String |
SHOULD_START |
Constructor and Description |
---|
SLAOperations() |
Modifier and Type | Method and Description |
---|---|
static SLARegistrationBean |
createSlaRegistrationEvent(org.jdom.Element eSla,
String jobId,
AppType appType,
String user,
String appName,
XLog log) |
static SLARegistrationBean |
createSlaRegistrationEvent(org.jdom.Element eSla,
String jobId,
AppType appType,
String user,
XLog log) |
static SLARegistrationBean |
createSlaRegistrationEvent(org.jdom.Element eSla,
String jobId,
String parentId,
AppType appType,
String user,
String appName,
XLog log,
boolean rerun) |
static SLARegistrationBean |
createSlaRegistrationEvent(org.jdom.Element eSla,
String jobId,
String parentId,
AppType appType,
String user,
String appName,
XLog log,
boolean rerun,
boolean disableAlert) |
static SLARegistrationBean |
createSlaRegistrationEvent(org.jdom.Element eSla,
String jobId,
String parentId,
AppType appType,
String user,
XLog log) |
static String |
getTagElement(org.jdom.Element elem,
String tagName) |
static void |
setExpectedDuration(String expectedDurationStr,
SLARegistrationBean sla) |
static void |
setExpectedEnd(String strExpectedEnd,
Date nominalTime,
SLARegistrationBean sla) |
static void |
setExpectedStart(String strExpectedStart,
Date nominalTime,
SLARegistrationBean sla) |
static Date |
setNominalTime(String strNominalTime,
SLARegistrationBean sla) |
static void |
updateRegistrationEvent(String jobId)
Retrieve registration event
|
public static final String NOMINAL_TIME
public static final String SHOULD_START
public static final String SHOULD_END
public static final String MAX_DURATION
public static final String ALERT_EVENTS
public static final String ALL_VALUE
public SLAOperations()
public static SLARegistrationBean createSlaRegistrationEvent(org.jdom.Element eSla, String jobId, String parentId, AppType appType, String user, String appName, XLog log, boolean rerun, boolean disableAlert) throws CommandException
CommandException
public static Date setNominalTime(String strNominalTime, SLARegistrationBean sla) throws CommandException
CommandException
public static void setExpectedStart(String strExpectedStart, Date nominalTime, SLARegistrationBean sla) throws CommandException
CommandException
public static void setExpectedEnd(String strExpectedEnd, Date nominalTime, SLARegistrationBean sla) throws CommandException
CommandException
public static void setExpectedDuration(String expectedDurationStr, SLARegistrationBean sla)
public static void updateRegistrationEvent(String jobId) throws CommandException, JPAExecutorException
jobId
- the jobIdCommandException
JPAExecutorException
public static SLARegistrationBean createSlaRegistrationEvent(org.jdom.Element eSla, String jobId, AppType appType, String user, String appName, XLog log) throws CommandException
CommandException
public static SLARegistrationBean createSlaRegistrationEvent(org.jdom.Element eSla, String jobId, String parentId, AppType appType, String user, XLog log) throws CommandException
CommandException
public static SLARegistrationBean createSlaRegistrationEvent(org.jdom.Element eSla, String jobId, AppType appType, String user, XLog log) throws CommandException
CommandException
public static SLARegistrationBean createSlaRegistrationEvent(org.jdom.Element eSla, String jobId, String parentId, AppType appType, String user, String appName, XLog log, boolean rerun) throws CommandException
CommandException
public static String getTagElement(org.jdom.Element elem, String tagName)
Copyright © 2018 Apache Software Foundation. All rights reserved.