org.jclouds.gogrid.compute.strategy
Class FindIpThenCreateNodeInGroup

java.lang.Object
  extended by org.jclouds.gogrid.compute.strategy.FindIpThenCreateNodeInGroup
All Implemented Interfaces:
CreateNodeWithGroupEncodedIntoName

@Singleton
public class FindIpThenCreateNodeInGroup
extends Object
implements CreateNodeWithGroupEncodedIntoName

Author:
Oleksiy Yarmula

Field Summary
protected  Logger logger
           
 
Constructor Summary
protected FindIpThenCreateNodeInGroup(GoGridClient client, Map<String,Credentials> credentialStore, com.google.common.base.Function<Server,NodeMetadata> serverToNodeMetadata, com.google.common.base.Function<Hardware,String> sizeToRam, ComputeServiceConstants.Timeouts timeouts)
           
 
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

logger

protected Logger logger
Constructor Detail

FindIpThenCreateNodeInGroup

@Inject
protected FindIpThenCreateNodeInGroup(GoGridClient client,
                                             Map<String,Credentials> credentialStore,
                                             com.google.common.base.Function<Server,NodeMetadata> serverToNodeMetadata,
                                             com.google.common.base.Function<Hardware,String> sizeToRam,
                                             ComputeServiceConstants.Timeouts timeouts)
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.