Class JobDispatcher
java.lang.Object
org.opencastproject.serviceregistry.impl.JobDispatcher
This dispatcher implementation will check for jobs in the QUEUED
Job.Status. If
new jobs are found, the dispatcher will attempt to dispatch each job to the least loaded service.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.db.DBSessionprotected org.opencastproject.db.DBSessionFactoryThe dispatcher priority listprotected static final StringConfiguration key for the dispatch interval, in secondsstatic final StringJPA persistence unit nameprotected ScheduledThreadPoolExecutorThe thread pool to use for dispatching. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) voidmodified(org.osgi.service.component.ComponentContext cc) voidsetDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) OSGi DIvoidupdated(Dictionary properties)
-
Field Details
-
PERSISTENCE_UNIT
JPA persistence unit name- See Also:
-
OPT_DISPATCHINTERVAL
Configuration key for the dispatch interval, in seconds- See Also:
-
scheduledExecutor
The thread pool to use for dispatching. -
dbSessionFactory
protected org.opencastproject.db.DBSessionFactory dbSessionFactory -
db
protected org.opencastproject.db.DBSession db -
dispatchPriorityList
The dispatcher priority list
-
-
Constructor Details
-
JobDispatcher
public JobDispatcher()
-
-
Method Details
-
setDBSessionFactory
public void setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) OSGi DI -
activate
public void activate(org.osgi.service.component.ComponentContext cc) throws org.osgi.service.cm.ConfigurationException - Throws:
org.osgi.service.cm.ConfigurationException
-
modified
public void modified(org.osgi.service.component.ComponentContext cc) throws org.osgi.service.cm.ConfigurationException - Throws:
org.osgi.service.cm.ConfigurationException
-
updated
- See Also:
-