|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.idp.jobmanager.client.JobManagerServiceClient com.adobe.idp.jobmanager.client.JobManager
public class JobManager
The JobManager
class is the primary class for interacting 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 Adobe Experience Manager forms.
JobManager
Field Summary |
---|
Fields inherited from interface com.adobe.idp.jobmanager.service.JobManager |
---|
SERVICE_NAME |
Constructor Summary | |
---|---|
JobManager(ServiceClientFactory serviceClientFactory)
Creates a JobManager object using the provided ServiceClientFactory object. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobManager(ServiceClientFactory serviceClientFactory)
JobManager
object using the provided ServiceClientFactory
object.
serviceClientFactory
- A valid ServiceClientFactory
object.Method Detail |
---|
public JobId createJob(InvocationRequest request, boolean persistent) throws JobManagerException
Creates a new asynchronous job using the specified InvocationRequest
object.
createJob
in interface JobManager
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.public JobStatus getStatus(JobId jobId) throws JobManagerException
getStatus
in interface JobManager
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.public InvocationResponse getResponse(JobId jobId) throws JobManagerException
InvocationResponse
object of a completed job identified by the specified job identifier.
getResponse
in interface JobManager
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.public com.adobe.idp.dsc.FaultResponse getFaultResponse(JobId jobId) throws JobManagerException
FaultResponse
object of a failed job that is specified by the job identifier.
getFaultResponse
in interface JobManager
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.public void faultJob(JobId jobId, com.adobe.idp.dsc.FaultResponse faultResponse) throws JobManagerException
FaultResponse
object.
faultJob
in interface JobManager
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.public void completeJob(JobId jobId, InvocationResponse response) throws JobManagerException
InvocationResponse
object.
completeJob
in interface JobManager
jobId
- A JobId
object that specifies the job to complete.response
- A InvocationResponse
object.
JobManagerException
- if an error occurs during this request.public void terminateJob(JobId jobId) throws JobManagerException
terminateJob
in interface JobManager
jobId
- A JobId
object that specifies the job to terminate.
JobManagerException
- if an error occurs during this request.public void suspendJob(JobId jobId) throws JobManagerException
suspendJob
in interface JobManager
jobId
- A JobId
object that specifies the job to suspend.
JobManagerException
- if an error occurs during this request.public void resumeJob(JobId jobId) throws JobManagerException
resumeJob
in interface JobManager
jobId
- A JobId
object that specifies the job to resume
JobManagerException
- if an error occurs during this request.public void disposeJob(JobId jobId) throws JobManagerException
disposeJob
in interface JobManager
jobId
- A JobId
object that specifies the job to dispose
JobManagerException
- if an error occurs during this request.public java.util.List getJobInstances(com.adobe.idp.dsc.filter.PagingFilter aPagingFilter) throws JobManagerException
JobInstance
in the system.
getJobInstances
in interface JobManager
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 |