|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.sla.SLACalculatorMemory
public class SLACalculatorMemory
Implementation class for SLACalculator that calculates SLA related to start/end/duration of jobs using a memory-based map
| Constructor Summary | |
|---|---|
SLACalculatorMemory()
|
|
| Method Summary | |
|---|---|
boolean |
addJobStatus(String jobId,
String jobStatus,
org.apache.oozie.client.event.JobEvent.EventStatus jobEventStatus,
Date startTime,
Date endTime)
Triggered after receiving Job status change event, update SLA status accordingly |
boolean |
addRegistration(String jobId,
SLARegistrationBean reg)
Register a new job into the map for SLA tracking |
void |
clear()
|
SLACalcStatus |
get(String jobId)
|
void |
init(org.apache.hadoop.conf.Configuration conf)
|
boolean |
isEmpty()
|
Iterator<String> |
iterator()
|
void |
removeRegistration(String jobId)
Remove job from being tracked in map |
int |
size()
|
void |
updateAllSlaStatus()
Periodically run by the SLAService worker threads to update SLA status by iterating through all the jobs in the map |
protected void |
updateJobSla(String jobId)
Invoked via periodic run, update the SLA for registered jobs |
boolean |
updateRegistration(String jobId,
SLARegistrationBean reg)
Update job into the map for SLA tracking |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SLACalculatorMemory()
| Method Detail |
|---|
public void init(org.apache.hadoop.conf.Configuration conf)
throws ServiceException
init in interface SLACalculatorServiceExceptionpublic int size()
size in interface SLACalculator
public SLACalcStatus get(String jobId)
throws JPAExecutorException
get in interface SLACalculatorJPAExecutorExceptionpublic Iterator<String> iterator()
iterator in interface SLACalculatorpublic boolean isEmpty()
isEmpty in interface SLACalculatorpublic void clear()
clear in interface SLACalculator
protected void updateJobSla(String jobId)
throws JPAExecutorException,
ServiceException
JPAExecutorException
ServiceExceptionpublic void updateAllSlaStatus()
updateAllSlaStatus in interface SLACalculator
public boolean addRegistration(String jobId,
SLARegistrationBean reg)
throws JPAExecutorException
addRegistration in interface SLACalculatorJPAExecutorException
public boolean updateRegistration(String jobId,
SLARegistrationBean reg)
throws JPAExecutorException
updateRegistration in interface SLACalculatorJPAExecutorExceptionpublic void removeRegistration(String jobId)
removeRegistration in interface SLACalculator
public boolean addJobStatus(String jobId,
String jobStatus,
org.apache.oozie.client.event.JobEvent.EventStatus jobEventStatus,
Date startTime,
Date endTime)
throws JPAExecutorException,
ServiceException
addJobStatus in interface SLACalculatorJPAExecutorException
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||