public interface SLACalculator
| Modifier and Type | Method and Description |
|---|---|
boolean |
addJobStatus(String jobId,
String jobStatus,
JobEvent.EventStatus jobEventStatus,
Date startTime,
Date endTime) |
boolean |
addRegistration(String jobId,
SLARegistrationBean reg) |
boolean |
changeDefinition(List<Pair<String,Map<String,String>>> jobIdsSLAPair)
Change jobs Sla definitions
It takes list of pairs of jobid and key/value pairs of el evaluated sla definition.
|
void |
clear() |
boolean |
disableAlert(List<String> jobId)
Disable jobs Sla alert.
|
boolean |
disableChildJobAlert(List<String> parentJobIds)
Disable Sla alert for child jobs.
|
boolean |
enableAlert(List<String> jobId)
Enable jobs sla alert.
|
boolean |
enableChildJobAlert(List<String> parentJobIds)
Enable sla alert for child jobs.
|
SLACalcStatus |
get(String jobId) |
void |
init(org.apache.hadoop.conf.Configuration conf) |
boolean |
isEmpty() |
Iterator<String> |
iterator() |
void |
removeRegistration(String jobId) |
int |
size() |
void |
updateAllSlaStatus() |
boolean |
updateRegistration(String jobId,
SLARegistrationBean reg) |
void init(org.apache.hadoop.conf.Configuration conf) throws ServiceException
ServiceExceptionint size()
boolean isEmpty()
boolean addRegistration(String jobId, SLARegistrationBean reg) throws JPAExecutorException
JPAExecutorExceptionboolean updateRegistration(String jobId, SLARegistrationBean reg) throws JPAExecutorException
JPAExecutorExceptionvoid removeRegistration(String jobId)
boolean addJobStatus(String jobId, String jobStatus, JobEvent.EventStatus jobEventStatus, Date startTime, Date endTime) throws JPAExecutorException, ServiceException
JPAExecutorExceptionServiceExceptionvoid updateAllSlaStatus()
void clear()
SLACalcStatus get(String jobId) throws JPAExecutorException
JPAExecutorExceptionboolean enableAlert(List<String> jobId) throws JPAExecutorException, ServiceException
jobId - the job idsJPAExecutorException - the JPA executor exceptionServiceException - the service exceptionboolean enableChildJobAlert(List<String> parentJobIds) throws JPAExecutorException, ServiceException
parentJobIds - the parent job idsJPAExecutorExceptionServiceExceptionboolean disableAlert(List<String> jobId) throws JPAExecutorException, ServiceException
jobId - the job idsJPAExecutorException - the JPA executor exceptionServiceException - the service exceptionboolean disableChildJobAlert(List<String> parentJobIds) throws JPAExecutorException, ServiceException
parentJobIds - the parent job idsJPAExecutorExceptionServiceExceptionboolean changeDefinition(List<Pair<String,Map<String,String>>> jobIdsSLAPair) throws JPAExecutorException, ServiceException
jobIdsSLAPair - the job ids sla pairJPAExecutorException - the JPA executor exceptionServiceException - the service exceptionCopyright © 2018 Apache Software Foundation. All rights reserved.