class SnapshotRedeployExecutor extends SnapshotBuildAndDeployExecutor {

    @Override
    protected void updateContainerSpec(final BuildExecutionContext context, final ContainerSpec containerSpec) {
        containerSpec.setStatus(context.getServerTemplate().getContainerSpec(containerSpec.getId()).getStatus());
        specManagementService.call(ignore -> {
            notifyUpdateSuccess();
        }, (o, throwable) -> {
            notifyUpdateError();
            return false;
        }).updateContainerSpec(context.getServerTemplate().getId(), context.getContainerId(), containerSpec, true);
    }

    public  SnapshotRedeployExecutor(final Caller<BuildService> buildServiceCaller,
                                    final Event<BuildResults> buildResultsEvent,
                                    final Event<NotificationEvent> notificationEvent,
                                    final BuildDialog buildDialog,
                                    final DeploymentPopup deploymentPopup,
                                    final Caller<SpecManagementService> specManagementService,
                                    final SnapshotDeploymentSettings settings);

}