org.jclouds.glesys.features
Interface ServerAsyncClient


public interface ServerAsyncClient

Provides asynchronous access to Server via their REST API.

Author:
Adrian Cole, Adam Lowe
See Also:
ServerClient,

Method Summary
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> cloneServer(String serverid, String hostname, CloneServerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> createServerWithHostnameAndRootPassword(ServerSpec serverSpec, String hostname, String rootPassword, CreateServerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<Void> destroyServer(String id, DestroyServerOptions keepIp)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> editServer(String serverid, EditServerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<Map<String,AllowedArgumentsForCreateServer>> getAllowedArgumentsForCreateServerByPlatform()
           
 com.google.common.util.concurrent.ListenableFuture<Console> getConsole(String id)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> getServerDetails(String id)
           
 com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> getServerLimits(String id)
           
 com.google.common.util.concurrent.ListenableFuture<ServerStatus> getServerStatus(String id, ServerStatusOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> hardStopServer(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Server>> listServers()
           
 com.google.common.util.concurrent.ListenableFuture<Set<OSTemplate>> listTemplates()
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> rebootServer(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Void> resetPassword(String id, String password)
           
 com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> resetServerLimit(String id, String type)
           
 void resourceUsage(String id, String resource, String resolution)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> startServer(String id)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> stopServer(String id)
           
 

Method Detail

listServers

com.google.common.util.concurrent.ListenableFuture<Set<Server>> listServers()
See Also:
ServerClient.listServers()

getServerDetails

com.google.common.util.concurrent.ListenableFuture<ServerDetails> getServerDetails(String id)
See Also:
ServerClient.getServerDetails(java.lang.String)

getServerStatus

com.google.common.util.concurrent.ListenableFuture<ServerStatus> getServerStatus(String id,
                                                                                 ServerStatusOptions... options)
See Also:
ServerClient.getServerStatus(java.lang.String, org.jclouds.glesys.options.ServerStatusOptions...)

getServerLimits

com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> getServerLimits(String id)
See Also:
ServerClient.getServerLimits(java.lang.String)

getConsole

com.google.common.util.concurrent.ListenableFuture<Console> getConsole(String id)
See Also:
ServerClient.getConsole(java.lang.String)

getAllowedArgumentsForCreateServerByPlatform

com.google.common.util.concurrent.ListenableFuture<Map<String,AllowedArgumentsForCreateServer>> getAllowedArgumentsForCreateServerByPlatform()
See Also:
ServerClient.getAllowedArgumentsForCreateServerByPlatform()

listTemplates

com.google.common.util.concurrent.ListenableFuture<Set<OSTemplate>> listTemplates()
See Also:
ServerClient.listTemplates()

resetServerLimit

com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> resetServerLimit(String id,
                                                                                                   String type)
See Also:
ServerClient.stopServer(java.lang.String)

rebootServer

com.google.common.util.concurrent.ListenableFuture<ServerDetails> rebootServer(String id)
See Also:
ServerClient.rebootServer(java.lang.String)

startServer

com.google.common.util.concurrent.ListenableFuture<ServerDetails> startServer(String id)
See Also:
ServerClient.startServer(java.lang.String)

stopServer

com.google.common.util.concurrent.ListenableFuture<ServerDetails> stopServer(String id)
See Also:
ServerClient.stopServer(java.lang.String)

hardStopServer

com.google.common.util.concurrent.ListenableFuture<ServerDetails> hardStopServer(String id)
See Also:
ServerClient.hardStopServer(java.lang.String)

createServerWithHostnameAndRootPassword

com.google.common.util.concurrent.ListenableFuture<ServerDetails> createServerWithHostnameAndRootPassword(ServerSpec serverSpec,
                                                                                                          String hostname,
                                                                                                          String rootPassword,
                                                                                                          CreateServerOptions... options)
See Also:
ServerClient.createServerWithHostnameAndRootPassword(org.jclouds.glesys.domain.ServerSpec, java.lang.String, java.lang.String, org.jclouds.glesys.options.CreateServerOptions...)

cloneServer

com.google.common.util.concurrent.ListenableFuture<ServerDetails> cloneServer(String serverid,
                                                                              String hostname,
                                                                              CloneServerOptions... options)
See Also:
ServerClient.cloneServer(java.lang.String, java.lang.String, org.jclouds.glesys.options.CloneServerOptions...)

editServer

com.google.common.util.concurrent.ListenableFuture<ServerDetails> editServer(String serverid,
                                                                             EditServerOptions... options)
See Also:
ServerClient.editServer(java.lang.String, org.jclouds.glesys.options.EditServerOptions...)

destroyServer

com.google.common.util.concurrent.ListenableFuture<Void> destroyServer(String id,
                                                                       DestroyServerOptions keepIp)
See Also:
ServerClient.destroyServer(java.lang.String, org.jclouds.glesys.options.DestroyServerOptions)

resetPassword

com.google.common.util.concurrent.ListenableFuture<Void> resetPassword(String id,
                                                                       String password)
See Also:
ServerClient.resetPassword(java.lang.String, java.lang.String)

resourceUsage

void resourceUsage(String id,
                   String resource,
                   String resolution)
See Also:
ServerClient.resourceUsage(java.lang.String, java.lang.String, java.lang.String)


Copyright © 2009-2012 jclouds. All Rights Reserved.