Class ComposerServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.composer.remote.ComposerServiceRemoteImpl
- All Implemented Interfaces:
org.opencastproject.composer.api.ComposerService
public class ComposerServiceRemoteImpl
extends org.opencastproject.serviceregistry.api.RemoteBase
implements org.opencastproject.composer.api.ComposerService
Proxies a set of remote composer services for use as a JVM-local service. Remote services are selected at random.
-
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, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.composer.api.ComposerService
AUDIO_ONLY, BOTH, JOB_TYPE, LOWER, UPPER, VIDEO_ONLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildTimeArray(double[] times) Builds string containing times in seconds separated by comma.org.opencastproject.job.api.Jobcomposite(org.opencastproject.composer.layout.Dimension compositeTrackSize, org.opencastproject.util.data.Option<org.opencastproject.composer.api.LaidOutElement<org.opencastproject.mediapackage.Track>> upperTrack, org.opencastproject.composer.api.LaidOutElement<org.opencastproject.mediapackage.Track> lowerTrack, org.opencastproject.util.data.Option<org.opencastproject.composer.api.LaidOutElement<org.opencastproject.mediapackage.Attachment>> watermark, String profileId, String background, String sourceAudioName) org.opencastproject.job.api.Jobconcat(String profileId, org.opencastproject.composer.layout.Dimension outputDimension, boolean sameCodec, org.opencastproject.mediapackage.Track... tracks) org.opencastproject.job.api.Jobconcat(String profileId, org.opencastproject.composer.layout.Dimension outputDimension, float outputFrameRate, boolean sameCodec, org.opencastproject.mediapackage.Track... tracks) org.opencastproject.job.api.JobconvertImage(org.opencastproject.mediapackage.Attachment image, String... profileIds) List<org.opencastproject.mediapackage.Attachment> convertImageSync(org.opencastproject.mediapackage.Attachment image, String... profileIds) org.opencastproject.job.api.Joborg.opencastproject.job.api.Joborg.opencastproject.composer.api.EncodingProfilegetProfile(String profileId) org.opencastproject.job.api.Joborg.opencastproject.job.api.Jobimage(org.opencastproject.mediapackage.Track sourceTrack, String profileId, Map<String, String> properties) List<org.opencastproject.mediapackage.Attachment> org.opencastproject.job.api.JobimageToVideo(org.opencastproject.mediapackage.Attachment sourceImageAttachment, String profileId, double time) org.opencastproject.composer.api.EncodingProfile[]org.opencastproject.job.api.JobmultiEncode(org.opencastproject.mediapackage.Track sourceTrack, List<String> profileIds) org.opencastproject.job.api.Jobmux(org.opencastproject.mediapackage.Track sourceVideoTrack, org.opencastproject.mediapackage.Track sourceAudioTrack, String profileId) org.opencastproject.job.api.JobparallelEncode(org.opencastproject.mediapackage.Track sourceTrack, String profileId) org.opencastproject.job.api.JobprocessSmil(org.opencastproject.smil.entity.api.Smil smil, String trackParamGroupId, String mediaType, List<String> profileIds) voidsetRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager) Sets the remote service manager.voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client) Sets the trusted http clientorg.opencastproject.job.api.JobMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
Constructor Details
-
ComposerServiceRemoteImpl
public ComposerServiceRemoteImpl()
-
-
Method Details
-
setTrustedHttpClient
public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client) Sets the trusted http client- Overrides:
setTrustedHttpClientin classorg.opencastproject.serviceregistry.api.RemoteBase- Parameters:
client-
-
setRemoteServiceManager
public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager) Sets the remote service manager.- Overrides:
setRemoteServiceManagerin classorg.opencastproject.serviceregistry.api.RemoteBase- Parameters:
remoteServiceManager-
-
encode
public org.opencastproject.job.api.Job encode(org.opencastproject.mediapackage.Track sourceTrack, String profileId) throws org.opencastproject.composer.api.EncoderException - Specified by:
encodein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderException- See Also:
-
parallelEncode
public org.opencastproject.job.api.Job parallelEncode(org.opencastproject.mediapackage.Track sourceTrack, String profileId) throws org.opencastproject.composer.api.EncoderException - Specified by:
parallelEncodein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderException
-
trim
public org.opencastproject.job.api.Job trim(org.opencastproject.mediapackage.Track sourceTrack, String profileId, long start, long duration) throws org.opencastproject.composer.api.EncoderException - Specified by:
trimin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderException- See Also:
-
mux
public org.opencastproject.job.api.Job mux(org.opencastproject.mediapackage.Track sourceVideoTrack, org.opencastproject.mediapackage.Track sourceAudioTrack, String profileId) throws org.opencastproject.composer.api.EncoderException - Specified by:
muxin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderException- See Also:
-
getProfile
- Specified by:
getProfilein interfaceorg.opencastproject.composer.api.ComposerService- See Also:
-
image
public org.opencastproject.job.api.Job image(org.opencastproject.mediapackage.Track sourceTrack, String profileId, double... times) throws org.opencastproject.composer.api.EncoderException - Specified by:
imagein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderException
-
imageSync
public List<org.opencastproject.mediapackage.Attachment> imageSync(org.opencastproject.mediapackage.Track sourceTrack, String profileId, double... times) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
imageSyncin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
image
public org.opencastproject.job.api.Job image(org.opencastproject.mediapackage.Track sourceTrack, String profileId, Map<String, String> properties) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException- Specified by:
imagein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
convertImage
public org.opencastproject.job.api.Job convertImage(org.opencastproject.mediapackage.Attachment image, String... profileIds) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
convertImagein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
convertImageSync
public List<org.opencastproject.mediapackage.Attachment> convertImageSync(org.opencastproject.mediapackage.Attachment image, String... profileIds) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
convertImageSyncin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
listProfiles
public org.opencastproject.composer.api.EncodingProfile[] listProfiles()- Specified by:
listProfilesin interfaceorg.opencastproject.composer.api.ComposerService- See Also:
-
buildTimeArray
Builds string containing times in seconds separated by comma.- Parameters:
times- time array to be converted to string- Returns:
- string represented specified time array
-
composite
public org.opencastproject.job.api.Job composite(org.opencastproject.composer.layout.Dimension compositeTrackSize, org.opencastproject.util.data.Option<org.opencastproject.composer.api.LaidOutElement<org.opencastproject.mediapackage.Track>> upperTrack, org.opencastproject.composer.api.LaidOutElement<org.opencastproject.mediapackage.Track> lowerTrack, org.opencastproject.util.data.Option<org.opencastproject.composer.api.LaidOutElement<org.opencastproject.mediapackage.Attachment>> watermark, String profileId, String background, String sourceAudioName) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
compositein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
concat
public org.opencastproject.job.api.Job concat(String profileId, org.opencastproject.composer.layout.Dimension outputDimension, boolean sameCodec, org.opencastproject.mediapackage.Track... tracks) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
concatin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
concat
public org.opencastproject.job.api.Job concat(String profileId, org.opencastproject.composer.layout.Dimension outputDimension, float outputFrameRate, boolean sameCodec, org.opencastproject.mediapackage.Track... tracks) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
concatin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
imageToVideo
public org.opencastproject.job.api.Job imageToVideo(org.opencastproject.mediapackage.Attachment sourceImageAttachment, String profileId, double time) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
imageToVideoin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
demux
public org.opencastproject.job.api.Job demux(org.opencastproject.mediapackage.Track sourceTrack, String profileId) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
demuxin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
processSmil
public org.opencastproject.job.api.Job processSmil(org.opencastproject.smil.entity.api.Smil smil, String trackParamGroupId, String mediaType, List<String> profileIds) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
processSmilin interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-
multiEncode
public org.opencastproject.job.api.Job multiEncode(org.opencastproject.mediapackage.Track sourceTrack, List<String> profileIds) throws org.opencastproject.composer.api.EncoderException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
multiEncodein interfaceorg.opencastproject.composer.api.ComposerService- Throws:
org.opencastproject.composer.api.EncoderExceptionorg.opencastproject.mediapackage.MediaPackageException
-