Package org.jclouds.elasticstack.compute
Class ElasticStackComputeServiceAdapter
- java.lang.Object
-
- org.jclouds.elasticstack.compute.ElasticStackComputeServiceAdapter
-
- All Implemented Interfaces:
ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
@Singleton public class ElasticStackComputeServiceAdapter extends Object implements ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
defines the connection between theElasticStackApiimplementation and the jcloudsComputeService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
ComputeServiceAdapter.NodeAndInitialCredentials<N extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jclouds.logging.Loggerlogger
-
Constructor Summary
Constructors Constructor Description ElasticStackComputeServiceAdapter(ElasticStackApi client, com.google.common.base.Predicate<DriveInfo> driveNotClaimed, com.google.common.base.Supplier<Map<String,WellKnownImage>> preinstalledImages, com.google.common.cache.LoadingCache<String,DriveInfo> cache, String defaultVncPassword, com.google.common.util.concurrent.ListeningExecutorService userExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo>createNodeWithGroupEncodedIntoName(String tag, String name, Template template)voiddestroyNode(String id)DriveInfogetImage(String id)ServerInfogetNode(String id)Iterable<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)voidrebootNode(String id)voidresumeNode(String id)voidsuspendNode(String id)
-
-
-
Constructor Detail
-
ElasticStackComputeServiceAdapter
@Inject public ElasticStackComputeServiceAdapter(ElasticStackApi client, com.google.common.base.Predicate<DriveInfo> driveNotClaimed, com.google.common.base.Supplier<Map<String,WellKnownImage>> preinstalledImages, com.google.common.cache.LoadingCache<String,DriveInfo> cache, @Named("jclouds.elasticstack.vnc-password") String defaultVncPassword, @Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor)
-
-
Method Detail
-
createNodeWithGroupEncodedIntoName
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template)
- Specified by:
createNodeWithGroupEncodedIntoNamein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
listHardwareProfiles
public Iterable<Hardware> listHardwareProfiles()
- Specified by:
listHardwareProfilesin interfaceComputeServiceAdapter<ServerInfo,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:
listImagesin interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
listNodes
public Iterable<ServerInfo> listNodes()
- Specified by:
listNodesin interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
listNodesByIds
public Iterable<ServerInfo> listNodesByIds(Iterable<String> ids)
- Specified by:
listNodesByIdsin interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
listLocations
public Iterable<org.jclouds.domain.Location> listLocations()
- Specified by:
listLocationsin interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
getNode
public ServerInfo getNode(String id)
- Specified by:
getNodein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
getImage
public DriveInfo getImage(String id)
- Specified by:
getImagein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
destroyNode
public void destroyNode(String id)
- Specified by:
destroyNodein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
rebootNode
public void rebootNode(String id)
- Specified by:
rebootNodein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
resumeNode
public void resumeNode(String id)
- Specified by:
resumeNodein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
suspendNode
public void suspendNode(String id)
- Specified by:
suspendNodein interfaceComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,org.jclouds.domain.Location>
-
-