org.jclouds.gogrid.services
Interface GridServerAsyncClient


public interface GridServerAsyncClient

Provides asynchronous access to GoGrid via their REST API.

Author:
Adrian Cole, Oleksiy Yarmula
See Also:
GridServerClient,

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Server> addServer(String name, String image, String ram, String ip, AddServerOptions... addServerOptions)
           
 com.google.common.util.concurrent.ListenableFuture<Server> deleteById(long id)
           
 com.google.common.util.concurrent.ListenableFuture<Server> deleteByName(String name)
           
 com.google.common.util.concurrent.ListenableFuture<Server> editServerDescription(long id, String newDescription)
           
 com.google.common.util.concurrent.ListenableFuture<Server> editServerRam(long id, String ram)
           
 com.google.common.util.concurrent.ListenableFuture<Server> editServerType(long id, String newType)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Option>> getDatacenters()
           
 com.google.common.util.concurrent.ListenableFuture<Set<Option>> getRamSizes()
           
 com.google.common.util.concurrent.ListenableFuture<Credentials> getServerCredentials(long id)
           
 com.google.common.util.concurrent.ListenableFuture<Map<String,Credentials>> getServerCredentialsList()
           
 com.google.common.util.concurrent.ListenableFuture<Set<Server>> getServerList(GetServerListOptions... getServerListOptions)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Server>> getServersById(long... ids)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Server>> getServersByName(String... names)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Option>> getTypes()
           
 com.google.common.util.concurrent.ListenableFuture<Server> power(String idOrName, PowerCommand power)
           
 

Method Detail

getServerList

com.google.common.util.concurrent.ListenableFuture<Set<Server>> getServerList(GetServerListOptions... getServerListOptions)
See Also:
GridServerClient.getServerList(org.jclouds.gogrid.options.GetServerListOptions...)

getServersByName

com.google.common.util.concurrent.ListenableFuture<Set<Server>> getServersByName(String... names)
See Also:
GridServerClient.getServersByName(String...)

getServersById

com.google.common.util.concurrent.ListenableFuture<Set<Server>> getServersById(long... ids)
See Also:
GridServerClient#getServersById(Long...)

getServerCredentialsList

com.google.common.util.concurrent.ListenableFuture<Map<String,Credentials>> getServerCredentialsList()
See Also:
GridServerClient.getServerCredentialsList()

getServerCredentials

com.google.common.util.concurrent.ListenableFuture<Credentials> getServerCredentials(long id)
See Also:
GridServerClient.getServerCredentials(long)

addServer

com.google.common.util.concurrent.ListenableFuture<Server> addServer(String name,
                                                                     String image,
                                                                     String ram,
                                                                     String ip,
                                                                     AddServerOptions... addServerOptions)
See Also:
GridServerClient.addServer(String, String, String, String, org.jclouds.gogrid.options.AddServerOptions...)

power

com.google.common.util.concurrent.ListenableFuture<Server> power(String idOrName,
                                                                 PowerCommand power)
See Also:
GridServerClient.power(String, org.jclouds.gogrid.domain.PowerCommand)

deleteById

com.google.common.util.concurrent.ListenableFuture<Server> deleteById(long id)
See Also:
GridServerClient#deleteById(Long)

deleteByName

com.google.common.util.concurrent.ListenableFuture<Server> deleteByName(String name)
See Also:
GridServerClient.deleteByName(String)

getRamSizes

com.google.common.util.concurrent.ListenableFuture<Set<Option>> getRamSizes()
See Also:
GridServerClient.getRamSizes()

getTypes

com.google.common.util.concurrent.ListenableFuture<Set<Option>> getTypes()
See Also:
GridServerClient.getTypes()

getDatacenters

com.google.common.util.concurrent.ListenableFuture<Set<Option>> getDatacenters()
See Also:
GridServerClient.getDatacenters()

editServerDescription

com.google.common.util.concurrent.ListenableFuture<Server> editServerDescription(long id,
                                                                                 String newDescription)
See Also:
GridServerClient.editServerDescription(long, java.lang.String)

editServerRam

com.google.common.util.concurrent.ListenableFuture<Server> editServerRam(long id,
                                                                         String ram)
See Also:
GridServerClient.editServerRam(long, java.lang.String)

editServerType

com.google.common.util.concurrent.ListenableFuture<Server> editServerType(long id,
                                                                          String newType)
See Also:
GridServerClient.editServerType(long, java.lang.String)


Copyright © 2009-2012 jclouds. All Rights Reserved.