org.jclouds.openstack.nova.v2_0.extensions
Interface VolumeAsyncApi


public interface VolumeAsyncApi

Provides synchronous access to Volumes.

Author:
Adam Lowe
See Also:
VolumeAsyncApi

Method Summary
 com.google.common.util.concurrent.ListenableFuture<VolumeAttachment> attachVolumeToServerAsDevice(String volumeId, String serverId, String device)
          Attach a volume to an instance
 com.google.common.util.concurrent.ListenableFuture<VolumeSnapshot> createSnapshot(String volumeId, CreateVolumeSnapshotOptions... options)
          Creates a new Snapshot
 com.google.common.util.concurrent.ListenableFuture<Volume> createVolume(int sizeGB, CreateVolumeOptions... options)
          Creates a new volume
 com.google.common.util.concurrent.ListenableFuture<Boolean> deleteSnapshot(String snapshotId)
          Delete a snapshot.
 com.google.common.util.concurrent.ListenableFuture<Boolean> deleteVolume(String volumeId)
          Delete a volume.
 com.google.common.util.concurrent.ListenableFuture<Boolean> detachVolumeFromServer(String volumeId, String serverId)
          Detach a Volume from an instance.
 com.google.common.util.concurrent.ListenableFuture<VolumeAttachment> getAttachmentForVolumeOnServer(String volumeId, String serverId)
          Get a specific attached volume.
 com.google.common.util.concurrent.ListenableFuture<VolumeSnapshot> getSnapshot(String snapshotId)
          Return data about the given snapshot.
 com.google.common.util.concurrent.ListenableFuture<Volume> getVolume(String volumeId)
          Return data about the given volume.
 com.google.common.util.concurrent.ListenableFuture<Set<VolumeAttachment>> listAttachmentsOnServer(String serverId)
          List volume attachments for a given instance.
 com.google.common.util.concurrent.ListenableFuture<Set<VolumeSnapshot>> listSnapshots()
          Returns a summary list of snapshots.
 com.google.common.util.concurrent.ListenableFuture<Set<VolumeSnapshot>> listSnapshotsInDetail()
          Returns a summary list of snapshots.
 com.google.common.util.concurrent.ListenableFuture<Set<Volume>> listVolumes()
          Returns a summary list of volumes.
 com.google.common.util.concurrent.ListenableFuture<Set<Volume>> listVolumesInDetail()
          Returns a detailed list of volumes.
 

Method Detail

listVolumes

com.google.common.util.concurrent.ListenableFuture<Set<Volume>> listVolumes()
Returns a summary list of volumes.

Returns:
the list of volumes

listVolumesInDetail

com.google.common.util.concurrent.ListenableFuture<Set<Volume>> listVolumesInDetail()
Returns a detailed list of volumes.

Returns:
the list of volumes.

getVolume

com.google.common.util.concurrent.ListenableFuture<Volume> getVolume(String volumeId)
Return data about the given volume.

Returns:
details of a specific volume.

createVolume

com.google.common.util.concurrent.ListenableFuture<Volume> createVolume(int sizeGB,
                                                                        CreateVolumeOptions... options)
Creates a new volume

Returns:
the new Snapshot

deleteVolume

com.google.common.util.concurrent.ListenableFuture<Boolean> deleteVolume(String volumeId)
Delete a volume.

Returns:
true if successful

listAttachmentsOnServer

com.google.common.util.concurrent.ListenableFuture<Set<VolumeAttachment>> listAttachmentsOnServer(String serverId)
List volume attachments for a given instance.

Returns:
all Floating IPs

getAttachmentForVolumeOnServer

com.google.common.util.concurrent.ListenableFuture<VolumeAttachment> getAttachmentForVolumeOnServer(String volumeId,
                                                                                                    String serverId)
Get a specific attached volume.

Returns:
data about the given volume attachment.

attachVolumeToServerAsDevice

com.google.common.util.concurrent.ListenableFuture<VolumeAttachment> attachVolumeToServerAsDevice(String volumeId,
                                                                                                  String serverId,
                                                                                                  String device)
Attach a volume to an instance

Returns:
the new Attachment

detachVolumeFromServer

com.google.common.util.concurrent.ListenableFuture<Boolean> detachVolumeFromServer(String volumeId,
                                                                                   String serverId)
Detach a Volume from an instance.

Returns:
true if successful

listSnapshots

com.google.common.util.concurrent.ListenableFuture<Set<VolumeSnapshot>> listSnapshots()
Returns a summary list of snapshots.

Returns:
the list of snapshots

listSnapshotsInDetail

com.google.common.util.concurrent.ListenableFuture<Set<VolumeSnapshot>> listSnapshotsInDetail()
Returns a summary list of snapshots.

Returns:
the list of snapshots

getSnapshot

com.google.common.util.concurrent.ListenableFuture<VolumeSnapshot> getSnapshot(String snapshotId)
Return data about the given snapshot.

Returns:
details of a specific snapshot.

createSnapshot

com.google.common.util.concurrent.ListenableFuture<VolumeSnapshot> createSnapshot(String volumeId,
                                                                                  CreateVolumeSnapshotOptions... options)
Creates a new Snapshot

Returns:
the new Snapshot

deleteSnapshot

com.google.common.util.concurrent.ListenableFuture<Boolean> deleteSnapshot(String snapshotId)
Delete a snapshot.

Returns:
true if successful


Copyright © 2009-2012 jclouds. All Rights Reserved.