Class WaveformServiceRemote

java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.waveform.remote.WaveformServiceRemote
All Implemented Interfaces:
WaveformService

public class WaveformServiceRemote extends RemoteBase implements WaveformService
This is a remote waveform service that will call the waveform service implementation on a remote host.
  • Constructor Details

    • WaveformServiceRemote

      public WaveformServiceRemote()
      The default constructor.
  • Method Details

    • createWaveformImage

      public Job createWaveformImage(Track sourceTrack, int pixelsPerMinute, int minWidth, int maxWidth, int height, String color) throws MediaPackageException, WaveformServiceException
      Takes the given track and returns the job that will create an waveform image using a remote service.
      Specified by:
      createWaveformImage in interface WaveformService
      Parameters:
      sourceTrack - the track to create waveform image from
      pixelsPerMinute - the width of the waveform image in pixels per minute
      minWidth - the minimum width of the waveform image
      maxWidth - the maximum width of the waveform image
      height - the height of the waveform image
      color - the color of the waveform image
      Returns:
      a job that will create a waveform image
      Throws:
      MediaPackageException - if the serialization of the given track fails
      WaveformServiceException - if the job can't be created for any reason
    • setTrustedHttpClient

      public void setTrustedHttpClient(TrustedHttpClient trustedHttpClient)
      Description copied from class: RemoteBase
      Sets the trusted http client
      Overrides:
      setTrustedHttpClient in class RemoteBase
      Parameters:
      trustedHttpClient -
    • setRemoteServiceManager

      public void setRemoteServiceManager(ServiceRegistry serviceRegistry)
      Description copied from class: RemoteBase
      Sets the remote service manager.
      Overrides:
      setRemoteServiceManager in class RemoteBase
      Parameters:
      serviceRegistry -