Examples of VolumeApi


Examples of org.jclouds.openstack.nova.v2_0.extensions.VolumeApi

            return null;
        }
        ComputeServiceContext context = iaasInfo.getComputeService().getContext();
       
        RestContext<NovaApi, NovaAsyncApi> nova = context.unwrap();
        VolumeApi api = nova.getApi().getVolumeExtensionForZone(region).get();
        Volume volume = api.create(sizeGB, CreateVolumeOptions.Builder.availabilityZone(zone));
        if (volume == null) {
      log.fatal("Volume creation was unsuccessful. [region] : " + region+" [zone] : " + zone
          + " of Iaas : " + iaasInfo);
      return null;
    }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.extensions.VolumeApi

          +" of Iaas : "+iaasInfo);
      return;
    }
   
    RestContext<NovaApi, NovaAsyncApi> nova = context.unwrap();
    VolumeApi api = nova.getApi().getVolumeExtensionForZone(region).get();
        if (api.delete(volumeId)) {
          log.info("Deletion of Volume [id]: "+volumeId+" was successful. [region] : " + region
            + " of Iaas : " + iaasInfo);
        }
  }
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.