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

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The distribution channel for this service
    protected File
    Path to the distribution directory
    protected org.opencastproject.security.api.OrganizationDirectoryService
    The organization directory service
    protected org.opencastproject.security.api.SecurityService
    The security service
    protected org.opencastproject.serviceregistry.api.ServiceRegistry
    The remote service registry
    protected String
    this media download service's base URL
    protected org.opencastproject.security.api.TrustedHttpClient
     
    protected org.opencastproject.security.api.UserDirectoryService
    The user directory service
    protected org.opencastproject.workspace.api.Workspace
    The workspace reference

    Fields inherited from class org.opencastproject.job.api.AbstractJobProducer

    ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY, acceptJobLoadsExeedingMaxLoad, DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING, executor, jobType
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.opencastproject.security.api.OrganizationDirectoryService
    protected org.opencastproject.security.api.SecurityService
    protected org.opencastproject.serviceregistry.api.ServiceRegistry
    protected org.opencastproject.security.api.TrustedHttpClient
     
    protected org.opencastproject.security.api.UserDirectoryService
    void
    setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectory)
    Sets a reference to the organization directory service.
    void
    setSecurityService(org.opencastproject.security.api.SecurityService securityService)
    Callback for setting the security service.
    void
    setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
    Callback for the OSGi environment to set the service registry reference.
    void
    setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient httpClient)
    Callback for the OSGi environment to set the trusted http clientreference.
    void
    setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService)
    Callback for setting the user directory service.
    void
    setWorkspace(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • distributionDirectory

      protected File distributionDirectory
      Path to the distribution directory
    • serviceUrl

      protected String serviceUrl
      this media download service's base URL
    • serviceRegistry

      protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry
      The remote service registry
    • workspace

      protected org.opencastproject.workspace.api.Workspace workspace
      The workspace reference
    • securityService

      protected org.opencastproject.security.api.SecurityService securityService
      The security service
    • userDirectoryService

      protected org.opencastproject.security.api.UserDirectoryService userDirectoryService
      The user directory service
    • organizationDirectoryService

      protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService
      The organization directory service
    • trustedHttpClient

      protected org.opencastproject.security.api.TrustedHttpClient trustedHttpClient
    • distributionChannel

      protected String distributionChannel
      The distribution channel for this service
  • Constructor Details

    • AbstractDistributionService

      protected AbstractDistributionService(String jobType)
  • 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:
      getServiceRegistry in class org.opencastproject.job.api.AbstractJobProducer
      See Also:
      • AbstractJobProducer.getServiceRegistry()
    • 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:
      getSecurityService in class org.opencastproject.job.api.AbstractJobProducer
      See Also:
      • AbstractJobProducer.getSecurityService()
    • getUserDirectoryService

      protected org.opencastproject.security.api.UserDirectoryService getUserDirectoryService()
      Specified by:
      getUserDirectoryService in class org.opencastproject.job.api.AbstractJobProducer
      See Also:
      • AbstractJobProducer.getUserDirectoryService()
    • getOrganizationDirectoryService

      protected org.opencastproject.security.api.OrganizationDirectoryService getOrganizationDirectoryService()
      Specified by:
      getOrganizationDirectoryService in class org.opencastproject.job.api.AbstractJobProducer
      See Also:
      • AbstractJobProducer.getOrganizationDirectoryService()
    • 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()