Package org.jclouds.abiquo.domain.infrastructure

Examples of org.jclouds.abiquo.domain.infrastructure.StorageDeviceMetadata


      final String type = Config.get("abiquo.storage.type");
      String user = Config.get("abiquo.storage.user");
      String pass = Config.get("abiquo.storage.pass");

      Iterable<StorageDeviceMetadata> devices = datacenter.listSupportedStorageDevices();
      StorageDeviceMetadata metadata = find(devices, new Predicate<StorageDeviceMetadata>() {
         @Override
         public boolean apply(StorageDeviceMetadata input) {
            return input.getType().equals(type);
         }
      });

      storageDevice = StorageDevice.builder(context.getApiContext(), datacenter) //
            .name(PREFIX + "Storage Device")//
            .type(type)//
            .managementIp(ip).managementPort(metadata.getDefaultManagementPort())//
            .iscsiIp(ip).iscsiPort(metadata.getDefaultIscsiPort()) //
            .username(user)//
            .password(pass) //
            .build();

      storageDevice.save();
View Full Code Here


      final String type = Config.get("abiquo.storage.type");
      String user = Config.get("abiquo.storage.user");
      String pass = Config.get("abiquo.storage.pass");

      Iterable<StorageDeviceMetadata> devices = datacenter.listSupportedStorageDevices();
      StorageDeviceMetadata metadata = find(devices, new Predicate<StorageDeviceMetadata>() {
         @Override
         public boolean apply(StorageDeviceMetadata input) {
            return input.getType().equals(type);
         }
      });

      storageDevice = StorageDevice.builder(context.getApiContext(), datacenter) //
            .name(PREFIX + "Storage Device")//
            .type(type)//
            .managementIp(ip).managementPort(metadata.getDefaultManagementPort())//
            .iscsiIp(ip).iscsiPort(metadata.getDefaultIscsiPort()) //
            .username(user)//
            .password(pass) //
            .build();

      storageDevice.save();
View Full Code Here

      String type = Config.get("abiquo.storage.type");
      String user = Config.get("abiquo.storage.user");
      String pass = Config.get("abiquo.storage.pass");

      List<StorageDeviceMetadata> devices = datacenter.listSupportedStorageDevices();
      StorageDeviceMetadata metadata = Iterables.find(devices, StorageDeviceMetadataPredicates.type(type));

      storageDevice = StorageDevice.builder(context.getApiContext(), datacenter) //
            .name(PREFIX + "Storage Device")//
            .type(type)//
            .managementIp(ip).managementPort(metadata.getDefaultManagementPort())//
            .iscsiIp(ip).iscsiPort(metadata.getDefaultIscsiPort()) //
            .username(user)//
            .password(pass) //
            .build();

      storageDevice.save();
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.infrastructure.StorageDeviceMetadata

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.