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 CommandContextListener
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose
in interface CommandContextListener
public void setJob(JobEntity job)
public JobEntity getJob()
public String getJobId()
Copyright © 2020. All rights reserved.