@Singleton public class SmartOSComputeServiceAdapter extends Object implements ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
org.jclouds.smartos.compute.domain.SmartOSHostController
implementation and the jclouds ComputeService
ComputeServiceAdapter.NodeAndInitialCredentials<N>
Constructor and Description |
---|
SmartOSComputeServiceAdapter(SmartOSHostController host) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VM> |
createNodeWithGroupEncodedIntoName(String tag,
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) |
DataSet |
getImage(String id)
get a specific image by id
|
VM |
getNode(String id) |
Iterable<VmSpecification> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<DataSet> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<SmartOSHostController> |
listLocations() |
Iterable<VM> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Inject public SmartOSComputeServiceAdapter(SmartOSHostController host)
public ComputeServiceAdapter.NodeAndInitialCredentials<VM> createNodeWithGroupEncodedIntoName(String tag, String name, Template template)
ComputeServiceAdapter
ComputeService.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.
credentialStore
createNodeWithGroupEncodedIntoName
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
tag
- 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<VmSpecification> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
ComputeService.listHardwareProfiles()
public Iterable<DataSet> listImages()
ComputeServiceAdapter
listImages
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
ComputeService.listImages()
public DataSet getImage(String id)
ComputeServiceAdapter
getImage
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
id
- ComputeMetadata.getId()
, which is not necessarily ComputeMetadata.getProviderId()
public Iterable<VM> listNodes()
listNodes
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
public Iterable<SmartOSHostController> listLocations()
listLocations
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
public VM getNode(String id)
getNode
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<VM,VmSpecification,DataSet,SmartOSHostController>
Copyright © 2009-2013 jclouds. All Rights Reserved.