org.jclouds.cloudstack.features
Interface GlobalHostAsyncClient


public interface GlobalHostAsyncClient

Provides asynchronous access to cloudstack via their REST API.

Author:
Andrei Savu
See Also:
GlobalHostClient,

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Cluster> addCluster(long zoneId, String clusterName, Host.ClusterType clusterType, String hypervisor, AddClusterOptions... options)
          Adds a new cluster.
 com.google.common.util.concurrent.ListenableFuture<Host> addHost(long zoneId, String url, String hypervisor, String username, String password, AddHostOptions... options)
          Adds a new host.
 com.google.common.util.concurrent.ListenableFuture<Host> addSecondaryStorage(String url, AddSecondaryStorageOptions... options)
          Adds secondary storage.
 com.google.common.util.concurrent.ListenableFuture<Long> cancelHostMaintenance(long hostId)
          Cancels host maintenance.
 com.google.common.util.concurrent.ListenableFuture<Void> deleteCluster(long clusterId)
          Deletes a cluster.
 com.google.common.util.concurrent.ListenableFuture<Void> deleteHost(long hostId, DeleteHostOptions... options)
          Deletes a host.
 com.google.common.util.concurrent.ListenableFuture<Set<Cluster>> listClusters(ListClustersOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Host>> listHosts(ListHostsOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<Long> prepareHostForMaintenance(long hostId)
          Prepares a host for maintenance.
 com.google.common.util.concurrent.ListenableFuture<Long> reconnectHost(long hostId)
          Reconnects a host.
 com.google.common.util.concurrent.ListenableFuture<Cluster> updateCluster(long clusterId, UpdateClusterOptions... options)
          Updates an existing cluster.
 com.google.common.util.concurrent.ListenableFuture<Void> updateClusterPassword(long clusterId, String username, String password)
          Update password of a cluster on management server.
 com.google.common.util.concurrent.ListenableFuture<Host> updateHost(long hostId, UpdateHostOptions... options)
          Updates a host.
 com.google.common.util.concurrent.ListenableFuture<Void> updateHostPassword(long hostId, String username, String password)
          Update password of a host on management server.
 

Method Detail

listHosts

com.google.common.util.concurrent.ListenableFuture<Set<Host>> listHosts(ListHostsOptions... options)
See Also:
GlobalHostClient.listHosts(org.jclouds.cloudstack.options.ListHostsOptions...)

addHost

com.google.common.util.concurrent.ListenableFuture<Host> addHost(long zoneId,
                                                                 String url,
                                                                 String hypervisor,
                                                                 String username,
                                                                 String password,
                                                                 AddHostOptions... options)
Adds a new host.

Parameters:
zoneId - the Zone ID for the host
url - the host URL
hypervisor - hypervisor type of the host
username - the username for the host
password - the password for the host
options - optional arguments
Returns:
the new host.

updateHost

com.google.common.util.concurrent.ListenableFuture<Host> updateHost(long hostId,
                                                                    UpdateHostOptions... options)
Updates a host.

Parameters:
hostId - the ID of the host to update
options - optional arguments
Returns:
the modified host.

updateHostPassword

com.google.common.util.concurrent.ListenableFuture<Void> updateHostPassword(long hostId,
                                                                            String username,
                                                                            String password)
Update password of a host on management server.

Parameters:
hostId - the host ID
username - the username for the host
password - the password for the host

deleteHost

com.google.common.util.concurrent.ListenableFuture<Void> deleteHost(long hostId,
                                                                    DeleteHostOptions... options)
Deletes a host.

Parameters:
hostId - the host ID
options - optional arguments

prepareHostForMaintenance

com.google.common.util.concurrent.ListenableFuture<Long> prepareHostForMaintenance(long hostId)
Prepares a host for maintenance.

Parameters:
hostId - the host ID
Returns:
a job reference number for tracking this asynchronous job.

cancelHostMaintenance

com.google.common.util.concurrent.ListenableFuture<Long> cancelHostMaintenance(long hostId)
Cancels host maintenance.

Parameters:
hostId - the host ID
Returns:
a job reference number for tracking this asynchronous job.

reconnectHost

com.google.common.util.concurrent.ListenableFuture<Long> reconnectHost(long hostId)
Reconnects a host.

Parameters:
hostId -
Returns:
a job reference number for tracking this asynchronous job.

addSecondaryStorage

com.google.common.util.concurrent.ListenableFuture<Host> addSecondaryStorage(String url,
                                                                             AddSecondaryStorageOptions... options)
Adds secondary storage.

Parameters:
url - the URL for the secondary storage
options - optional arguments
Returns:
the host of the storage.

listClusters

com.google.common.util.concurrent.ListenableFuture<Set<Cluster>> listClusters(ListClustersOptions... options)
See Also:
GlobalHostClient.listClusters(org.jclouds.cloudstack.options.ListClustersOptions...)

addCluster

com.google.common.util.concurrent.ListenableFuture<Cluster> addCluster(long zoneId,
                                                                       String clusterName,
                                                                       Host.ClusterType clusterType,
                                                                       String hypervisor,
                                                                       AddClusterOptions... options)
Adds a new cluster.

Parameters:
zoneId - the Zone ID for the cluster
clusterName - the cluster name
clusterType - type of the cluster
hypervisor - hypervisor type of the cluster
options - optional arguments
Returns:
the new cluster.

updateCluster

com.google.common.util.concurrent.ListenableFuture<Cluster> updateCluster(long clusterId,
                                                                          UpdateClusterOptions... options)
Updates an existing cluster.

Parameters:
clusterId - the ID of the cluster
options - optional arguments
Returns:
the modified cluster

updateClusterPassword

com.google.common.util.concurrent.ListenableFuture<Void> updateClusterPassword(long clusterId,
                                                                               String username,
                                                                               String password)
Update password of a cluster on management server.

Parameters:
clusterId - the cluster ID
username - the username for the cluster
password - the password for the cluster

deleteCluster

com.google.common.util.concurrent.ListenableFuture<Void> deleteCluster(long clusterId)
Deletes a cluster.

Parameters:
clusterId - the cluster ID


Copyright © 2009-2012 jclouds. All Rights Reserved.