Class JobFailureCollector
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.JobFailureCollector
-
- All Implemented Interfaces:
CommandContextListener
public class JobFailureCollector extends Object implements CommandContextListener
-
-
Constructor Summary
Constructors Constructor Description JobFailureCollector(String jobId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
JobFailureCollector
public JobFailureCollector(String jobId)
-
-
Method Detail
-
setFailure
public void setFailure(Throwable failure)
-
getFailure
public Throwable getFailure()
-
onCommandFailed
public void onCommandFailed(CommandContext commandContext, 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 String getJobId()
-
getFailedActivityId
public String getFailedActivityId()
-
setFailedActivityId
public void setFailedActivityId(String activityId)
-
-