org.jclouds.glesys.features
Interface ServerAsyncApi


public interface ServerAsyncApi

Provides asynchronous access to Server via their REST API.

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

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<ResourceUsage> getResourceUsage(String id, String resource, String resolution)
           
 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<ServerDetails> resetPassword(String id, String password)
           
 com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> resetServerLimit(String id, String type)
           
 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:
ServerApi.listServers()

getServerDetails

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

getServerStatus

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

getServerLimits

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

getConsole

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

getAllowedArgumentsForCreateServerByPlatform

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

listTemplates

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

resetServerLimit

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

rebootServer

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

startServer

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

stopServer

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

hardStopServer

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

createServerWithHostnameAndRootPassword

com.google.common.util.concurrent.ListenableFuture<ServerDetails> createServerWithHostnameAndRootPassword(ServerSpec serverSpec,
                                                                                                          String hostname,
                                                                                                          String rootPassword,
                                                                                                          CreateServerOptions... options)
See Also:
ServerApi.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:
ServerApi.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:
ServerApi.editServer(java.lang.String, org.jclouds.glesys.options.EditServerOptions...)

destroyServer

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

resetPassword

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

getResourceUsage

com.google.common.util.concurrent.ListenableFuture<ResourceUsage> getResourceUsage(String id,
                                                                                   String resource,
                                                                                   String resolution)
See Also:
ServerApi.getResourceUsage(java.lang.String, java.lang.String, java.lang.String)


Copyright © 2009-2012 jclouds. All Rights Reserved.