@ApplicationScoped public class JobResultManager extends Object
| Constructor and Description |
|---|
JobResultManager() |
| Modifier and Type | Method and Description |
|---|---|
JaxbDeploymentJobResult |
getJob(String jobId)
Get a job using the job's unique id
|
JaxbDeploymentJobResult |
getMostRecentJob(String deploymentId)
Get the most recent job requested for a given deployment
|
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 instancepublic JaxbDeploymentJobResult getMostRecentJob(String deploymentId)
deploymentId - The id of the deploymentJaxbDeploymentJobResult with the job informationCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.