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 the
ElasticStackApi implementation
and the jclouds ComputeService-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
ComputeServiceAdapter.NodeAndInitialCredentials<N extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElasticStackComputeServiceAdapter(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
Modifier and TypeMethodDescriptioncreateNodeWithGroupEncodedIntoName(String tag, String name, Template template) voiddestroyNode(String id) look up the current standard images and do not error out, if they are not found.Iterable<org.jclouds.domain.Location>listNodesByIds(Iterable<String> ids) voidrebootNode(String id) voidresumeNode(String id) voidsuspendNode(String id)
-
Field Details
-
logger
@Named("jclouds.compute") protected org.jclouds.logging.Logger logger
-
-
Constructor Details
-
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 Details
-
createNodeWithGroupEncodedIntoName
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template) - Specified by:
createNodeWithGroupEncodedIntoNamein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
listHardwareProfiles
- Specified by:
listHardwareProfilesin interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
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
- Specified by:
listNodesin interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
listNodesByIds
- Specified by:
listNodesByIdsin interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
listLocations
- Specified by:
listLocationsin interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
getNode
- Specified by:
getNodein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
getImage
- Specified by:
getImagein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
destroyNode
- Specified by:
destroyNodein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
rebootNode
- Specified by:
rebootNodein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
resumeNode
- Specified by:
resumeNodein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-
suspendNode
- Specified by:
suspendNodein interfaceComputeServiceAdapter<ServerInfo,Hardware, DriveInfo, org.jclouds.domain.Location>
-