Class RemoteTransformerClient
java.lang.Object
org.alfresco.repo.content.transform.RemoteTransformerClient
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
ConstructorsConstructorDescriptionRemoteTransformerClient(String name, String baseUrl, org.alfresco.httpclient.HttpClientConfig httpClientConfig) -
Method Summary
Modifier and TypeMethodDescriptioncheck(org.alfresco.util.exec.RuntimeExec checkCommand) Helper method that returns the same result type ascheck(Log)given a local checkCommand.check(org.apache.commons.logging.Log logger) 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).booleanvoidrequest(ContentReader reader, ContentWriter writer, String sourceMimetype, String sourceExtension, String targetExtension, long timeoutMs, org.apache.commons.logging.Log logger, String... args) voidsetStartupRetryPeriodSeconds(int startupRetryPeriodSeconds)
-
Constructor Details
-
RemoteTransformerClient
-
-
Method Details
-
setStartupRetryPeriodSeconds
public void setStartupRetryPeriodSeconds(int startupRetryPeriodSeconds) -
getBaseUrl
-
request
public void request(ContentReader reader, ContentWriter writer, String sourceMimetype, String sourceExtension, String targetExtension, long timeoutMs, org.apache.commons.logging.Log logger, String... args) -
check
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
Helper method that returns the same result type ascheck(Log)given a local checkCommand. -
isAvailable
public boolean isAvailable()
-