Class DeploymentJobSchedulingRequestErrorHandler
java.lang.Object
com.broadleafcommerce.sandbox.messaging.completion.error.DeploymentJobSchedulingRequestErrorHandler
- Author:
- Chad Harchar (charchar)
-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentJobSchedulingRequestErrorHandler(ChangeSummaryService<ChangeSummary> summaryService, ChangeSummaryGroupService<ChangeSummaryGroup> groupService, ChangeDeployService<ChangeDeploy> changeDeployService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ChangeDeployService<ChangeDeploy>protected ChangeSummaryGroupService<ChangeSummaryGroup>protected ChangeSummaryService<ChangeSummary>protected voidrecordDeploymentErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String deployId) Locks and records the exception encountered for a failed deployment scheduling onto theChangeDeployindicated by theWorkflowRequestCompletionand updates its status toChangeStatusType.ERROR_SCHEDULE.protected voidrecordGroupErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String groupId) Locks and records the exception encountered for a failed deployment scheduling onto theChangeSummaryGroupindicated by theWorkflowRequestCompletionand updates its status toChangeStatusType.ERROR_SCHEDULE.voidrecordSchedulingErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, ChangeDeploy deployment, Collection<ChangeSummaryGroup> changeSummaryGroups) Locks the deployment and groups and records the errors encountered while trying to schedule them and updates their statuses toChangeStatusType.ERROR_SCHEDULE.protected voidrecordSummaryErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, Collection<ChangeSummaryGroup> groups) Records the exception encountered for a failed deployment scheduling onto theChangeSummaryindicated by theWorkflowRequestCompletionand updates its status toChangeStatusType.ERROR_SCHEDULE.
-
Constructor Details
-
DeploymentJobSchedulingRequestErrorHandler
public DeploymentJobSchedulingRequestErrorHandler(ChangeSummaryService<ChangeSummary> summaryService, ChangeSummaryGroupService<ChangeSummaryGroup> groupService, ChangeDeployService<ChangeDeploy> changeDeployService)
-
-
Method Details
-
recordSchedulingErrors
public void recordSchedulingErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, ChangeDeploy deployment, Collection<ChangeSummaryGroup> changeSummaryGroups) Locks the deployment and groups and records the errors encountered while trying to schedule them and updates their statuses toChangeStatusType.ERROR_SCHEDULE.- Parameters:
completion- TheWorkflowRequestCompletionwhich has the errors to recorddeployment- TheChangeDeployupon which to record errorschangeSummaryGroups- TheChangeSummaryGroupsupon which to record errors- Throws:
QualifiedStateException- Thrown if the updates fail.
-
recordSummaryErrors
protected void recordSummaryErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, Collection<ChangeSummaryGroup> groups) Records the exception encountered for a failed deployment scheduling onto theChangeSummaryindicated by theWorkflowRequestCompletionand updates its status toChangeStatusType.ERROR_SCHEDULE.- Parameters:
completion- TheWorkflowRequestCompletionindicating the group that encountered errors while being scheduledgroups- Stream ofChangeSummaryGroupsfrom which to derive the IDs ofChangeSummaries.- Throws:
QualifiedStateException- Thrown if the summary encounters errors while being updated.
-
recordGroupErrors
protected void recordGroupErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String groupId) Locks and records the exception encountered for a failed deployment scheduling onto theChangeSummaryGroupindicated by theWorkflowRequestCompletionand updates its status toChangeStatusType.ERROR_SCHEDULE.- Parameters:
completion- TheWorkflowRequestCompletionindicating the group that encountered errors while being scheduledgroupId- the ID of the group upon which to record errors- Throws:
QualifiedStateException- Thrown if the group encounters errors while being updated.
-
recordDeploymentErrors
protected void recordDeploymentErrors(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String deployId) Locks and records the exception encountered for a failed deployment scheduling onto theChangeDeployindicated by theWorkflowRequestCompletionand updates its status toChangeStatusType.ERROR_SCHEDULE.- Parameters:
completion- TheWorkflowRequestCompletionindicating the deployment that encountered errors while being scheduleddeployId- The ID of the deployment upon which to record errors- Throws:
QualifiedStateException- Thrown if the deployment encounters errors while being updated.
-
getSummaryService
-
getGroupService
-
getChangeDeployService
-