Package de.kopis.glacier.printers

Examples of de.kopis.glacier.printers.VaultPrinter


      final CreateVaultRequest createVaultRequest = new CreateVaultRequest(vaultName);
      final CreateVaultResult createVaultResult = client.createVault(createVaultRequest);
      log.info("Vault " + vaultName + " created. " + createVaultResult);
      final DescribeVaultRequest describeVaultRequest = new DescribeVaultRequest().withVaultName(vaultName);
      final DescribeVaultResult describeVaultResult = client.describeVault(describeVaultRequest);
      new VaultPrinter().printVault(describeVaultResult, System.out);
    } catch (final AmazonServiceException e) {
      log.error("Couldn't create vault.");
    } catch (final AmazonClientException e) {
      log.error("Couldn't create vault.");
    }
View Full Code Here

TOP

Related Classes of de.kopis.glacier.printers.VaultPrinter

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.