@Singleton public class ElasticStackComputeServiceAdapter extends Object implements org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
ElasticStackClient implementation
and the jclouds ComputeService| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
ElasticStackComputeServiceAdapter(ElasticStackClient client,
com.google.common.base.Predicate<DriveInfo> driveNotClaimed,
Map<String,WellKnownImage> preinstalledImages,
com.google.common.cache.LoadingCache<String,DriveInfo> cache,
String defaultVncPassword,
com.google.common.util.concurrent.ListeningExecutorService userExecutor) |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> |
createNodeWithGroupEncodedIntoName(String tag,
String name,
org.jclouds.compute.domain.Template template) |
void |
destroyNode(String id) |
DriveInfo |
getImage(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() |
Iterable<ServerInfo> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@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") com.google.common.util.concurrent.ListeningExecutorService userExecutor)
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, org.jclouds.compute.domain.Template template)
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public Iterable<DriveInfo> listImages()
listImages in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public Iterable<ServerInfo> listNodes()
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public Iterable<ServerInfo> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public Iterable<org.jclouds.domain.Location> listLocations()
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public ServerInfo getNode(String id)
getNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public DriveInfo getImage(String id)
getImage in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public void destroyNode(String id)
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public void rebootNode(String id)
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public void resumeNode(String id)
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>public void suspendNode(String id)
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.