org.jclouds.elasticstack.compute
Class ElasticStackComputeServiceAdapter

java.lang.Object
  extended by org.jclouds.elasticstack.compute.ElasticStackComputeServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

@Singleton
public class ElasticStackComputeServiceAdapter
extends Object
implements org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

defines the connection between the ElasticStackClient implementation and the jclouds ComputeService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N>
 
Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
ElasticStackComputeServiceAdapter(ElasticStackClient client, com.google.common.base.Predicate<DriveInfo> driveNotClaimed, org.jclouds.location.suppliers.JustProvider locationSupplier, Map<String,WellKnownImage> preinstalledImages, com.google.common.cache.LoadingCache<String,DriveInfo> cache, String defaultVncPassword, ExecutorService executor)
           
 
Method Summary
 org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, org.jclouds.compute.domain.Template template)
           
 void destroyNode(String id)
           
 ServerInfo getNode(String id)
           
 Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
           
 Iterable<DriveInfo> listImages()
          look up the current standard images and do not error out, if they are not found.
 Iterable<org.jclouds.domain.Location> listLocations()
           
 Iterable<ServerInfo> listNodes()
           
 void rebootNode(String id)
           
 void resumeNode(String id)
           
 void suspendNode(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
Constructor Detail

ElasticStackComputeServiceAdapter

@Inject
public ElasticStackComputeServiceAdapter(ElasticStackClient client,
                                                com.google.common.base.Predicate<DriveInfo> driveNotClaimed,
                                                org.jclouds.location.suppliers.JustProvider locationSupplier,
                                                Map<String,WellKnownImage> preinstalledImages,
                                                com.google.common.cache.LoadingCache<String,DriveInfo> cache,
                                                @Named(value="jclouds.elasticstack.vnc-password")
                                                String defaultVncPassword,
                                                @Named(value="jclouds.user-threads")
                                                ExecutorService executor)
Method Detail

createNodeWithGroupEncodedIntoName

public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag,
                                                                                                                          String name,
                                                                                                                          org.jclouds.compute.domain.Template template)
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

listHardwareProfiles

public Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

listImages

public Iterable<DriveInfo> listImages()
look up the current standard images and do not error out, if they are not found.

Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

listNodes

public Iterable<ServerInfo> listNodes()
Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

listLocations

public Iterable<org.jclouds.domain.Location> listLocations()
Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

getNode

public ServerInfo getNode(String id)
Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

destroyNode

public void destroyNode(String id)
Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

rebootNode

public void rebootNode(String id)
Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

resumeNode

public void resumeNode(String id)
Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

suspendNode

public void suspendNode(String id)
Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>


Copyright © 2009-2012 jclouds. All Rights Reserved.