Class JobFailureCollector
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.JobFailureCollector
-
- All Implemented Interfaces:
CommandContextListener
public class JobFailureCollector extends java.lang.Object implements CommandContextListener
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
failedActivityId
protected java.lang.Throwable
failure
protected JobEntity
job
protected java.lang.String
jobId
-
Constructor Summary
Constructors Constructor Description JobFailureCollector(java.lang.String jobId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFailedActivityId()
java.lang.Throwable
getFailure()
JobEntity
getJob()
java.lang.String
getJobId()
void
onCommandContextClose(CommandContext commandContext)
void
onCommandFailed(CommandContext commandContext, java.lang.Throwable t)
void
setFailedActivityId(java.lang.String activityId)
void
setFailure(java.lang.Throwable failure)
void
setJob(JobEntity job)
-
-
-
Field Detail
-
failure
protected java.lang.Throwable failure
-
job
protected JobEntity job
-
jobId
protected java.lang.String jobId
-
failedActivityId
protected java.lang.String failedActivityId
-
-
Method Detail
-
setFailure
public void setFailure(java.lang.Throwable failure)
-
getFailure
public java.lang.Throwable getFailure()
-
onCommandFailed
public void onCommandFailed(CommandContext commandContext, java.lang.Throwable t)
- Specified by:
onCommandFailed
in interfaceCommandContextListener
-
onCommandContextClose
public void onCommandContextClose(CommandContext commandContext)
- Specified by:
onCommandContextClose
in interfaceCommandContextListener
-
setJob
public void setJob(JobEntity job)
-
getJob
public JobEntity getJob()
-
getJobId
public java.lang.String getJobId()
-
getFailedActivityId
public java.lang.String getFailedActivityId()
-
setFailedActivityId
public void setFailedActivityId(java.lang.String activityId)
-
-