Examples of StorageDeviceDto


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

   public void testUpdate() {
      env.storageDevice.setName("Updated storage device");
      env.storageDevice.update();

      // Recover the updated storage device
      StorageDeviceDto updated = env.infrastructureApi.getStorageDevice(env.datacenter.unwrap(),
            env.storageDevice.getId());

      assertEquals(updated.getName(), "Updated storage device");
   }
View Full Code Here

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

      remoteService.setStatus(0);
      return remoteService;
   }

   public static StorageDeviceDto storageDevicePost() {
      StorageDeviceDto storage = new StorageDeviceDto();
      storage.setName("Aloha aloha");
      storage.setIscsiIp("10.10.10.10");
      storage.setIscsiPort(99);
      storage.setManagementPort(90);

      return storage;
   }
View Full Code Here

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

      return tier;
   }

   public static StorageDeviceDto storageDevicePut() {
      StorageDeviceDto storageDevice = storageDevicePost();
      storageDevice.setId(1);
      storageDevice.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
      storageDevice.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/storage/devices/1"));
      storageDevice.addLink(new RESTLink("pools", "http://localhost/api/admin/datacenters/1/storage/devices/1/pools"));

      return storageDevice;
   }
View Full Code Here

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

    *      StorageDeviceResource- Retrieveastoragedevice</a>
    * @return Storage device with the given id or <code>null</code> if it does
    *         not exist.
    */
   public StorageDevice getStorageDevice(final Integer id) {
      StorageDeviceDto device = context.getApi().getInfrastructureApi().getStorageDevice(target, id);
      return wrap(context, StorageDevice.class, device);
   }
View Full Code Here

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

         this.username = username;
         return this;
      }

      public StorageDevice build() {
         StorageDeviceDto dto = new StorageDeviceDto();
         dto.setIscsiIp(iscsiIp);
         dto.setIscsiPort(iscsiPort);
         dto.setManagementIp(managementIp);
         dto.setManagementPort(managementPort);
         dto.setName(name);
         dto.setPassword(password);
         dto.setStorageTechnology(type);
         dto.setUsername(username);
         StorageDevice storageDevice = new StorageDevice(context, dto);
         storageDevice.datacenter = datacenter;
         return storageDevice;
      }
View Full Code Here

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

         this.username = username;
         return this;
      }

      public StorageDevice build() {
         StorageDeviceDto dto = new StorageDeviceDto();
         dto.setIscsiIp(iscsiIp);
         dto.setIscsiPort(iscsiPort);
         dto.setManagementIp(managementIp);
         dto.setManagementPort(managementPort);
         dto.setName(name);
         dto.setPassword(password);
         dto.setStorageTechnology(type);
         dto.setUsername(username);
         StorageDevice storageDevice = new StorageDevice(context, dto);
         storageDevice.datacenter = datacenter;
         return storageDevice;
      }
View Full Code Here

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

   public void testUpdate() {
      env.storageDevice.setName("Updated storage device");
      env.storageDevice.update();

      // Recover the updated storage device
      StorageDeviceDto updated = env.infrastructureApi.getStorageDevice(env.datacenter.unwrap(),
            env.storageDevice.getId());

      assertEquals(updated.getName(), "Updated storage device");
   }
View Full Code Here

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

    *      StorageDeviceResource- Retrieveastoragedevice</a>
    * @return Storage device with the given id or <code>null</code> if it does
    *         not exist.
    */
   public StorageDevice getStorageDevice(final Integer id) {
      StorageDeviceDto device = context.getApi().getInfrastructureApi().getStorageDevice(target, id);
      return wrap(context, StorageDevice.class, device);
   }
View Full Code Here

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

      remoteService.setStatus(0);
      return remoteService;
   }

   public static StorageDeviceDto storageDevicePost() {
      StorageDeviceDto storage = new StorageDeviceDto();
      storage.setName("Aloha aloha");
      storage.setIscsiIp("10.10.10.10");
      storage.setIscsiPort(99);
      storage.setManagementPort(90);

      return storage;
   }
View Full Code Here

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

      return tier;
   }

   public static StorageDeviceDto storageDevicePut() {
      StorageDeviceDto storageDevice = storageDevicePost();
      storageDevice.setId(1);
      storageDevice.addLink(new RESTLink("datacenter", "http://localhost/api/admin/datacenters/1"));
      storageDevice.addLink(new RESTLink("edit", "http://localhost/api/admin/datacenters/1/storage/devices/1"));
      storageDevice.addLink(new RESTLink("pools", "http://localhost/api/admin/datacenters/1/storage/devices/1/pools"));

      return storageDevice;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.