org.apache.oozie.sla
Interface SLACalculator

All Known Implementing Classes:
SLACalculatorMemory

public interface SLACalculator


Method Summary
 boolean addJobStatus(String jobId, String jobStatus, org.apache.oozie.client.event.JobEvent.EventStatus jobEventStatus, Date startTime, Date endTime)
           
 boolean addRegistration(String jobId, SLARegistrationBean reg)
           
 void clear()
           
 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)
           
 

Method Detail

init

void init(org.apache.hadoop.conf.Configuration conf)
          throws ServiceException
Throws:
ServiceException

size

int size()

iterator

Iterator<String> iterator()

isEmpty

boolean isEmpty()

addRegistration

boolean addRegistration(String jobId,
                        SLARegistrationBean reg)
                        throws JPAExecutorException
Throws:
JPAExecutorException

updateRegistration

boolean updateRegistration(String jobId,
                           SLARegistrationBean reg)
                           throws JPAExecutorException
Throws:
JPAExecutorException

removeRegistration

void removeRegistration(String jobId)

addJobStatus

boolean addJobStatus(String jobId,
                     String jobStatus,
                     org.apache.oozie.client.event.JobEvent.EventStatus jobEventStatus,
                     Date startTime,
                     Date endTime)
                     throws JPAExecutorException,
                            ServiceException
Throws:
JPAExecutorException
ServiceException

updateAllSlaStatus

void updateAllSlaStatus()

clear

void clear()

get

SLACalcStatus get(String jobId)
                  throws JPAExecutorException
Throws:
JPAExecutorException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.