Class GoGridComputeServiceAdapter
- java.lang.Object
-
- org.jclouds.gogrid.compute.strategy.GoGridComputeServiceAdapter
-
- All Implemented Interfaces:
ComputeServiceAdapter<Server,Hardware,ServerImage,Option>
@Singleton public class GoGridComputeServiceAdapter extends Object implements ComputeServiceAdapter<Server,Hardware,ServerImage,Option>
defines the connection between theGoGridApiimplementation 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 Modifier Constructor Description protectedGoGridComputeServiceAdapter(GoGridApi client, com.google.common.base.Function<Hardware,String> sizeToRam, ComputeServiceConstants.Timeouts timeouts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeServiceAdapter.NodeAndInitialCredentials<Server>createNodeWithGroupEncodedIntoName(String group, String name, Template template)voiddestroyNode(String id)ServerImagegetImage(String id)ServergetNode(String id)Iterable<Hardware>listHardwareProfiles()Iterable<ServerImage>listImages()Iterable<Option>listLocations()Iterable<Server>listNodes()Iterable<Server>listNodesByIds(Iterable<String> ids)voidrebootNode(String id)voidresumeNode(String id)voidsuspendNode(String id)
-
-
-
Constructor Detail
-
GoGridComputeServiceAdapter
@Inject protected GoGridComputeServiceAdapter(GoGridApi client, com.google.common.base.Function<Hardware,String> sizeToRam, ComputeServiceConstants.Timeouts timeouts)
-
-
Method Detail
-
createNodeWithGroupEncodedIntoName
public ComputeServiceAdapter.NodeAndInitialCredentials<Server> createNodeWithGroupEncodedIntoName(String group, String name, Template template)
- Specified by:
createNodeWithGroupEncodedIntoNamein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
listHardwareProfiles
public Iterable<Hardware> listHardwareProfiles()
- Specified by:
listHardwareProfilesin interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
listImages
public Iterable<ServerImage> listImages()
- Specified by:
listImagesin interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
listNodes
public Iterable<Server> listNodes()
- Specified by:
listNodesin interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
listNodesByIds
public Iterable<Server> listNodesByIds(Iterable<String> ids)
- Specified by:
listNodesByIdsin interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
listLocations
public Iterable<Option> listLocations()
- Specified by:
listLocationsin interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
getNode
public Server getNode(String id)
- Specified by:
getNodein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
getImage
public ServerImage getImage(String id)
- Specified by:
getImagein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
destroyNode
public void destroyNode(String id)
- Specified by:
destroyNodein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
rebootNode
public void rebootNode(String id)
- Specified by:
rebootNodein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
resumeNode
public void resumeNode(String id)
- Specified by:
resumeNodein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
suspendNode
public void suspendNode(String id)
- Specified by:
suspendNodein interfaceComputeServiceAdapter<Server,Hardware,ServerImage,Option>
-
-