|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobManager
The JobManager
interface enables you to interact with the Job Manager service.
For example, you can use a this class when invoking a long-lived process, you get back an identifier
value that is used to obtain the status of the
long-lived process. To obtain the status of an long-lived process, you must use this class. For
information about invoking a long-lived process, see Invoking LiveCycle ES.
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
---|---|
void |
completeJob(JobId jobId,
InvocationResponse response)
Completes an existing job using the specified InvocationResponse object. |
JobId |
createJob(InvocationRequest request,
boolean persistent)
For internal use only. |
void |
disposeJob(JobId jobId)
Dispose of the job identified by the specified job identifier, and reclaim all of its associated resources. |
void |
faultJob(JobId jobId,
com.adobe.idp.dsc.FaultResponse faultResponse)
Fails an existing job using the specified FaultResponse object. |
com.adobe.idp.dsc.FaultResponse |
getFaultResponse(JobId jobId)
Returns a FaultResponse object of a failed job that is specified by the job identifier. |
java.util.List |
getJobInstances(com.adobe.idp.dsc.filter.PagingFilter aPagingFilter)
Return a list of JobInstance
in the system. |
InvocationResponse |
getResponse(JobId jobId)
Returns the InvocationResponse object
of a completed job identified by the specified job identifier. |
JobStatus |
getStatus(JobId jobId)
Returns the current status of the job that is specified by the specified job identifier value. |
void |
resumeJob(JobId jobId)
Resume a suspended job identified by the specified job identifier. |
void |
suspendJob(JobId jobId)
Suspends an existing job identified by the specified job identifier. |
void |
terminateJob(JobId jobId)
Terminates an existing job specified by the specified job identifier. |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
Method Detail |
---|
JobId createJob(InvocationRequest request, boolean persistent) throws JobManagerException
Creates a new asynchronous job using the specified InvocationRequest
object.
request
- A valid InvocationRequest
object.persistent
- A Boolean value where the value false results in the job instance not being persisted.
JobId
object that represents the unique job identifier of the request.
JobManagerException
- if an error occurs during this request.JobStatus getStatus(JobId jobId) throws JobManagerException
A
- JobId
object that represents the job identifier value.
JobStatus
object that corresponds to the job identifier value.
JobNotFoundException
- if the job specified by specified job identifier value does not exist.
JobManagerException
- if an error occurs during this request.InvocationResponse getResponse(JobId jobId) throws JobManagerException
InvocationResponse
object
of a completed job identified by the specified job identifier.
A
- JobId
that represents the completed job.
InvocationResponse
object that corresponds to the request.
JobNotFoundException
- if the job specified by job identifier does not exist.
JobManagerException
- if an error occurs during this request.com.adobe.idp.dsc.FaultResponse getFaultResponse(JobId jobId) throws JobManagerException
FaultResponse
object of a failed job that is specified by the job identifier.
jobId
- A JobId
that specifies the identifer of the failed job.
FaultResponse
object of a failed job.
JobManagerException
- if an error occurs during this request.void faultJob(JobId jobId, com.adobe.idp.dsc.FaultResponse faultResponse) throws JobManagerException
FaultResponse
object.
jobId
- A JobId
object that specifies the identifer of the failed job.faultResponse
- A FaultResponse
object of a failed job.
JobManagerException
- if an error occurs during this request.void completeJob(JobId jobId, InvocationResponse response) throws JobManagerException
InvocationResponse
object.
jobId
- A JobId
object that specifies the job to complete.response
- A InvocationResponse
object.
JobManagerException
- if an error occurs during this request.void terminateJob(JobId jobId) throws JobManagerException
jobId
- A JobId
object that specifies the job to terminate.
JobManagerException
- if an error occurs during this request.void suspendJob(JobId jobId) throws JobManagerException
jobId
- A JobId
object that specifies the job to suspend.
JobManagerException
- if an error occurs during this request.void resumeJob(JobId jobId) throws JobManagerException
jobId
- A JobId
object that specifies the job to resume
JobManagerException
- if an error occurs during this request.void disposeJob(JobId jobId) throws JobManagerException
jobId
- A JobId
object that specifies the job to dispose
JobManagerException
- if an error occurs during this request.java.util.List getJobInstances(com.adobe.idp.dsc.filter.PagingFilter aPagingFilter) throws JobManagerException
JobInstance
in the system.
aPagingFilter
- a result set filter which defines the start offset, the max
size, and the sorted order of the return list.
JobManagerException
- if an error occurs during this request.JobInstance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |