Class DockerComputeServiceAdapter
java.lang.Object
org.jclouds.docker.compute.strategy.DockerComputeServiceAdapter
- All Implemented Interfaces:
ComputeServiceAdapter<Container,Hardware, Image, Location>
@Singleton
public class DockerComputeServiceAdapter
extends Object
implements ComputeServiceAdapter<Container,Hardware,Image,Location>
defines the connection between the
DockerApi 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNodeWithGroupEncodedIntoName(String group, String name, Template template) protected static com.google.common.base.Predicate<Image>createPredicateMatchingRepoTags(String imageIdOrName) voiddestroyNode(String id) Method based onImageApi.listImages().listNodesByIds(Iterable<String> ids) voidrebootNode(String id) voidresumeNode(String id) voidsuspendNode(String id)
-
Field Details
-
PREFIX_DOCKER_HUB_HOST
Some Docker versions returns host prefix even for images from Docker hub in repoTags field. We use this constant to correctly identify requested image name.- See Also:
-
SUFFIX_LATEST_VERSION
(Optional) Suffix used, when image version is not used during searching images.- See Also:
-
logger
-
-
Constructor Details
-
DockerComputeServiceAdapter
-
-
Method Details
-
createNodeWithGroupEncodedIntoName
public ComputeServiceAdapter.NodeAndInitialCredentials<Container> createNodeWithGroupEncodedIntoName(String group, String name, Template template) - Specified by:
createNodeWithGroupEncodedIntoNamein interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
listHardwareProfiles
- Specified by:
listHardwareProfilesin interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
listImages
Method based onImageApi.listImages(). It retrieves additional information by inspecting each image.- Specified by:
listImagesin interfaceComputeServiceAdapter<Container,Hardware, Image, Location> - See Also:
-
getImage
-
listNodes
-
listNodesByIds
- Specified by:
listNodesByIdsin interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
listLocations
- Specified by:
listLocationsin interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
getNode
-
destroyNode
- Specified by:
destroyNodein interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
rebootNode
- Specified by:
rebootNodein interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
resumeNode
- Specified by:
resumeNodein interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
suspendNode
- Specified by:
suspendNodein interfaceComputeServiceAdapter<Container,Hardware, Image, Location>
-
createPredicateMatchingRepoTags
-