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> clone(String serverid, String hostname, CloneServerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> createWithHostnameAndRootPassword(ServerSpec serverSpec, String hostname, String rootPassword, CreateServerOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<Void> destroy(String id, DestroyServerOptions keepIp)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> get(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Map<String,AllowedArgumentsForCreateServer>> getAllowedArgumentsForCreateByPlatform()
           
 com.google.common.util.concurrent.ListenableFuture<Console> getConsole(String id)
           
 com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> getLimits(String id)
           
 com.google.common.util.concurrent.ListenableFuture<ResourceUsage> getResourceUsage(String id, String resource, String resolution)
           
 com.google.common.util.concurrent.ListenableFuture<ServerStatus> getStatus(String id, ServerStatusOptions... options)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> hardStop(String id)
           
 com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.FluentIterable<Server>> list()
           
 com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.FluentIterable<OSTemplate>> listTemplates()
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> reboot(String id)
           
 com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> resetLimit(String id, String type)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> resetPassword(String id, String password)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> start(String id)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> stop(String id)
           
 com.google.common.util.concurrent.ListenableFuture<ServerDetails> update(String serverid, UpdateServerOptions options)
           
 

Method Detail

list

@Named(value="server:list")
com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.FluentIterable<Server>> list()
See Also:
ServerApi.list()

get

@Named(value="server:details")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> get(String id)
See Also:
ServerApi.get(java.lang.String)

getStatus

@Named(value="server:status")
com.google.common.util.concurrent.ListenableFuture<ServerStatus> getStatus(String id,
                                                                                 ServerStatusOptions... options)
See Also:
ServerApi.getStatus(java.lang.String, org.jclouds.glesys.options.ServerStatusOptions...)

getLimits

@Named(value="server:limits")
com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> getLimits(String id)
See Also:
ServerApi.getLimits(java.lang.String)

getConsole

@Named(value="server:console")
com.google.common.util.concurrent.ListenableFuture<Console> getConsole(String id)
See Also:
ServerApi.getConsole(java.lang.String)

getAllowedArgumentsForCreateByPlatform

@Named(value="server:allowedarguments")
com.google.common.util.concurrent.ListenableFuture<Map<String,AllowedArgumentsForCreateServer>> getAllowedArgumentsForCreateByPlatform()
See Also:
ServerApi.getAllowedArgumentsForCreateByPlatform()

listTemplates

@Named(value="server:templates")
com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.FluentIterable<OSTemplate>> listTemplates()
See Also:
ServerApi.listTemplates()

resetLimit

@Named(value="server:resetlimit")
com.google.common.util.concurrent.ListenableFuture<SortedMap<String,ServerLimit>> resetLimit(String id,
                                                                                                   String type)
See Also:
ServerApi.stop(java.lang.String)

reboot

@Named(value="server:reboot")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> reboot(String id)
See Also:
ServerApi.reboot(java.lang.String)

start

@Named(value="server:start")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> start(String id)
See Also:
ServerApi.start(java.lang.String)

stop

@Named(value="server:stop")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> stop(String id)
See Also:
ServerApi.stop(java.lang.String)

hardStop

@Named(value="server:stop:hard")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> hardStop(String id)
See Also:
ServerApi.hardStop(java.lang.String)

createWithHostnameAndRootPassword

@Named(value="server:create")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> createWithHostnameAndRootPassword(ServerSpec serverSpec,
                                                                                                          String hostname,
                                                                                                          String rootPassword,
                                                                                                          CreateServerOptions... options)
See Also:
ServerApi.createWithHostnameAndRootPassword(org.jclouds.glesys.domain.ServerSpec, java.lang.String, java.lang.String, org.jclouds.glesys.options.CreateServerOptions...)

clone

@Named(value="server:clone")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> clone(String serverid,
                                                                              String hostname,
                                                                              CloneServerOptions... options)
See Also:
ServerApi.clone(java.lang.String, java.lang.String, org.jclouds.glesys.options.CloneServerOptions...)

update

@Named(value="server:edit")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> update(String serverid,
                                                                               UpdateServerOptions options)
See Also:
ServerApi.update(java.lang.String, org.jclouds.glesys.options.UpdateServerOptions)

destroy

@Named(value="server:destroy")
com.google.common.util.concurrent.ListenableFuture<Void> destroy(String id,
                                                                       DestroyServerOptions keepIp)
See Also:
ServerApi.destroy(java.lang.String, org.jclouds.glesys.options.DestroyServerOptions)

resetPassword

@Named(value="server:resetpassword")
com.google.common.util.concurrent.ListenableFuture<ServerDetails> resetPassword(String id,
                                                                                      String password)
See Also:
ServerApi.resetPassword(java.lang.String, java.lang.String)

getResourceUsage

@Named(value="server:resourceusage")
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-2013 The Apache Software Foundation. All Rights Reserved.