Package com.amazonaws.services.glacier.model

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


        final long chunkSize = endPosition - currentPosition + 1;
        TreeHashInputStream input = null;
        int retries = 0;
        while (true) {
            try {
                GetJobOutputRequest req = new GetJobOutputRequest()
                    .withAccountId(accountId)
                    .withVaultName(vaultName)
                    .withRange("bytes=" + currentPosition + "-" + endPosition)
                    .withJobId(jobId)
                    .withGeneralProgressListener(progressListener)
View Full Code Here


            .withVaultName(vaultName)
            .withJobParameters(jobParameters));
        String jobId = archiveRetrievalResult.getJobId();

        jobStatusMonitor.waitForJobToComplete(jobId);
        jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
          .withAccountId(accountId)
          .withVaultName(vaultName)
          .withJobId(jobId));
      } finally {
            if ( jobStatusMonitor != null ) {
View Full Code Here

    private void downloadOneChunk(String accountId, String vaultName, String jobId, RandomAccessFile output, long currentPosition, long endPosition) {
        TreeHashInputStream  input;
        int retries = 0;
        while (true) {
            try {
                GetJobOutputResult  jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
                  .withAccountId(accountId)
                  .withVaultName(vaultName)
                  .withRange("bytes=" + Long.toString(currentPosition) + "-" + Long.toString(endPosition))
                  .withJobId(jobId));
View Full Code Here

    private void downloadOneChunk(String accountId, String vaultName, String jobId, RandomAccessFile output, long currentPosition, long endPosition) {
        TreeHashInputStream  input;
        int retries = 0;
        while (true) {
            try {
                GetJobOutputResult  jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
                  .withAccountId(accountId)
                  .withVaultName(vaultName)
                  .withRange("bytes=" + Long.toString(currentPosition) + "-" + Long.toString(endPosition))
                  .withJobId(jobId));
View Full Code Here

            {
              Thread.sleep(WAIT_TIME);
              success = waitForJob(irClient, irVault, thisJobId);
            }
           
            GetJobOutputRequest gjoRequest = new GetJobOutputRequest()
              .withVaultName(irVault)
              .withJobId(thisJobId);
            GetJobOutputResult gjoResult = irClient.getJobOutput(gjoRequest);
           
            Format formatter = new SimpleDateFormat("yyyyMMMdd_HHmmss");
View Full Code Here

    @Override
    public GetJobOutputResult getOutput(String range,
            ResultCapture<GetJobOutputResult> extractor) {

        GetJobOutputRequest request = new GetJobOutputRequest()
            .withRange(range);
        return getOutput(request, extractor);
    }
View Full Code Here

    private void downloadOneChunk(String accountId, String vaultName, String jobId, RandomAccessFile output, long currentPosition, long endPosition) {
        TreeHashInputStream  input;
        int retries = 0;
        while (true) {
            try {
                GetJobOutputResult  jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
                  .withAccountId(accountId)
                  .withVaultName(vaultName)
                  .withRange("bytes=" + Long.toString(currentPosition) + "-" + Long.toString(endPosition))
                  .withJobId(jobId));
View Full Code Here

    private void downloadOneChunk(String accountId, String vaultName, String jobId, RandomAccessFile output, long currentPosition, long endPosition) {
        TreeHashInputStream  input;
        int retries = 0;
        while (true) {
            try {
                GetJobOutputResult  jobOutputResult = glacier.getJobOutput(new GetJobOutputRequest()
                  .withAccountId(accountId)
                  .withVaultName(vaultName)
                  .withRange("bytes=" + Long.toString(currentPosition) + "-" + Long.toString(endPosition))
                  .withJobId(jobId));
View Full Code Here

  public void retrieveInventoryListing(final String vaultName, final String jobId) {
    log.info("Retrieving inventory for job id " + jobId + "...");

    try {
      final GetJobOutputRequest jobOutputRequest = new GetJobOutputRequest().withVaultName(vaultName).withJobId(jobId);
      final GetJobOutputResult jobOutputResult = client.getJobOutput(jobOutputRequest);
      final BufferedReader reader = new BufferedReader(new InputStreamReader(jobOutputResult.getBody()));
      String content = "";
      String line = null;
      while ((line = reader.readLine()) != null) {
View Full Code Here

TOP

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

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.