|
KIE Remote Services :: Services 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kie.remote.services.rest.async.JobResultManager
@ApplicationScoped public class JobResultManager
This class caches the job result information in order to provide it upon request (so that users can check the status of a deployment or undeployment job).
| Constructor Summary | |
|---|---|
JobResultManager()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobResultManager()
| Method Detail |
|---|
@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 id
JaxbDeploymentJobResult instancepublic JaxbDeploymentJobResult getMostRecentJob(String deploymentId)
deploymentId - The id of the deployment
JaxbDeploymentJobResult with the job information
|
KIE Remote Services :: Services 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||