Class LocalFailoverTransform
- java.lang.Object
-
- org.alfresco.repo.content.transform.AbstractLocalTransform
-
- org.alfresco.repo.content.transform.LocalFailoverTransform
-
- All Implemented Interfaces:
LocalTransform
public class LocalFailoverTransform extends AbstractLocalTransform
Transformer that passes a document to a sequence of transforms until one succeeds. Instances are automatically created for transformers identified by alfresco/transform json files and returned from T-Engines which are themselves identified by global properties the match the pattern localTransform.<name>.url. The transforms take place in a separate process (typically a Docker container).
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.content.transform.AbstractLocalTransform
log, mimetypeService, name, transformerDebug, transformsTransformOptionNames
-
-
Constructor Summary
Constructors Constructor Description LocalFailoverTransform(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String,Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.client.model.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStepTransformer(LocalTransform stepTransformer)booleanisAvailable()protected voidtransformImpl(ContentReader reader, ContentWriter writer, Map<String,String> transformOptions, String sourceMimetype, String targetMimetype, String sourceExtension, String targetExtension, String renditionName, NodeRef sourceNodeRef)-
Methods inherited from class org.alfresco.repo.content.transform.AbstractLocalTransform
getName, getStrippedTransformOptions, getTransformsTransformOptionNames, transform
-
-
-
-
Constructor Detail
-
LocalFailoverTransform
public LocalFailoverTransform(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String,Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.client.model.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry)
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailablein classAbstractLocalTransform
-
addStepTransformer
public void addStepTransformer(LocalTransform stepTransformer)
-
transformImpl
protected void transformImpl(ContentReader reader, ContentWriter writer, Map<String,String> transformOptions, String sourceMimetype, String targetMimetype, String sourceExtension, String targetExtension, String renditionName, NodeRef sourceNodeRef)
- Specified by:
transformImplin classAbstractLocalTransform
-
-