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, serviceTypeFields inherited from interface org.opencastproject.timelinepreviews.api.TimelinePreviewsService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.JobcreateTimelinePreviewImages(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.voidsetRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient) Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest
-
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:
createTimelinePreviewImagesin interfaceorg.opencastproject.timelinepreviews.api.TimelinePreviewsService- Parameters:
sourceTrack- the track to create preview images fromimageCount- 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 failsorg.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:
setTrustedHttpClientin classorg.opencastproject.serviceregistry.api.RemoteBase
-
setRemoteServiceManager
public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) - Overrides:
setRemoteServiceManagerin classorg.opencastproject.serviceregistry.api.RemoteBase
-