Class RemoteTransformerClient
- java.lang.Object
-
- org.alfresco.repo.content.transform.RemoteTransformerClient
-
@Deprecated public class RemoteTransformerClient extends Object
Deprecated.The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Client class that transfers content (from a ContentReader) to a remote transformation agent together with request parameters that will be used to transform the content. The transformed content is then returned and saved in a ContentWriter. In the event of an error an Exception is thrown.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description RemoteTransformerClient(String name, String baseUrl)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.alfresco.util.Pair<Boolean,String>check(org.alfresco.util.exec.RuntimeExec checkCommand)Deprecated.Helper method that returns the same result type ascheck(Log)given a local checkCommand.org.alfresco.util.Pair<Boolean,String>check(org.apache.commons.logging.Log logger)Deprecated.Indicates if a remote transform: a) ready probe has ever indicated successnew Pair<>(true, <version string>), b) a ready probe has just failednew Pair<>(false, <error string>), or c) we are not performing a ready check as we have just done onenew Pair<>(null, null).StringgetBaseUrl()Deprecated.booleanisAvailable()Deprecated.voidrequest(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer, String sourceMimetype, String sourceExtension, String targetExtension, long timeoutMs, org.apache.commons.logging.Log logger, String... args)Deprecated.voidsetStartupRetryPeriodSeconds(int startupRetryPeriodSeconds)Deprecated.
-
-
-
Method Detail
-
setStartupRetryPeriodSeconds
public void setStartupRetryPeriodSeconds(int startupRetryPeriodSeconds)
Deprecated.
-
getBaseUrl
public String getBaseUrl()
Deprecated.
-
request
public void request(org.alfresco.service.cmr.repository.ContentReader reader, org.alfresco.service.cmr.repository.ContentWriter writer, String sourceMimetype, String sourceExtension, String targetExtension, long timeoutMs, org.apache.commons.logging.Log logger, String... args) throws IllegalAccessExceptionDeprecated.- Throws:
IllegalAccessException
-
check
public org.alfresco.util.Pair<Boolean,String> check(org.apache.commons.logging.Log logger)
Deprecated.Indicates if a remote transform: a) ready probe has ever indicated successnew Pair<>(true, <version string>), b) a ready probe has just failednew Pair<>(false, <error string>), or c) we are not performing a ready check as we have just done onenew Pair<>(null, null).
-
check
public static org.alfresco.util.Pair<Boolean,String> check(org.alfresco.util.exec.RuntimeExec checkCommand)
Deprecated.Helper method that returns the same result type ascheck(Log)given a local checkCommand.
-
isAvailable
public boolean isAvailable()
Deprecated.
-
-