@ApplicationScoped public class JobResultManager extends Object
| Constructor and Description |
|---|
JobResultManager() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getItemFromRequestInput(String itemName,
org.kie.api.executor.RequestInfo requestInfo) |
protected Object |
getItemFromRequestOutput(String itemName,
org.kie.api.executor.RequestInfo requestInfo) |
JaxbDeploymentJobResult |
getJob(String jobId)
Get a job using the job's unique id
|
void |
putJob(String jobId,
JaxbDeploymentJobResult job,
JobType jobType)
Add a job to the cache
|
void |
start()
Initialization method to initialize the 2 caches that hold the job result information.
|
@PostConstruct public void start()
public void putJob(String jobId, JaxbDeploymentJobResult job, JobType jobType)
jobId - The unique id of the job (unique to the kie-services-remote code)job - The job to cachejobType - The job type, for logging purposespublic JaxbDeploymentJobResult getJob(String jobId)
jobId - The job idJaxbDeploymentJobResult instanceprotected Object getItemFromRequestInput(String itemName, org.kie.api.executor.RequestInfo requestInfo)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.