Class WaveformServiceRemote
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.waveform.remote.WaveformServiceRemote
- All Implemented Interfaces:
WaveformService
This is a remote waveform service that will call the waveform service implementation on a remote host.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.waveform.api.WaveformService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWaveformImage(Track sourceTrack, int pixelsPerMinute, int minWidth, int maxWidth, int height, String color) Takes the given track and returns the job that will create an waveform image using a remote service.voidsetRemoteServiceManager(ServiceRegistry serviceRegistry) Sets the remote service manager.voidsetTrustedHttpClient(TrustedHttpClient trustedHttpClient) Sets the trusted http clientMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest
-
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:
createWaveformImagein interfaceWaveformService- Parameters:
sourceTrack- the track to create waveform image frompixelsPerMinute- the width of the waveform image in pixels per minuteminWidth- the minimum width of the waveform imagemaxWidth- the maximum width of the waveform imageheight- the height of the waveform imagecolor- the color of the waveform image- Returns:
- a job that will create a waveform image
- Throws:
MediaPackageException- if the serialization of the given track failsWaveformServiceException- if the job can't be created for any reason
-
setTrustedHttpClient
Description copied from class:RemoteBaseSets the trusted http client- Overrides:
setTrustedHttpClientin classRemoteBase- Parameters:
trustedHttpClient-
-
setRemoteServiceManager
Description copied from class:RemoteBaseSets the remote service manager.- Overrides:
setRemoteServiceManagerin classRemoteBase- Parameters:
serviceRegistry-
-