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 (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));
            jobId = archiveRetrievalResult.getJobId();

            jobStatusMonitor.waitForJobToComplete(jobId);

        } catch (AmazonServiceException ace) {
            fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE);
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 (AmazonServiceException ace) {
            fireProgressEvent(progressListener, ProgressEvent.FAILED_EVENT_CODE);
View Full Code Here

         
            InitiateJobRequest initJobRequest = new InitiateJobRequest()
              .withVaultName(irVault)
              .withJobParameters(jParameters);
           
            InitiateJobResult initJobResult = irClient.initiateJob(initJobRequest);
            String thisJobId = initJobResult.getJobId();
           
            Thread.sleep(12600000);
           
            Boolean success = waitForJob(irClient, irVault, thisJobId);
           
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();

            jobStatusMonitor.waitForJobToComplete(jobId);

        } catch (AmazonServiceException ace) {
            fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE);
View Full Code Here

    try {
      final InitiateJobRequest initJobRequest = new InitiateJobRequest().withVaultName(vaultName).withJobParameters(
          new JobParameters().withType("inventory-retrieval"));

      final InitiateJobResult initJobResult = client.initiateJob(initJobRequest);
      final String jobId = initJobResult.getJobId();
      log.info("Inventory Job created with ID" + System.getProperty("line.separator") + jobId);
    } catch (final AmazonClientException e) {
      log.error(e.getLocalizedMessage(), e);
    }
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.