org.jclouds.gogrid.compute.strategy
Class GoGridComputeServiceAdapter
java.lang.Object
org.jclouds.gogrid.compute.strategy.GoGridComputeServiceAdapter
- All Implemented Interfaces:
- org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
@Singleton
public class GoGridComputeServiceAdapter
- extends Object
- implements org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
defines the connection between the GoGridApi implementation and the jclouds
ComputeService
| Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter |
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N> |
|
Field Summary |
protected org.jclouds.logging.Logger |
logger
|
|
Constructor Summary |
protected |
GoGridComputeServiceAdapter(GoGridApi client,
com.google.common.base.Function<org.jclouds.compute.domain.Hardware,String> sizeToRam,
org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.jclouds.logging.Logger logger
GoGridComputeServiceAdapter
@Inject
protected GoGridComputeServiceAdapter(GoGridApi client,
com.google.common.base.Function<org.jclouds.compute.domain.Hardware,String> sizeToRam,
org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts)
createNodeWithGroupEncodedIntoName
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<Server> createNodeWithGroupEncodedIntoName(String group,
String name,
org.jclouds.compute.domain.Template template)
- Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
listHardwareProfiles
public Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
- Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
listImages
public Iterable<ServerImage> listImages()
- Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
listNodes
public Iterable<Server> listNodes()
- Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
listNodesByIds
public Iterable<Server> listNodesByIds(Iterable<String> ids)
- Specified by:
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
listLocations
public Iterable<Option> listLocations()
- Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
getNode
public Server getNode(String id)
- Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
getImage
public ServerImage getImage(String id)
- Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
destroyNode
public void destroyNode(String id)
- Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
rebootNode
public void rebootNode(String id)
- Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
resumeNode
public void resumeNode(String id)
- Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
suspendNode
public void suspendNode(String id)
- Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<Server,org.jclouds.compute.domain.Hardware,ServerImage,Option>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.