org.jclouds.joyent.cloudapi.v6_5.features
Interface MachineAsyncApi


public interface MachineAsyncApi

Provides asynchronous access to Machine via their REST API.

Author:
Gerald Pereira
See Also:
MachineApi, api doc

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Machine> createWithDataset(String datasetURN)
           
 com.google.common.util.concurrent.ListenableFuture<Machine> createWithDataset(String datasetURN, CreateMachineOptions options)
           
 com.google.common.util.concurrent.ListenableFuture<Void> delete(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Machine> get(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Set<Machine>> list()
           
 com.google.common.util.concurrent.ListenableFuture<Void> reboot(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Void> resize(String id, String packageJoyentCloud)
           
 com.google.common.util.concurrent.ListenableFuture<Void> start(String id)
           
 com.google.common.util.concurrent.ListenableFuture<Void> stop(String id)
           
 

Method Detail

list

com.google.common.util.concurrent.ListenableFuture<Set<Machine>> list()
See Also:
MachineApi.list()

get

com.google.common.util.concurrent.ListenableFuture<Machine> get(String id)
See Also:
MachineApi.get(java.lang.String)

createWithDataset

com.google.common.util.concurrent.ListenableFuture<Machine> createWithDataset(String datasetURN)
See Also:
MachineApi.createWithDataset(String)

createWithDataset

com.google.common.util.concurrent.ListenableFuture<Machine> createWithDataset(String datasetURN,
                                                                              CreateMachineOptions options)
See Also:
MachineApi.createWithDataset(String, CreateMachineOptions)

stop

com.google.common.util.concurrent.ListenableFuture<Void> stop(String id)
See Also:
MachineApi.stop(java.lang.String)

start

com.google.common.util.concurrent.ListenableFuture<Void> start(String id)
See Also:
MachineApi.start(java.lang.String)

reboot

com.google.common.util.concurrent.ListenableFuture<Void> reboot(String id)
See Also:
MachineApi.reboot(java.lang.String)

resize

com.google.common.util.concurrent.ListenableFuture<Void> resize(String id,
                                                                String packageJoyentCloud)
See Also:
MachineApi.resize(java.lang.String, java.lang.String)

delete

com.google.common.util.concurrent.ListenableFuture<Void> delete(String id)
See Also:
MachineApi.delete(java.lang.String)


Copyright © 2009-2012 jclouds. All Rights Reserved.