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

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

public class FailedJobListener
extends Object
implements TransactionListener, CommandContextListener

Author:
Frederik Heremans, Bernd Ruecker

Field Summary
protected  CommandExecutor commandExecutor
           
protected  Throwable exception
           
protected  String jobId
           
 
Constructor Summary
FailedJobListener(CommandExecutor commandExecutor, String jobId)
           
FailedJobListener(CommandExecutor commandExecutor, String jobId, Throwable exception)
           
 
Method Summary
 void execute(CommandContext commandContext)
           
protected  void fireHistoricJobFailedEvt(JobEntity job)
           
 Throwable getException()
           
protected  void logJobFailure(CommandContext commandContext)
           
 void onCommandContextClose(CommandContext commandContext)
           
 void onCommandFailed(CommandContext commandContext, Throwable t)
           
 void setException(Throwable exception)
           
 
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)

FailedJobListener

public FailedJobListener(CommandExecutor commandExecutor,
                         String jobId)
Method Detail

execute

public void execute(CommandContext commandContext)
Specified by:
execute in interface TransactionListener

fireHistoricJobFailedEvt

protected void fireHistoricJobFailedEvt(JobEntity job)

logJobFailure

protected void logJobFailure(CommandContext commandContext)

setException

public void setException(Throwable exception)

getException

public Throwable getException()

onCommandContextClose

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

onCommandFailed

public void onCommandFailed(CommandContext commandContext,
                            Throwable t)
Specified by:
onCommandFailed in interface CommandContextListener


Copyright © 2016 camunda services GmbH. All rights reserved.