Class AbstractDistributionService
java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.distribution.api.AbstractDistributionService
- All Implemented Interfaces:
org.opencastproject.job.api.JobProducer
public abstract class AbstractDistributionService
extends org.opencastproject.job.api.AbstractJobProducer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe distribution channel for this serviceprotected FilePath to the distribution directoryprotected org.opencastproject.security.api.OrganizationDirectoryServiceThe organization directory serviceprotected org.opencastproject.security.api.SecurityServiceThe security serviceprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe remote service registryprotected Stringthis media download service's base URLprotected org.opencastproject.security.api.TrustedHttpClientprotected org.opencastproject.security.api.UserDirectoryServiceThe user directory serviceprotected org.opencastproject.workspace.api.WorkspaceThe workspace referenceFields inherited from class org.opencastproject.job.api.AbstractJobProducer
ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY, acceptJobLoadsExeedingMaxLoad, DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING, executor, jobType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opencastproject.security.api.OrganizationDirectoryServiceprotected org.opencastproject.security.api.SecurityServiceprotected org.opencastproject.serviceregistry.api.ServiceRegistryprotected org.opencastproject.security.api.TrustedHttpClientprotected org.opencastproject.security.api.UserDirectoryServicevoidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback for the OSGi environment to set the service registry reference.voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient httpClient) Callback for the OSGi environment to set the trusted http clientreference.voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace) Callback for the OSGi environment to set the workspace reference.Methods inherited from class org.opencastproject.job.api.AbstractJobProducer
acceptJob, activate, countJobs, finallyUpdateJob, getJobType, incident, isReadyToAccept, isReadyToAcceptJobs, process
-
Field Details
-
distributionDirectory
Path to the distribution directory -
serviceUrl
this media download service's base URL -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe remote service registry -
workspace
protected org.opencastproject.workspace.api.Workspace workspaceThe workspace reference -
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service -
userDirectoryService
protected org.opencastproject.security.api.UserDirectoryService userDirectoryServiceThe user directory service -
organizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryServiceThe organization directory service -
trustedHttpClient
protected org.opencastproject.security.api.TrustedHttpClient trustedHttpClient -
distributionChannel
The distribution channel for this service
-
-
Constructor Details
-
AbstractDistributionService
-
-
Method Details
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace) Callback for the OSGi environment to set the workspace reference.- Parameters:
workspace- the workspace
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback for the OSGi environment to set the service registry reference.- Parameters:
serviceRegistry- the service registry
-
getServiceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) Callback for setting the security service.- Parameters:
securityService- the securityService to set
-
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Callback for setting the user directory service.- Parameters:
userDirectoryService- the userDirectoryService to set
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory) Sets a reference to the organization directory service.- Parameters:
organizationDirectory- the organization directory
-
getSecurityService
protected org.opencastproject.security.api.SecurityService getSecurityService()- Specified by:
getSecurityServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
getUserDirectoryService
protected org.opencastproject.security.api.UserDirectoryService getUserDirectoryService()- Specified by:
getUserDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
getOrganizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService getOrganizationDirectoryService()- Specified by:
getOrganizationDirectoryServicein classorg.opencastproject.job.api.AbstractJobProducer- See Also:
-
setTrustedHttpClient
public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient httpClient) Callback for the OSGi environment to set the trusted http clientreference.- Parameters:
httpClient- the trusted http client
-
getTrustedHttpClient
protected org.opencastproject.security.api.TrustedHttpClient getTrustedHttpClient()
-