org.jclouds.cloudstack.features
Interface VMGroupAsyncClient


public interface VMGroupAsyncClient

Provides asynchronous access to CloudStack VM group features.

Author:
Richard Downer
See Also:
VMGroupClient,

Method Summary
 com.google.common.util.concurrent.ListenableFuture<VMGroup> createInstanceGroup(String name, CreateVMGroupOptions... options)
          Creates a VM group
 com.google.common.util.concurrent.ListenableFuture<Void> deleteInstanceGroup(long id)
          Delete a VM group
 com.google.common.util.concurrent.ListenableFuture<VMGroup> getInstanceGroup(long id)
           
 com.google.common.util.concurrent.ListenableFuture<Set<VMGroup>> listInstanceGroups(ListVMGroupsOptions... options)
          Lists VM groups
 com.google.common.util.concurrent.ListenableFuture<VMGroup> updateInstanceGroup(long id, UpdateVMGroupOptions... options)
          Modify a VM group
 

Method Detail

listInstanceGroups

com.google.common.util.concurrent.ListenableFuture<Set<VMGroup>> listInstanceGroups(ListVMGroupsOptions... options)
Lists VM groups

Parameters:
options - if present, how to constrain the list.
Returns:
VM groups matching query, or empty set, if no zones are found

getInstanceGroup

com.google.common.util.concurrent.ListenableFuture<VMGroup> getInstanceGroup(long id)
See Also:
VMGroupClient.getInstanceGroup(long)

createInstanceGroup

com.google.common.util.concurrent.ListenableFuture<VMGroup> createInstanceGroup(String name,
                                                                                CreateVMGroupOptions... options)
Creates a VM group

Parameters:
name - the name of the VM group
options - optional parameters
Returns:
the new VMGroup

updateInstanceGroup

com.google.common.util.concurrent.ListenableFuture<VMGroup> updateInstanceGroup(long id,
                                                                                UpdateVMGroupOptions... options)
Modify a VM group

Parameters:
name - the new name of the group
Returns:
the modified VMGroup

deleteInstanceGroup

com.google.common.util.concurrent.ListenableFuture<Void> deleteInstanceGroup(long id)
Delete a VM group

Parameters:
id - the ID of the VM group
Returns:
a future with a void data type


Copyright © 2009-2012 jclouds. All Rights Reserved.