Package com.abiquo.server.core.infrastructure.storage

Examples of com.abiquo.server.core.infrastructure.storage.TierDto


      rack.addLink(new RESTLink("machines", "http://localhost/api/admin/datacenters/1/racks/1/machines"));
      return rack;
   }

   public static TierDto tierPut() {
      TierDto tier = new TierDto();
      tier.setId(1);
      tier.setEnabled(true);
      tier.setName("Tier");
      tier.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/storage/tiers/1"));
      tier.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
      tier.addLink(new RESTLink("pools", "http://localhost/api/admin/datacenters/1/storage/tiers/1/pools"));

      return tier;
   }
View Full Code Here


    * @param id
    *           The id of the storage tier.
    * @return The storage tier.
    */
   public Tier getStorageTier(final Integer id) {
      TierDto tier = context.getApi().getCloudApi().getStorageTier(target, id);
      return wrap(context, Tier.class, tier);
   }
View Full Code Here

      return template;

   }

   public static TierDto cloudTierPut() {
      TierDto tier = new TierDto();
      tier.setId(1);
      tier.setEnabled(true);
      tier.setName("Tier");
      tier.addLink(new RESTLink("edit", "http://localhost/api/cloud/virtualdatacenters/1/tiers/1"));
      return tier;
   }
View Full Code Here

      return wrap(context, VirtualMachine.class, parser.apply(response));
   }

   public Tier getTier() {
      Integer tierId = target.getIdFromLink(ParentLinkName.TIER);
      TierDto dto = context.getApi().getCloudApi().getStorageTier(virtualDatacenter.unwrap(), tierId);
      tier = wrap(context, Tier.class, dto);
      return tier;
   }
View Full Code Here

      return template;

   }

   public static TierDto cloudTierPut() {
      TierDto tier = new TierDto();
      tier.setId(1);
      tier.setEnabled(true);
      tier.setName("Tier");
      tier.addLink(new RESTLink("edit", "http://localhost/api/cloud/virtualdatacenters/1/tiers/1"));
      return tier;
   }
View Full Code Here

      return wrap(context, VirtualMachine.class, parser.apply(response));
   }

   public Tier getTier() {
      Integer tierId = target.getIdFromLink(ParentLinkName.TIER);
      TierDto dto = context.getApi().getCloudApi().getStorageTier(virtualDatacenter.unwrap(), tierId);
      tier = wrap(context, Tier.class, dto);
      return tier;
   }
View Full Code Here

    * @param id
    *           The id of the storage tier.
    * @return The storage tier.
    */
   public Tier getStorageTier(final Integer id) {
      TierDto tier = context.getApi().getCloudApi().getStorageTier(target, id);
      return wrap(context, Tier.class, tier);
   }
View Full Code Here

      rack.addLink(new RESTLink("machines", "http://localhost/api/admin/datacenters/1/racks/1/machines"));
      return rack;
   }

   public static TierDto tierPut() {
      TierDto tier = new TierDto();
      tier.setId(1);
      tier.setEnabled(true);
      tier.setName("Tier");
      tier.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/storage/tiers/1"));
      tier.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
      tier.addLink(new RESTLink("pools", "http://localhost/api/admin/datacenters/1/storage/tiers/1/pools"));

      return tier;
   }
View Full Code Here

    * @param id
    *           The id of the storage tier.
    * @return The storage tier.
    */
   public Tier getStorageTier(final Integer id) {
      TierDto tier = context.getApi().getCloudApi().getStorageTier(target, id);
      return wrap(context, Tier.class, tier);
   }
View Full Code Here

      return template;

   }

   public static TierDto cloudTierPut() {
      TierDto tier = new TierDto();
      tier.setId(1);
      tier.setEnabled(true);
      tier.setName("Tier");
      tier.addLink(new RESTLink("edit", "http://localhost/api/cloud/virtualdatacenters/1/tiers/1"));
      return tier;
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.infrastructure.storage.TierDto

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.