Package com.amazonaws.services.glacier.model

Examples of com.amazonaws.services.glacier.model.InitiateJobResult


            JobParameters jobParameters = new JobParameters()
                .withArchiveId(archiveId)
                .withType("archive-retrieval")
                .withSNSTopic(jobStatusMonitor.getTopicArn());
            InitiateJobResult archiveRetrievalResult =
                glacier.initiateJob(new InitiateJobRequest()
                    .withAccountId(accountId)
                    .withVaultName(vaultName)
                    .withJobParameters(jobParameters));
            jobId = archiveRetrievalResult.getJobId();

            jobStatusMonitor.waitForJobToComplete(jobId);

        } catch (AmazonServiceException ace) {
            publishProgress(progressListener, ProgressEventType.TRANSFER_FAILED_EVENT);
View Full Code Here


        JobParameters jobParameters = new JobParameters()
          .withArchiveId(archiveId)
          .withType("archive-retrieval")
          .withSNSTopic(jobStatusMonitor.getTopicArn());
        InitiateJobResult archiveRetrievalResult =
          glacier.initiateJob(new InitiateJobRequest()
            .withAccountId(accountId)
            .withVaultName(vaultName)
            .withJobParameters(jobParameters));
        String jobId = archiveRetrievalResult.getJobId();

        jobStatusMonitor.waitForJobToComplete(jobId);
        jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
          .withAccountId(accountId)
          .withVaultName(vaultName)
View Full Code Here

        JobParameters jobParameters = new JobParameters()
          .withArchiveId(archiveId)
          .withType("archive-retrieval")
          .withSNSTopic(jobStatusMonitor.getTopicArn());
        InitiateJobResult archiveRetrievalResult =
          glacier.initiateJob(new InitiateJobRequest()
            .withAccountId(accountId)
            .withVaultName(vaultName)
            .withJobParameters(jobParameters));
        String jobId = archiveRetrievalResult.getJobId();

        jobStatusMonitor.waitForJobToComplete(jobId);
        jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
          .withAccountId(accountId)
          .withVaultName(vaultName)
View Full Code Here

       
        JobParameters jobParameters = new JobParameters()
          .withArchiveId(archiveId)
          .withType("archive-retrieval")
          .withSNSTopic(jobStatusMonitor.getTopicArn());
        InitiateJobResult archiveRetrievalResult =
          glacier.initiateJob(new InitiateJobRequest()
            .withAccountId(accountId)
            .withVaultName(vaultName)
            .withJobParameters(jobParameters));
        String jobId = archiveRetrievalResult.getJobId();

        jobStatusMonitor.waitForJobToComplete(jobId);
        jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
          .withAccountId(accountId)
          .withVaultName(vaultName)
View Full Code Here

            JobParameters jobParameters = new JobParameters()
                .withArchiveId(archiveId)
                .withType("archive-retrieval")
                .withSNSTopic(jobStatusMonitor.getTopicArn());
            InitiateJobResult archiveRetrievalResult =
                glacier.initiateJob(new InitiateJobRequest()
                    .withAccountId(accountId)
                    .withVaultName(vaultName)
                    .withJobParameters(jobParameters));
            jobId = archiveRetrievalResult.getJobId();

            jobStatusMonitor.waitForJobToComplete(jobId);

        } finally {
            if (jobStatusMonitor != null) {
View Full Code Here

            JobParameters jobParameters = new JobParameters()
                .withArchiveId(archiveId)
                .withType("archive-retrieval")
                .withSNSTopic(jobStatusMonitor.getTopicArn());
            InitiateJobResult archiveRetrievalResult =
                glacier.initiateJob(new InitiateJobRequest()
                    .withAccountId(accountId)
                    .withVaultName(vaultName)
                    .withJobParameters(jobParameters));
            jobId = archiveRetrievalResult.getJobId();

            DescribeJobResult describeJobResult = glacier.describeJob(new DescribeJobRequest(accountId, vaultName, jobId));
            archiveSize = describeJobResult.getArchiveSizeInBytes();

            jobStatusMonitor.waitForJobToComplete(jobId);
View Full Code Here

            JobParameters jobParameters = new JobParameters()
                .withArchiveId(archiveId)
                .withType("archive-retrieval")
                .withSNSTopic(jobStatusMonitor.getTopicArn());
            InitiateJobResult archiveRetrievalResult =
                glacier.initiateJob(new InitiateJobRequest()
                    .withAccountId(accountId)
                    .withVaultName(vaultName)
                    .withJobParameters(jobParameters));
            jobId = archiveRetrievalResult.getJobId();

            jobStatusMonitor.waitForJobToComplete(jobId);

        } catch (Throwable t) {
            publishProgress(progressListener, ProgressEventType.TRANSFER_FAILED_EVENT);
View Full Code Here

            JobParameters jobParameters = new JobParameters()
                .withArchiveId(archiveId)
                .withType("archive-retrieval")
                .withSNSTopic(jobStatusMonitor.getTopicArn());
            InitiateJobResult archiveRetrievalResult =
                glacier.initiateJob(new InitiateJobRequest()
                    .withAccountId(accountId)
                    .withVaultName(vaultName)
                    .withJobParameters(jobParameters));
            jobId = archiveRetrievalResult.getJobId();

            jobStatusMonitor.waitForJobToComplete(jobId);

        } catch (Throwable t) {
            publishProgress(progressListener, ProgressEventType.TRANSFER_FAILED_EVENT);
View Full Code Here

        JobParameters jobParameters = new JobParameters()
          .withArchiveId(archiveId)
          .withType("archive-retrieval")
          .withSNSTopic(jobStatusMonitor.getTopicArn());
        InitiateJobResult archiveRetrievalResult =
          glacier.initiateJob(new InitiateJobRequest()
            .withAccountId(accountId)
            .withVaultName(vaultName)
            .withJobParameters(jobParameters));
        String jobId = archiveRetrievalResult.getJobId();

        jobStatusMonitor.waitForJobToComplete(jobId);
        jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
          .withAccountId(accountId)
          .withVaultName(vaultName)
View Full Code Here

        JobParameters jobParameters = new JobParameters()
          .withArchiveId(archiveId)
          .withType("archive-retrieval")
          .withSNSTopic(jobStatusMonitor.getTopicArn());
        InitiateJobResult archiveRetrievalResult =
          glacier.initiateJob(new InitiateJobRequest()
            .withAccountId(accountId)
            .withVaultName(vaultName)
            .withJobParameters(jobParameters));
        String jobId = archiveRetrievalResult.getJobId();

        jobStatusMonitor.waitForJobToComplete(jobId);
        jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
          .withAccountId(accountId)
          .withVaultName(vaultName)
View Full Code Here

TOP

Related Classes of com.amazonaws.services.glacier.model.InitiateJobResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.