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.StringfailedActivityIdprotected java.lang.Throwablefailureprotected JobEntityjobprotected java.lang.StringjobId
-
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.StringgetFailedActivityId()java.lang.ThrowablegetFailure()JobEntitygetJob()java.lang.StringgetJobId()voidonCommandContextClose(CommandContext commandContext)voidonCommandFailed(CommandContext commandContext, java.lang.Throwable t)voidsetFailedActivityId(java.lang.String activityId)voidsetFailure(java.lang.Throwable failure)voidsetJob(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:
onCommandFailedin interfaceCommandContextListener
-
onCommandContextClose
public void onCommandContextClose(CommandContext commandContext)
- Specified by:
onCommandContextClosein 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)
-
-