org.jclouds.slicehost
Interface SlicehostAsyncClient
public interface SlicehostAsyncClient
Provides asynchronous access to Slicehost via their REST API.
All commands return a ListenableFuture of the result from Slicehost. Any exceptions incurred
during processing will be wrapped in an ExecutionException
as documented in
Future.get()
.
- Author:
- Adrian Cole
- See Also:
SlicehostClient
,
listSlices
com.google.common.util.concurrent.ListenableFuture<? extends Set<Slice>> listSlices()
- See Also:
SlicehostClient.listSlices()
getSlice
com.google.common.util.concurrent.ListenableFuture<Slice> getSlice(int id)
- See Also:
SlicehostClient.getSlice(int)
destroySlice
com.google.common.util.concurrent.ListenableFuture<Void> destroySlice(int id)
- See Also:
SlicehostClient.destroySlice(int)
rebootSlice
com.google.common.util.concurrent.ListenableFuture<Void> rebootSlice(int id)
- See Also:
SlicehostClient.rebootSlice(int)
hardRebootSlice
com.google.common.util.concurrent.ListenableFuture<Void> hardRebootSlice(int id)
- See Also:
SlicehostClient.hardRebootSlice(int)
createSlice
com.google.common.util.concurrent.ListenableFuture<Slice> createSlice(String name,
int imageId,
int flavorId)
- See Also:
SlicehostClient.createSlice(java.lang.String, int, int)
rebuildSliceFromImage
com.google.common.util.concurrent.ListenableFuture<Void> rebuildSliceFromImage(int id,
int imageId)
- See Also:
SlicehostClient.rebuildSliceFromImage(int, int)
rebuildSliceFromBackup
com.google.common.util.concurrent.ListenableFuture<Void> rebuildSliceFromBackup(int id,
int imageId)
- See Also:
SlicehostClient.rebuildSliceFromBackup(int, int)
listFlavors
com.google.common.util.concurrent.ListenableFuture<? extends Set<Flavor>> listFlavors()
- See Also:
SlicehostClient.listFlavors()
getFlavor
com.google.common.util.concurrent.ListenableFuture<Flavor> getFlavor(int id)
- See Also:
SlicehostClient.getFlavor(int)
listImages
com.google.common.util.concurrent.ListenableFuture<? extends Set<Image>> listImages()
- See Also:
SlicehostClient.listImages()
getImage
com.google.common.util.concurrent.ListenableFuture<Image> getImage(int id)
- See Also:
SlicehostClient.getImage(int)
listBackups
com.google.common.util.concurrent.ListenableFuture<? extends Set<Backup>> listBackups()
- See Also:
SlicehostClient.listBackups()
getBackup
com.google.common.util.concurrent.ListenableFuture<Backup> getBackup(int id)
- See Also:
SlicehostClient.getBackup(int)
Copyright © 2009-2012 jclouds. All Rights Reserved.