public class JobFailureCollector extends Object implements CommandContextListener
Modifier and Type | Field and Description |
---|---|
protected String |
failedActivityId |
protected Throwable |
failure |
protected JobEntity |
job |
protected String |
jobId |
Constructor and Description |
---|
JobFailureCollector(String jobId) |
Modifier and Type | Method and Description |
---|---|
String |
getFailedActivityId() |
Throwable |
getFailure() |
JobEntity |
getJob() |
String |
getJobId() |
void |
onCommandContextClose(CommandContext commandContext) |
void |
onCommandFailed(CommandContext commandContext,
Throwable t) |
void |
setFailedActivityId(String activityId) |
void |
setFailure(Throwable failure) |
void |
setJob(JobEntity job) |
protected Throwable failure
protected JobEntity job
protected String jobId
protected String failedActivityId
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()
public String getFailedActivityId()
public void setFailedActivityId(String activityId)
Copyright © 2021. All rights reserved.