org.apache.falcon.service
Class SLAMonitoringService

java.lang.Object
  extended by org.apache.falcon.service.SLAMonitoringService
All Implemented Interfaces:
FalconService, WorkflowEngineActionListener

public class SLAMonitoringService
extends Object
implements FalconService, WorkflowEngineActionListener

A service implementation for SLA Monitoring.


Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
SLAMonitoringService()
           
 
Method Summary
 void afterDelete(Entity entity, String cluster)
           
 void afterResume(Entity entity, String cluster)
           
 void afterSchedule(Entity entity, String cluster)
           
 void afterSuspend(Entity entity, String cluster)
           
 void beforeDelete(Entity entity, String cluster)
           
 void beforeResume(Entity entity, String cluster)
           
 void beforeSchedule(Entity entity, String cluster)
           
 void beforeSuspend(Entity entity, String cluster)
           
 void destroy()
           
 String getName()
           
 void init()
           
 void notifyCompletion(Entity entity, String cluster, Date nominalTime, long duration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

SLAMonitoringService

public SLAMonitoringService()
Method Detail

getName

public String getName()
Specified by:
getName in interface FalconService

init

public void init()
          throws FalconException
Specified by:
init in interface FalconService
Throws:
FalconException

destroy

public void destroy()
             throws FalconException
Specified by:
destroy in interface FalconService
Throws:
FalconException

afterSchedule

public void afterSchedule(Entity entity,
                          String cluster)
                   throws FalconException
Specified by:
afterSchedule in interface WorkflowEngineActionListener
Throws:
FalconException

afterDelete

public void afterDelete(Entity entity,
                        String cluster)
                 throws FalconException
Specified by:
afterDelete in interface WorkflowEngineActionListener
Throws:
FalconException

afterSuspend

public void afterSuspend(Entity entity,
                         String cluster)
                  throws FalconException
Specified by:
afterSuspend in interface WorkflowEngineActionListener
Throws:
FalconException

afterResume

public void afterResume(Entity entity,
                        String cluster)
                 throws FalconException
Specified by:
afterResume in interface WorkflowEngineActionListener
Throws:
FalconException

notifyCompletion

public void notifyCompletion(Entity entity,
                             String cluster,
                             Date nominalTime,
                             long duration)

beforeSchedule

public void beforeSchedule(Entity entity,
                           String cluster)
                    throws FalconException
Specified by:
beforeSchedule in interface WorkflowEngineActionListener
Throws:
FalconException

beforeDelete

public void beforeDelete(Entity entity,
                         String cluster)
                  throws FalconException
Specified by:
beforeDelete in interface WorkflowEngineActionListener
Throws:
FalconException

beforeSuspend

public void beforeSuspend(Entity entity,
                          String cluster)
                   throws FalconException
Specified by:
beforeSuspend in interface WorkflowEngineActionListener
Throws:
FalconException

beforeResume

public void beforeResume(Entity entity,
                         String cluster)
                  throws FalconException
Specified by:
beforeResume in interface WorkflowEngineActionListener
Throws:
FalconException


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.