Class DeploymentJobSchedulingRequestListener

    • Constructor Summary

      Constructors 
      Constructor Description
      DeploymentJobSchedulingRequestListener​(ScheduledJobService<ScheduledJob> scheduledJobService, com.broadleafcommerce.common.extension.TypeFactory jobFactory, com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletionNotifier completionNotifier, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, ScheduledJobRepository<?> repository, com.broadleafcommerce.common.extension.data.DataRouteSupporting route, com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doHandle​(@NonNull org.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.transition.WorkflowJobSchedulingRequest> message)  
      void handle​(org.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.transition.WorkflowJobSchedulingRequest> message)
      Creates a new ScheduledJob that triggers the deployment specified via the WorkflowJobSchedulingRequest then sends a WorkflowRequestCompletion when finished, after successfully creating a job or encountering an error.
    • Constructor Detail

      • DeploymentJobSchedulingRequestListener

        public DeploymentJobSchedulingRequestListener​(ScheduledJobService<ScheduledJob> scheduledJobService,
                                                      com.broadleafcommerce.common.extension.TypeFactory jobFactory,
                                                      com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletionNotifier completionNotifier,
                                                      com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager,
                                                      ScheduledJobRepository<?> repository,
                                                      com.broadleafcommerce.common.extension.data.DataRouteSupporting route,
                                                      com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService)
    • Method Detail

      • handle

        @StreamListener("scheduleDeploymentInput")
        public void handle​(org.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.transition.WorkflowJobSchedulingRequest> message)
        Creates a new ScheduledJob that triggers the deployment specified via the WorkflowJobSchedulingRequest then sends a WorkflowRequestCompletion when finished, after successfully creating a job or encountering an error.
        Specified by:
        handle in interface TrackingWorkflowJobSchedulingRequestListener
        Parameters:
        message - a workflow job scheduling request with info needed to create a new scheduled job
      • doHandle

        protected void doHandle​(@NonNull
                                @NonNull org.springframework.messaging.Message<com.broadleafcommerce.data.tracking.core.transition.WorkflowJobSchedulingRequest> message)