public class JoyentCloudComputeServiceAdapter extends Object implements ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>
ComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier and Type | Field and Description |
|---|---|
protected JoyentCloudApi |
cloudApiApi |
protected com.google.common.base.Supplier<Set<String>> |
datacenterIds |
protected Logger |
logger |
| Constructor and Description |
|---|
JoyentCloudComputeServiceAdapter(JoyentCloudApi cloudApiApi,
com.google.common.base.Supplier<Set<String>> datacenterIds) |
| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<MachineInDatacenter> |
createNodeWithGroupEncodedIntoName(String group,
String name,
Template template)
ComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name. |
void |
destroyNode(String id) |
DatasetInDatacenter |
getImage(String id)
get a specific image by id
|
MachineInDatacenter |
getNode(String id) |
Iterable<PackageInDatacenter> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<DatasetInDatacenter> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Location> |
listLocations() |
Iterable<MachineInDatacenter> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
protected final JoyentCloudApi cloudApiApi
@Inject public JoyentCloudComputeServiceAdapter(JoyentCloudApi cloudApiApi, com.google.common.base.Supplier<Set<String>> datacenterIds)
public ComputeServiceAdapter.NodeAndInitialCredentials<MachineInDatacenter> createNodeWithGroupEncodedIntoName(String group, String name, Template template)
ComputeServiceAdapterComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name.
N. If you are not using library-native objects (such as libvirt Domain) use
JCloudsNativeComputeServiceAdapter instead.
credentialStorecreateNodeWithGroupEncodedIntoName in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>group - used to aggregate nodes with identical configurationname - unique supplied name for the node, which has the group encoded into it.template - includes imageId, locationId, and hardwareId used to resume
the instance.ComputeService.createNodesInGroup(String, int, Template)public Iterable<PackageInDatacenter> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>ComputeService.listHardwareProfiles()public Iterable<DatasetInDatacenter> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>ComputeService.listImages()public Iterable<MachineInDatacenter> listNodes()
listNodes in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>public Iterable<Location> listLocations()
listLocations in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>public MachineInDatacenter getNode(String id)
getNode in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>public DatasetInDatacenter getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>id - ComputeMetadata.getId(), which is not necessarily ComputeMetadata.getProviderId()public void destroyNode(String id)
destroyNode in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>public void rebootNode(String id)
rebootNode in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,Location>Copyright © 2009-2013 jclouds. All Rights Reserved.