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 void
recordDeploymentErrors
(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String deployId) Locks and records the exception encountered for a failed deployment scheduling onto theChangeDeploy
indicated by theWorkflowRequestCompletion
and updates its status toChangeStatusType.ERROR_SCHEDULE
.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 theChangeSummaryGroup
indicated by theWorkflowRequestCompletion
and updates its status toChangeStatusType.ERROR_SCHEDULE
.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
.protected void
recordSummaryErrors
(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, Collection<ChangeSummaryGroup> groups) Records the exception encountered for a failed deployment scheduling onto theChangeSummary
indicated by theWorkflowRequestCompletion
and 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
- TheWorkflowRequestCompletion
which has the errors to recorddeployment
- TheChangeDeploy
upon which to record errorschangeSummaryGroups
- TheChangeSummaryGroups
upon 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 theChangeSummary
indicated by theWorkflowRequestCompletion
and updates its status toChangeStatusType.ERROR_SCHEDULE
.- Parameters:
completion
- TheWorkflowRequestCompletion
indicating the group that encountered errors while being scheduledgroups
- Stream ofChangeSummaryGroups
from 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 theChangeSummaryGroup
indicated by theWorkflowRequestCompletion
and updates its status toChangeStatusType.ERROR_SCHEDULE
.- Parameters:
completion
- TheWorkflowRequestCompletion
indicating 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 theChangeDeploy
indicated by theWorkflowRequestCompletion
and updates its status toChangeStatusType.ERROR_SCHEDULE
.- Parameters:
completion
- TheWorkflowRequestCompletion
indicating 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
-