org.jclouds.cloudservers.compute.strategy
Class CloudServersCreateNodeWithGroupEncodedIntoName

java.lang.Object
  extended by org.jclouds.cloudservers.compute.strategy.CloudServersCreateNodeWithGroupEncodedIntoName
All Implemented Interfaces:
CreateNodeWithGroupEncodedIntoName

@Singleton
public class CloudServersCreateNodeWithGroupEncodedIntoName
extends Object
implements CreateNodeWithGroupEncodedIntoName

Author:
Adrian Cole

Field Summary
protected  CloudServersClient client
           
protected  Map<String,Credentials> credentialStore
           
protected  com.google.common.base.Function<Server,NodeMetadata> serverToNodeMetadata
           
 
Constructor Summary
protected CloudServersCreateNodeWithGroupEncodedIntoName(CloudServersClient client, Map<String,Credentials> credentialStore, com.google.common.base.Function<Server,NodeMetadata> serverToNodeMetadata)
           
 
Method Summary
 NodeMetadata createNodeWithGroupEncodedIntoName(String group, String name, Template template)
          create a node given the name and template parameters such as imageid, hardwareid, and locationid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected final CloudServersClient client

credentialStore

protected final Map<String,Credentials> credentialStore

serverToNodeMetadata

protected final com.google.common.base.Function<Server,NodeMetadata> serverToNodeMetadata
Constructor Detail

CloudServersCreateNodeWithGroupEncodedIntoName

@Inject
protected CloudServersCreateNodeWithGroupEncodedIntoName(CloudServersClient client,
                                                                Map<String,Credentials> credentialStore,
                                                                com.google.common.base.Function<Server,NodeMetadata> serverToNodeMetadata)
Method Detail

createNodeWithGroupEncodedIntoName

public NodeMetadata createNodeWithGroupEncodedIntoName(String group,
                                                       String name,
                                                       Template template)
Description copied from interface: CreateNodeWithGroupEncodedIntoName
create a node given the name and template parameters such as imageid, hardwareid, and locationid.

Specified by:
createNodeWithGroupEncodedIntoName in interface CreateNodeWithGroupEncodedIntoName
Parameters:
group - group name supplied by the user
name - supplied by CreateNodesInGroupThenAddToSet and must have the tag encoded into it.
template - supplied by the user
Returns:
NodeMetadata from the new object, most likely in some pending state.


Copyright © 2009-2011 jclouds. All Rights Reserved.