Class DeploymentJobSchedulingRequestErrorHandler
java.lang.Object
com.broadleafcommerce.sandbox.messaging.completion.error.DeploymentJobSchedulingRequestErrorHandler
- Author:
- Chad Harchar (charchar)
- 
Constructor SummaryConstructorsConstructorDescriptionDeploymentJobSchedulingRequestErrorHandler(ChangeSummaryService<ChangeSummary> summaryService, ChangeSummaryGroupService<ChangeSummaryGroup> groupService, ChangeDeployService<ChangeDeploy> changeDeployService) 
- 
Method SummaryModifier 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- 
DeploymentJobSchedulingRequestErrorHandlerpublic DeploymentJobSchedulingRequestErrorHandler(ChangeSummaryService<ChangeSummary> summaryService, ChangeSummaryGroupService<ChangeSummaryGroup> groupService, ChangeDeployService<ChangeDeploy> changeDeployService) 
 
- 
- 
Method Details- 
recordSchedulingErrorspublic 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- The- WorkflowRequestCompletionwhich has the errors to record
- deployment- The- ChangeDeployupon which to record errors
- changeSummaryGroups- The- ChangeSummaryGroupsupon which to record errors
- Throws:
- QualifiedStateException- Thrown if the updates fail.
 
- 
recordSummaryErrorsprotected 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- The- WorkflowRequestCompletionindicating the group that encountered errors while being scheduled
- groups- Stream of- ChangeSummaryGroupsfrom which to derive the IDs of- ChangeSummaries.
- Throws:
- QualifiedStateException- Thrown if the summary encounters errors while being updated.
 
- 
recordGroupErrorsprotected 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- The- WorkflowRequestCompletionindicating the group that encountered errors while being scheduled
- groupId- the ID of the group upon which to record errors
- Throws:
- QualifiedStateException- Thrown if the group encounters errors while being updated.
 
- 
recordDeploymentErrorsprotected 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- The- WorkflowRequestCompletionindicating the deployment that encountered errors while being scheduled
- deployId- The ID of the deployment upon which to record errors
- Throws:
- QualifiedStateException- Thrown if the deployment encounters errors while being updated.
 
- 
getSummaryService
- 
getGroupService
- 
getChangeDeployService
 
-