public class SLAService extends Object implements Service
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_ALERT_EVENTS |
static String |
CONF_CALCULATOR_IMPL |
static String |
CONF_CAPACITY |
static String |
CONF_EVENTS_MODIFIED_AFTER |
static String |
CONF_JOB_EVENT_LATENCY |
static String |
CONF_PREFIX |
static String |
CONF_SLA_CALC_LOCK_TIMEOUT |
static String |
CONF_SLA_CHECK_INITIAL_DELAY |
static String |
CONF_SLA_CHECK_INTERVAL |
static String |
CONF_SLA_HISTORY_PURGE_INTERVAL |
static XLog |
LOG |
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND| Constructor and Description |
|---|
SLAService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRegistrationEvent(SLARegistrationBean reg) |
boolean |
addStatusEvent(String jobId,
String status,
org.apache.oozie.client.event.JobEvent.EventStatus eventStatus,
Date startTime,
Date endTime) |
void |
destroy()
Destroy the service.
|
Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
SLACalculator |
getSLACalculator() |
void |
init(Services services)
Initialize the service.
|
static boolean |
isEnabled() |
void |
removeRegistration(String jobId) |
void |
runSLAWorker() |
boolean |
updateRegistrationEvent(SLARegistrationBean reg) |
public static final String CONF_PREFIX
public static final String CONF_CALCULATOR_IMPL
public static final String CONF_CAPACITY
public static final String CONF_ALERT_EVENTS
public static final String CONF_EVENTS_MODIFIED_AFTER
public static final String CONF_JOB_EVENT_LATENCY
public static final String CONF_SLA_CHECK_INTERVAL
public static final String CONF_SLA_CHECK_INITIAL_DELAY
public static final String CONF_SLA_CALC_LOCK_TIMEOUT
public static final String CONF_SLA_HISTORY_PURGE_INTERVAL
public SLAService()
public void init(Services services) throws ServiceException
ServiceService singleton at start up time.init in interface Serviceservices - services singleton initializing the service.ServiceException - thrown if the service could not initialize.public void destroy()
ServiceService singleton at shutdown time.public Class<? extends Service> getInterface()
ServicegetInterface in interface Servicepublic static boolean isEnabled()
public SLACalculator getSLACalculator()
public void runSLAWorker()
public boolean addRegistrationEvent(SLARegistrationBean reg) throws ServiceException
ServiceExceptionpublic boolean updateRegistrationEvent(SLARegistrationBean reg) throws ServiceException
ServiceExceptionpublic boolean addStatusEvent(String jobId, String status, org.apache.oozie.client.event.JobEvent.EventStatus eventStatus, Date startTime, Date endTime) throws ServiceException
ServiceExceptionpublic void removeRegistration(String jobId)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.