org.camunda.bpm.engine.impl.jobexecutor
Class JobFailureCollector

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.JobFailureCollector
All Implemented Interfaces:
CommandContextListener

public class JobFailureCollector
extends Object
implements CommandContextListener


Field Summary
protected  Throwable failure
           
protected  JobEntity job
           
protected  String jobId
           
 
Constructor Summary
JobFailureCollector(String jobId)
           
 
Method Summary
 Throwable getFailure()
           
 JobEntity getJob()
           
 String getJobId()
           
 void onCommandContextClose(CommandContext commandContext)
           
 void onCommandFailed(CommandContext commandContext, Throwable t)
           
 void setFailure(Throwable failure)
           
 void setJob(JobEntity job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failure

protected Throwable failure

job

protected JobEntity job

jobId

protected String jobId
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 interface CommandContextListener

onCommandContextClose

public void onCommandContextClose(CommandContext commandContext)
Specified by:
onCommandContextClose in interface CommandContextListener

setJob

public void setJob(JobEntity job)

getJob

public JobEntity getJob()

getJobId

public String getJobId()


Copyright © 2017 camunda services GmbH. All rights reserved.