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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.opencastproject.terminationstate.api.TerminationStateService
org.opencastproject.terminationstate.api.TerminationStateService.TerminationState -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext componentContext) protected voidconfigure(Dictionary config) voidOSGI deactivate callbackprotected voidsetAutoScaling(com.amazonaws.services.autoscaling.AmazonAutoScaling autoScaling) Methods below are used by test classprotected voidsetAutoScalingGroup(com.amazonaws.services.autoscaling.model.AutoScalingGroup autoScalingGroup) protected voidsetLifecycleHook(com.amazonaws.services.autoscaling.model.LifecycleHook lifecycleHook) protected voidsetScheduler(org.quartz.Scheduler scheduler) voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetState(org.opencastproject.terminationstate.api.TerminationStateService.TerminationState state) protected voidprotected voidprotected voidprotected voidMethods inherited from class org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
countJobs, getServiceRegistry, getState, readyToTerminate
-
Field Details
-
CONFIG_ENABLE
- See Also:
-
CONFIG_LIFECYCLE_POLLING_ENABLE
- See Also:
-
CONFIG_LIFECYCLE_POLLING_PERIOD
- See Also:
-
CONFIG_LIFECYCLE_HEARTBEAT_PERIOD
- See Also:
-
CONFIG_AWS_ACCESS_KEY_ID
- See Also:
-
CONFIG_AWS_SECRET_ACCESS_KEY
- See Also:
-
SCHEDULE_GROUP
-
SCHEDULE_LIFECYCLE_POLLING_JOB
- See Also:
-
SCHEDULE_LIFECYCLE_HEARTBEAT_JOB
- See Also:
-
SCHEDULE_LIFECYCLE_POLLING_TRIGGER
- See Also:
-
SCHEDULE_LIFECYCLE_HEARTBEAT_TRIGGER
- See Also:
-
SCHEDULE_JOB_PARAM_PARENT
- See Also:
-
-
Constructor Details
-
AutoScalingTerminationStateService
public AutoScalingTerminationStateService()
-
-
Method Details
-
activate
protected void activate(org.osgi.service.component.ComponentContext componentContext) -
configure
- Throws:
org.osgi.service.cm.ConfigurationException
-
setState
public void setState(org.opencastproject.terminationstate.api.TerminationStateService.TerminationState state) - Specified by:
setStatein interfaceorg.opencastproject.terminationstate.api.TerminationStateService- Overrides:
setStatein classorg.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:
setServiceRegistryin classorg.opencastproject.terminationstate.api.AbstractJobTerminationStateService
-