Class TimelinePreviewsServiceRemote

java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.timelinepreviews.remote.TimelinePreviewsServiceRemote
All Implemented Interfaces:
org.opencastproject.timelinepreviews.api.TimelinePreviewsService

public class TimelinePreviewsServiceRemote extends org.opencastproject.serviceregistry.api.RemoteBase implements org.opencastproject.timelinepreviews.api.TimelinePreviewsService
This is a remote timeline previews service that will call the timeline previews service implementation on a remote host.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    org.opencastproject.serviceregistry.api.RemoteBase.HttpClientClosingInputStream
  • Field Summary

    Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    client, remoteServiceManager, serviceType

    Fields inherited from interface org.opencastproject.timelinepreviews.api.TimelinePreviewsService

    JOB_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    The default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencastproject.job.api.Job
    createTimelinePreviewImages(org.opencastproject.mediapackage.Track sourceTrack, int imageCount)
    Takes the given track and returns the job that will create timeline preview images using a remote service.
    void
    setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
     
    void
    setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient)
     

    Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest

    Methods inherited from class java.lang.Object

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

    • TimelinePreviewsServiceRemote

      public TimelinePreviewsServiceRemote()
      The default constructor.
  • Method Details

    • createTimelinePreviewImages

      public org.opencastproject.job.api.Job createTimelinePreviewImages(org.opencastproject.mediapackage.Track sourceTrack, int imageCount) throws org.opencastproject.mediapackage.MediaPackageException, org.opencastproject.timelinepreviews.api.TimelinePreviewsException
      Takes the given track and returns the job that will create timeline preview images using a remote service.
      Specified by:
      createTimelinePreviewImages in interface org.opencastproject.timelinepreviews.api.TimelinePreviewsService
      Parameters:
      sourceTrack - the track to create preview images from
      imageCount - number of preview images that will be generated
      Returns:
      a job that will create timeline preview images
      Throws:
      org.opencastproject.mediapackage.MediaPackageException - if the serialization of the given track fails
      org.opencastproject.timelinepreviews.api.TimelinePreviewsException - if the job can't be created for any reason
    • setTrustedHttpClient

      public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient)
      Overrides:
      setTrustedHttpClient in class org.opencastproject.serviceregistry.api.RemoteBase
    • setRemoteServiceManager

      public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
      Overrides:
      setRemoteServiceManager in class org.opencastproject.serviceregistry.api.RemoteBase