public class JobFailureCollector extends Object implements CommandContextListener
| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
failure |
protected JobEntity |
job |
protected String |
jobId |
| Constructor and Description |
|---|
JobFailureCollector(String jobId) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getFailure() |
JobEntity |
getJob() |
String |
getJobId() |
void |
onCommandContextClose(CommandContext commandContext) |
void |
onCommandFailed(CommandContext commandContext,
Throwable t) |
void |
setFailure(Throwable failure) |
void |
setJob(JobEntity job) |
protected Throwable failure
protected JobEntity job
protected String jobId
public JobFailureCollector(String jobId)
public void setFailure(Throwable failure)
public Throwable getFailure()
public void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed in interface CommandContextListenerpublic void onCommandContextClose(CommandContext commandContext)
onCommandContextClose in interface CommandContextListenerpublic void setJob(JobEntity job)
public JobEntity getJob()
public String getJobId()
Copyright © 2022. All rights reserved.