org.jclouds.elasticstack.compute
Class ElasticStackComputeServiceAdapter
java.lang.Object
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 classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter |
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N> |
|
Field Summary |
protected org.jclouds.logging.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
ElasticStackComputeServiceAdapter
@Inject
public ElasticStackComputeServiceAdapter(ElasticStackClient client,
com.google.common.base.Predicate<DriveInfo> driveNotClaimed,
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)
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>
getImage
public DriveInfo getImage(String id)
- Specified by:
getImage 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-2013 jclouds. All Rights Reserved.