@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 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 |
---|---|
String |
addJob(Hashtable properties,
Asset[] dependencies)
Deprecated.
Posts a job to the Sling job queue.
|
String |
addJob(Hashtable properties,
Asset[] dependencies,
String fileNameEncoding)
Deprecated.
Posts a job to the Sling job queue.
|
String |
getJobStatus(String jobId)
Deprecated.
Get job status as string, implementation decided on the format.
|
InputStream |
getResource(String jobId,
String resourcePath)
Deprecated.
Get a single resource associated with the given job, either local or
remote.
|
String |
getResult(String jobId)
Deprecated.
Get result as a string, implementation decides on the format.
|
int |
getStatus(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(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 String DAM_PROXY_JOB_NAME
String addJob(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
requestString addJob(Hashtable properties, Asset[] dependencies, 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(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 errorString getJobStatus(String jobId) throws ProxyException
jobId,
- for which status needs to be searchedProxyException
- in case of any errorString getResult(String jobId) throws ProxyException
jobId,
- for which the result needs to be readProxyException
- in case of any errorInputStream getResource(String jobId, String resourcePath) throws ProxyException
jobId,
- for which resource needs to be searchedresourcePath,
- to be searchedProxyException
- in case of any errorvoid removeJob(String jobId) throws ProxyException
jobId,
- for which the job needs to be removedProxyException
- if the job cannot be removed"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"