Class AutoScalingTerminationStateService

java.lang.Object
org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
org.opencastproject.terminationstate.aws.AutoScalingTerminationStateService
All Implemented Interfaces:
org.opencastproject.terminationstate.api.TerminationStateService

public final class AutoScalingTerminationStateService extends org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
  • Field Details

  • Constructor Details

    • AutoScalingTerminationStateService

      public AutoScalingTerminationStateService()
  • Method Details

    • activate

      protected void activate(org.osgi.service.component.ComponentContext componentContext)
    • configure

      protected void configure(Dictionary config) throws org.osgi.service.cm.ConfigurationException
      Throws:
      org.osgi.service.cm.ConfigurationException
    • setState

      public void setState(org.opencastproject.terminationstate.api.TerminationStateService.TerminationState state)
      Specified by:
      setState in interface org.opencastproject.terminationstate.api.TerminationStateService
      Overrides:
      setState in class org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
    • startPollingLifeCycleHook

      protected void startPollingLifeCycleHook()
    • stopPollingLifeCycleHook

      protected void stopPollingLifeCycleHook()
    • startPollingTerminationState

      protected void startPollingTerminationState()
    • stopPollingTerminationState

      protected void stopPollingTerminationState()
    • deactivate

      public void deactivate()
      OSGI deactivate callback
    • setAutoScaling

      protected void setAutoScaling(com.amazonaws.services.autoscaling.AmazonAutoScaling autoScaling)
      Methods below are used by test class
    • setAutoScalingGroup

      protected void setAutoScalingGroup(com.amazonaws.services.autoscaling.model.AutoScalingGroup autoScalingGroup)
    • setLifecycleHook

      protected void setLifecycleHook(com.amazonaws.services.autoscaling.model.LifecycleHook lifecycleHook)
    • setScheduler

      protected void setScheduler(org.quartz.Scheduler scheduler)
    • setServiceRegistry

      public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
      Overrides:
      setServiceRegistry in class org.opencastproject.terminationstate.api.AbstractJobTerminationStateService