@Deprecated
public interface JobService
JobService Interface defines methods to add/remove job and to
get status and result of an existing job
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DAM_PROXY_JOB_NAME
Deprecated.
This property defines the uniquie jobID for the proxy job.
|
static int |
STATUS_ERROR
Deprecated.
|
static int |
STATUS_FINISHED
Deprecated.
|
static int |
STATUS_INPROGRESS
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addJob(java.util.Hashtable properties,
Asset[] dependencies)
Deprecated.
Posts a job to the Sling job queue.
|
java.lang.String |
addJob(java.util.Hashtable properties,
Asset[] dependencies,
java.lang.String fileNameEncoding)
Deprecated.
Posts a job to the Sling job queue.
|
java.lang.String |
getJobStatus(java.lang.String jobId)
Deprecated.
Get job status as string, implementation decided on the format.
|
java.io.InputStream |
getResource(java.lang.String jobId,
java.lang.String resourcePath)
Deprecated.
Get a single resource associated with the given job, either local or
remote.
|
java.lang.String |
getResult(java.lang.String jobId)
Deprecated.
Get result as a string, implementation decides on the format.
|
int |
getStatus(java.lang.String jobId)
Deprecated.
As of release 5.6, replaced by
#getJobStatus()
Get job status. Depending on the implementation, this will either search
for the jobs in local or remote queue. |
void |
removeJob(java.lang.String jobId)
Deprecated.
Remove job and cleanup all related resources for the given job.
|
static final int STATUS_INPROGRESS
static final int STATUS_FINISHED
static final int STATUS_ERROR
static final java.lang.String DAM_PROXY_JOB_NAME
java.lang.String addJob(java.util.Hashtable properties,
Asset[] dependencies)
throws ProxyException
properties, - serializable properties to be added to the jobdependencies, - array or asset(s) to be attached to the jobProxyException - in case implementation is unable to process this
requestjava.lang.String addJob(java.util.Hashtable properties,
Asset[] dependencies,
java.lang.String fileNameEncoding)
throws ProxyException
properties, - serializable properties to be added to the jobdependencies, - array or asset(s) to be attached to the jobfileNameEncoding, - encoding scheme name for the filenameProxyException - in case implementation is unable to process this
request@Deprecated
int getStatus(java.lang.String jobId)
throws ProxyException
#getJobStatus()
Get job status. Depending on the implementation, this will either search
for the jobs in local or remote queue.jobId, - for which status needs to be searchedProxyException - in case of any errorjava.lang.String getJobStatus(java.lang.String jobId)
throws ProxyException
jobId, - for which status needs to be searchedProxyException - in case of any errorjava.lang.String getResult(java.lang.String jobId)
throws ProxyException
jobId, - for which the result needs to be readProxyException - in case of any errorjava.io.InputStream getResource(java.lang.String jobId,
java.lang.String resourcePath)
throws ProxyException
jobId, - for which resource needs to be searchedresourcePath, - to be searchedProxyException - in case of any errorvoid removeJob(java.lang.String jobId)
throws ProxyException
jobId, - for which the job needs to be removedProxyException - if the job cannot be removed"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"