org.jclouds.digitalocean.compute.strategy
Class CreateKeyPairsThenCreateNodes

java.lang.Object
  extended by org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
      extended by org.jclouds.digitalocean.compute.strategy.CreateKeyPairsThenCreateNodes
All Implemented Interfaces:
org.jclouds.compute.strategy.CreateNodesInGroupThenAddToSet

@Singleton
public class CreateKeyPairsThenCreateNodes
extends org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.AddNode
 
Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Fields inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, listNodesStrategy, namingConvention, userExecutor
 
Constructor Summary
protected CreateKeyPairsThenCreateNodes(org.jclouds.compute.strategy.CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy, org.jclouds.compute.strategy.ListNodesStrategy listNodesStrategy, org.jclouds.compute.functions.GroupNamingConvention.Factory namingConvention, com.google.common.util.concurrent.ListeningExecutorService userExecutor, org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, DigitalOceanApi api, org.jclouds.ssh.SshKeyPairGenerator keyGenerator, ListSshKeys.Factory listSshKeysFactory, com.google.common.base.Function<String,PublicKey> sshKeyToPublicKey)
           
 
Method Summary
 Map<?,com.google.common.util.concurrent.ListenableFuture<Void>> execute(String group, int count, org.jclouds.compute.domain.Template template, Set<org.jclouds.compute.domain.NodeMetadata> goodNodes, Map<org.jclouds.compute.domain.NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<org.jclouds.compute.domain.NodeMetadata,org.jclouds.compute.config.CustomizationResponse> customizationResponses)
           
 
Methods inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
createNodeInGroupWithNameAndTemplate, getNextNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
Constructor Detail

CreateKeyPairsThenCreateNodes

@Inject
protected CreateKeyPairsThenCreateNodes(org.jclouds.compute.strategy.CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy,
                                               org.jclouds.compute.strategy.ListNodesStrategy listNodesStrategy,
                                               org.jclouds.compute.functions.GroupNamingConvention.Factory namingConvention,
                                               @Named(value="jclouds.user-threads")
                                               com.google.common.util.concurrent.ListeningExecutorService userExecutor,
                                               org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory,
                                               DigitalOceanApi api,
                                               org.jclouds.ssh.SshKeyPairGenerator keyGenerator,
                                               ListSshKeys.Factory listSshKeysFactory,
                                               com.google.common.base.Function<String,PublicKey> sshKeyToPublicKey)
Method Detail

execute

public Map<?,com.google.common.util.concurrent.ListenableFuture<Void>> execute(String group,
                                                                               int count,
                                                                               org.jclouds.compute.domain.Template template,
                                                                               Set<org.jclouds.compute.domain.NodeMetadata> goodNodes,
                                                                               Map<org.jclouds.compute.domain.NodeMetadata,Exception> badNodes,
                                                                               com.google.common.collect.Multimap<org.jclouds.compute.domain.NodeMetadata,org.jclouds.compute.config.CustomizationResponse> customizationResponses)
Specified by:
execute in interface org.jclouds.compute.strategy.CreateNodesInGroupThenAddToSet
Overrides:
execute in class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.