Class SchedulerNotificationHooker
java.lang.Object
net.datenwerke.rs.incubator.service.schedulernotification.SchedulerNotificationHooker
- All Implemented Interfaces:
Hook,SchedulerExecutionHook,SchedulerInfoHook
public class SchedulerNotificationHooker
extends Object
implements SchedulerExecutionHook, SchedulerInfoHook
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchedulerNotificationHooker(Configuration config, <any> emp, Injector injector, MailService mailService, ExceptionService exceptionServices, RemoteMessageService remoteMessageService) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionExecutionAboutToStart(AbstractJob job, ExecutionLogEntry logEntry) happens outside a transaction ..voidactionExecutionEndedAbnormally(AbstractJob job, AbstractAction action, ActionEntry actionEntry, Exception e) within transactionvoidactionExecutionEndedSuccessfully(AbstractJob job, AbstractAction action, ExecutionLogEntry logEntry) wrapped in transactionvoidvoidbeforeJobRescheduled(AbstractJob job, AbstractTrigger trigger, AbstractJob previous) voidbeforeJobSchedule(AbstractJob job, AbstractTrigger trigger) voiddoesVetoActionExecution(AbstractJob job, ExecutionLogEntry logEntry) doesVetoExecution(AbstractJob job, ExecutionLogEntry logEntry) voidexecutionEndedAbnormally(AbstractJob job, ExecutionLogEntry logEntry, Exception e) wrapped in transactionvoidexecutionEndedSuccessfully(AbstractJob job, ExecutionLogEntry logEntry) wrapped in transactionvoidinformAboutVeto(AbstractJob job, ExecutionLogEntry logEntry, VetoActionExecution veto) voidinformAboutVeto(AbstractJob job, ExecutionLogEntry logEntry, VetoJobExecution veto) voidjobExecutionAboutToStart(AbstractJob job, ExecutionLogEntry logEntry) happens outside a transaction ..voidjobExecutionEndedAbnormally(AbstractJob job, JobEntry jobEntry, Exception e) within transactionvoidjobRemoved(AbstractJob job) voidjobRescheduled(AbstractJob job, AbstractTrigger trigger) voidjobScheduled(AbstractJob job, AbstractTrigger trigger) void
-
Field Details
-
PROPERTY_NOTIFICATION_SCHEDULED_SUBJECT
- See Also:
-
PROPERTY_NOTIFICATION_SCHEDULED_TEXT
- See Also:
-
PROPERTY_NOTIFICATION_UNSCHEDULED_SUBJECT
- See Also:
-
PROPERTY_NOTIFICATION_UNSCHEDULED_TEXT
- See Also:
-
PROPERTY_NOTIFICATION_FAILURE_SUBJECT
- See Also:
-
PROPERTY_NOTIFICATION_FAILURE_TEXT
- See Also:
-
PROPERTY_NOTIFICATION_DISABLED
- See Also:
-
-
Constructor Details
-
SchedulerNotificationHooker
public SchedulerNotificationHooker(Configuration config, <any> emp, Injector injector, MailService mailService, ExceptionService exceptionServices, RemoteMessageService remoteMessageService)
-
-
Method Details
-
jobExecutionAboutToStart
Description copied from interface:SchedulerExecutionHookhappens outside a transaction ..- Specified by:
jobExecutionAboutToStartin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-
-
actionExecutionAboutToStart
Description copied from interface:SchedulerExecutionHookhappens outside a transaction ..- Specified by:
actionExecutionAboutToStartin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-
-
executionEndedSuccessfully
Description copied from interface:SchedulerExecutionHookwrapped in transaction- Specified by:
executionEndedSuccessfullyin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-
-
executionEndedAbnormally
Description copied from interface:SchedulerExecutionHookwrapped in transaction- Specified by:
executionEndedAbnormallyin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-e-
-
doesVetoExecution
- Specified by:
doesVetoExecutionin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-
-
informAboutVeto
- Specified by:
informAboutVetoin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-
-
actionExecutionEndedAbnormally
public void actionExecutionEndedAbnormally(AbstractJob job, AbstractAction action, ActionEntry actionEntry, Exception e) Description copied from interface:SchedulerExecutionHookwithin transaction- Specified by:
actionExecutionEndedAbnormallyin interfaceSchedulerExecutionHook
-
jobExecutionEndedAbnormally
Description copied from interface:SchedulerExecutionHookwithin transaction- Specified by:
jobExecutionEndedAbnormallyin interfaceSchedulerExecutionHook
-
beforeJobSchedule
- Specified by:
beforeJobSchedulein interfaceSchedulerInfoHook
-
jobScheduled
- Specified by:
jobScheduledin interfaceSchedulerInfoHook
-
beforeJobRescheduled
- Specified by:
beforeJobRescheduledin interfaceSchedulerInfoHook
-
beforeJobUnschedule
- Specified by:
beforeJobUnschedulein interfaceSchedulerInfoHook
-
jobRescheduled
- Specified by:
jobRescheduledin interfaceSchedulerInfoHook
-
jobUnscheduled
- Specified by:
jobUnscheduledin interfaceSchedulerInfoHook
-
beforeJobRemove
- Specified by:
beforeJobRemovein interfaceSchedulerInfoHook
-
jobRemoved
- Specified by:
jobRemovedin interfaceSchedulerInfoHook
-
actionExecutionEndedSuccessfully
public void actionExecutionEndedSuccessfully(AbstractJob job, AbstractAction action, ExecutionLogEntry logEntry) Description copied from interface:SchedulerExecutionHookwrapped in transaction- Specified by:
actionExecutionEndedSuccessfullyin interfaceSchedulerExecutionHook- Parameters:
job-action-logEntry-
-
doesVetoActionExecution
- Specified by:
doesVetoActionExecutionin interfaceSchedulerExecutionHook- Parameters:
job-logEntry-
-
informAboutVeto
- Specified by:
informAboutVetoin interfaceSchedulerExecutionHook
-