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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.FailedJobListener
All Implemented Interfaces:
Command<Void>

public class FailedJobListener
extends Object
implements Command<Void>

Author:
Frederik Heremans, Bernd Ruecker

Field Summary
protected  CommandExecutor commandExecutor
           
protected  Throwable exception
           
protected  String jobId
           
 
Constructor Summary
FailedJobListener(CommandExecutor commandExecutor, String jobId, Throwable exception)
           
 
Method Summary
 Void execute(CommandContext commandContext)
           
protected  void fireHistoricJobFailedEvt(JobEntity job)
           
 int getRetriesLeft()
           
 void incrementCountRetries()
           
protected  void logJobFailure(CommandContext commandContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandExecutor

protected CommandExecutor commandExecutor

jobId

protected String jobId

exception

protected Throwable exception
Constructor Detail

FailedJobListener

public FailedJobListener(CommandExecutor commandExecutor,
                         String jobId,
                         Throwable exception)
Method Detail

execute

public Void execute(CommandContext commandContext)
Specified by:
execute in interface Command<Void>

fireHistoricJobFailedEvt

protected void fireHistoricJobFailedEvt(JobEntity job)

logJobFailure

protected void logJobFailure(CommandContext commandContext)

incrementCountRetries

public void incrementCountRetries()

getRetriesLeft

public int getRetriesLeft()


Copyright © 2017 camunda services GmbH. All rights reserved.