Class TerminationStateServiceImpl
java.lang.Object
org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
org.opencastproject.terminationstate.impl.TerminationStateServiceImpl
- All Implemented Interfaces:
TerminationStateService
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opencastproject.terminationstate.api.TerminationStateService
TerminationStateService.TerminationState -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext componentContext) protected voidconfigure(Dictionary config) voidOSGI deactivate callbackprotected voidsetScheduler(org.quartz.Scheduler scheduler) Methods below are used by test classvoidsetServiceRegistry(ServiceRegistry serviceRegistry) OSGI dependency injection of service registryvoidprotected voidprotected voidMethods inherited from class org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
countJobs, getServiceRegistry, getState, readyToTerminate
-
Field Details
-
CONFIG_JOB_POLLING_PERIOD
- See Also:
-
SCHEDULE_GROUP
-
SCHEDULE_JOB_POLLING_TRIGGER
- See Also:
-
-
Constructor Details
-
TerminationStateServiceImpl
public TerminationStateServiceImpl()
-
-
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
-
startJobPolling
protected void startJobPolling() -
stopJobPolling
protected void stopJobPolling() -
deactivate
public void deactivate()OSGI deactivate callback -
setScheduler
protected void setScheduler(org.quartz.Scheduler scheduler) Methods below are used by test class -
setServiceRegistry
Description copied from class:AbstractJobTerminationStateServiceOSGI dependency injection of service registry- Overrides:
setServiceRegistryin classAbstractJobTerminationStateService- Parameters:
serviceRegistry- ServiceRegistry instance
-