Class AutoScalingTerminationStateService
java.lang.Object
org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
org.opencastproject.terminationstate.aws.AutoScalingTerminationStateService
- All Implemented Interfaces:
TerminationStateService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.opencastproject.terminationstate.api.TerminationStateService
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(ServiceRegistry serviceRegistry) OSGI dependency injection of service registryvoidprotected 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
Description copied from class:AbstractJobTerminationStateService- Specified by:
setStatein interfaceTerminationStateService- Overrides:
setStatein classAbstractJobTerminationStateService
-
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
Description copied from class:AbstractJobTerminationStateServiceOSGI dependency injection of service registry- Overrides:
setServiceRegistryin classAbstractJobTerminationStateService- Parameters:
serviceRegistry- ServiceRegistry instance
-