org.jclouds.joyent.cloudapi.v6_5.compute
Class JoyentCloudComputeServiceAdapter
java.lang.Object
org.jclouds.joyent.cloudapi.v6_5.compute.JoyentCloudComputeServiceAdapter
- All Implemented Interfaces:
- org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
public class JoyentCloudComputeServiceAdapter
- extends Object
- implements org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
The adapter used by the JoyentCloudComputeServiceContextModule to interface the
JoyentCloud-specific domain model to the computeService generic domain model.
- Author:
- Adrian Cole
| Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter |
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
cloudApiApi
protected final JoyentCloudApi cloudApiApi
datacenterIds
protected final com.google.common.base.Supplier<Set<String>> datacenterIds
JoyentCloudComputeServiceAdapter
@Inject
public JoyentCloudComputeServiceAdapter(JoyentCloudApi cloudApiApi,
com.google.common.base.Supplier<Set<String>> datacenterIds)
createNodeWithGroupEncodedIntoName
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<MachineInDatacenter> createNodeWithGroupEncodedIntoName(String group,
String name,
org.jclouds.compute.domain.Template template)
- Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
listHardwareProfiles
public Iterable<PackageInDatacenter> listHardwareProfiles()
- Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
listImages
public Iterable<DatasetInDatacenter> listImages()
- Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
listNodes
public Iterable<MachineInDatacenter> listNodes()
- Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
listLocations
public Iterable<org.jclouds.domain.Location> listLocations()
- Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
getNode
public MachineInDatacenter getNode(String id)
- Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
getImage
public DatasetInDatacenter getImage(String id)
- Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
destroyNode
public void destroyNode(String id)
- Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
rebootNode
public void rebootNode(String id)
- Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
resumeNode
public void resumeNode(String id)
- Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
suspendNode
public void suspendNode(String id)
- Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
Copyright © 2009-2012 jclouds. All Rights Reserved.