class AbortMultipartArchiveUploadCommand extends AbstractCommand {

    @Override
    public void exec(OptionSet options, GlacierUploaderOptionParser optionParser) {
        final String vaultName = options.valueOf(optionParser.vault);
        final String uploadId = options.valueOf(optionParser.abortUpload);
        try {
            abortUpload(vaultName, uploadId);
        } catch (AmazonServiceException e) {
            log.error("Something went wrong at Amazon while aborting the multipart upload with id " + uploadId + ". " + e.getLocalizedMessage(), e);
        } catch (AmazonClientException e) {
            log.error("Something went wrong with the Amazon Client.", e);
        }
    }

    public  AbortMultipartArchiveUploadCommand(AmazonGlacier client, AmazonSQS sqs, AmazonSNS sns);

}