|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jclouds.savvis.vpdc.compute.strategy.VPDCComputeServiceAdapter
@Singleton public class VPDCComputeServiceAdapter
defines the connection between the VPDCClient
implementation and the jclouds
ComputeService
Constructor Summary | |
---|---|
VPDCComputeServiceAdapter(VPDCClient client,
TaskSuccess taskSuccess)
|
Method Summary | |
---|---|
VM |
createNodeWithGroupEncodedIntoNameThenStoreCredentials(String tag,
String name,
Template template,
Map<String,Credentials> credentialStore)
ComputeService.runNodesWithTag(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)
|
VM |
getNode(String id)
|
Iterable<VMSpec> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to run a node. |
Iterable<CIMOperatingSystem> |
listImages()
Images are the available configured operating systems that someone can run a node with. |
Iterable<Network> |
listLocations()
|
Iterable<VM> |
listNodes()
|
void |
rebootNode(String id)
|
void |
resumeNode(String id)
|
void |
suspendNode(String id)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public VPDCComputeServiceAdapter(VPDCClient client, TaskSuccess taskSuccess)
Method Detail |
---|
public VM createNodeWithGroupEncodedIntoNameThenStoreCredentials(String tag, String name, Template template, Map<String,Credentials> credentialStore)
ComputeServiceAdapter
ComputeService.runNodesWithTag(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
createNodeWithGroupEncodedIntoNameThenStoreCredentials
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
tag
- used to aggregate nodes with identical configurationname
- unique supplied name for the node, which has the tag encoded into it.template
- includes imageId
, locationId
, and hardwareId
used to resume
the instance.credentialStore
- once the node is resumeed, its login user and password must be stored keyed on
node#id
.
ComputeService.runNodesWithTag(String, int, Template)
,
ComputeServiceContext.getCredentialStore()
public Iterable<VMSpec> listHardwareProfiles()
ComputeServiceAdapter
To implement this method, return the library native hardware profiles available to the user. These will be used to launch nodes as a part of the template.
listHardwareProfiles
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
ComputeService.listHardwareProfiles()
public Iterable<CIMOperatingSystem> listImages()
ComputeServiceAdapter
To implement this method, return the library native images available to the user. These will be used to launch nodes as a part of the template.
listImages
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
ComputeService.listImages()
public Iterable<VM> listNodes()
listNodes
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
public Iterable<Network> listLocations()
listLocations
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
public VM getNode(String id)
getNode
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<VM,VMSpec,CIMOperatingSystem,Network>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |