@Singleton public class AdaptingComputeServiceStrategies<N,H,I,L> extends Object implements CreateNodeWithGroupEncodedIntoName, DestroyNodeStrategy, GetNodeMetadataStrategy, ListNodesStrategy, RebootNodeStrategy, ResumeNodeStrategy, SuspendNodeStrategy
| Constructor and Description |
|---|
AdaptingComputeServiceStrategies(Map<String,Credentials> credentialStore,
PrioritizeCredentialsFromTemplate prioritizeCredentialsFromTemplate,
ComputeServiceAdapter<N,H,I,L> client,
com.google.common.base.Function<N,NodeMetadata> nodeMetadataAdapter) |
| Modifier and Type | Method and Description |
|---|---|
NodeMetadata |
createNodeWithGroupEncodedIntoName(String group,
String name,
Template template)
create a node given the name and template parameters such as imageid, hardwareid, and
locationid.
|
NodeMetadata |
destroyNode(String id) |
NodeMetadata |
getNode(String id) |
Iterable<? extends NodeMetadata> |
listDetailsOnNodesMatching(com.google.common.base.Predicate<ComputeMetadata> filter) |
Iterable<? extends ComputeMetadata> |
listNodes() |
NodeMetadata |
rebootNode(String id) |
NodeMetadata |
resumeNode(String id) |
NodeMetadata |
suspendNode(String id) |
@Inject public AdaptingComputeServiceStrategies(Map<String,Credentials> credentialStore, PrioritizeCredentialsFromTemplate prioritizeCredentialsFromTemplate, ComputeServiceAdapter<N,H,I,L> client, com.google.common.base.Function<N,NodeMetadata> nodeMetadataAdapter)
public Iterable<? extends ComputeMetadata> listNodes()
listNodes in interface ListNodesStrategypublic Iterable<? extends NodeMetadata> listDetailsOnNodesMatching(com.google.common.base.Predicate<ComputeMetadata> filter)
listDetailsOnNodesMatching in interface ListNodesStrategypublic NodeMetadata getNode(String id)
getNode in interface GetNodeMetadataStrategypublic NodeMetadata rebootNode(String id)
rebootNode in interface RebootNodeStrategypublic NodeMetadata resumeNode(String id)
resumeNode in interface ResumeNodeStrategypublic NodeMetadata suspendNode(String id)
suspendNode in interface SuspendNodeStrategypublic NodeMetadata destroyNode(String id)
destroyNode in interface DestroyNodeStrategypublic NodeMetadata createNodeWithGroupEncodedIntoName(String group, String name, Template template)
createNodeWithGroupEncodedIntoName in interface CreateNodeWithGroupEncodedIntoNamegroup - group name supplied by the username - supplied by CreateNodesInGroupThenAddToSet and must have the tag encoded into
it.template - supplied by the userCopyright © 2009-2012 jclouds. All Rights Reserved.