Class NotificationJobListener
java.lang.Object
org.quartz.listeners.JobListenerSupport
ch.tocco.nice2.notificationcenter.impl.NotificationJobListener
- All Implemented Interfaces:
org.quartz.JobListener
@Component
@Order(10000)
public class NotificationJobListener
extends org.quartz.listeners.JobListenerSupport
Listener sends notification to the new client if the progress changes and the job is started/finished
should run after StartingTaskExecutionJobListener and before FinishedTaskExecutionJobListener
-
Constructor Summary
ConstructorDescriptionNotificationJobListener
(NotificationService notificationService, TextResources textResources, Context ctx) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
jobToBeExecuted
(org.quartz.JobExecutionContext context) void
jobWasExecuted
(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException) Methods inherited from class org.quartz.listeners.JobListenerSupport
getLog, jobExecutionVetoed
-
Constructor Details
-
NotificationJobListener
public NotificationJobListener(NotificationService notificationService, TextResources textResources, Context ctx)
-
-
Method Details
-
jobToBeExecuted
public void jobToBeExecuted(org.quartz.JobExecutionContext context) - Specified by:
jobToBeExecuted
in interfaceorg.quartz.JobListener
- Overrides:
jobToBeExecuted
in classorg.quartz.listeners.JobListenerSupport
-
jobWasExecuted
public void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException jobException) - Specified by:
jobWasExecuted
in interfaceorg.quartz.JobListener
- Overrides:
jobWasExecuted
in classorg.quartz.listeners.JobListenerSupport
-
getName
-