Class TerminationStateServiceImpl
java.lang.Object
org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
org.opencastproject.terminationstate.impl.TerminationStateServiceImpl
- All Implemented Interfaces:
org.opencastproject.terminationstate.api.TerminationStateService
public final class TerminationStateServiceImpl
extends org.opencastproject.terminationstate.api.AbstractJobTerminationStateService
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opencastproject.terminationstate.api.TerminationStateService
org.opencastproject.terminationstate.api.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(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetState(org.opencastproject.terminationstate.api.TerminationStateService.TerminationState state) protected 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
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
-
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
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) - Overrides:
setServiceRegistryin classorg.opencastproject.terminationstate.api.AbstractJobTerminationStateService
-