@Singleton public class CreateKeyPairsThenCreateNodes extends CreateNodesWithGroupEncodedIntoNameThenAddToSet
CreateNodesWithGroupEncodedIntoNameThenAddToSet.AddNode
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, listNodesStrategy, namingConvention, userExecutor
Modifier | Constructor and Description |
---|---|
protected |
CreateKeyPairsThenCreateNodes(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy,
ListNodesStrategy listNodesStrategy,
GroupNamingConvention.Factory namingConvention,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory,
DigitalOcean2Api api,
SshKeyPairGenerator keyGenerator,
com.google.common.base.Function<String,PublicKey> sshKeyToPublicKey) |
Modifier and Type | Method and Description |
---|---|
Map<?,com.google.common.util.concurrent.ListenableFuture<Void>> |
execute(String group,
int count,
Template template,
Set<NodeMetadata> goodNodes,
Map<NodeMetadata,Exception> badNodes,
com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
This implementation gets a list of acceptable node names to encode the group into, then it
simultaneously runs the nodes and applies options to them.
|
createNodeInGroupWithNameAndTemplate, getNextNames
@Named(value="jclouds.compute") protected Logger logger
@Inject protected CreateKeyPairsThenCreateNodes(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy, ListNodesStrategy listNodesStrategy, GroupNamingConvention.Factory namingConvention, @Named(value="jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, DigitalOcean2Api api, SshKeyPairGenerator keyGenerator, com.google.common.base.Function<String,PublicKey> sshKeyToPublicKey)
public Map<?,com.google.common.util.concurrent.ListenableFuture<Void>> execute(String group, int count, Template template, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
CreateNodesWithGroupEncodedIntoNameThenAddToSet
execute
in interface CreateNodesInGroupThenAddToSet
execute
in class CreateNodesWithGroupEncodedIntoNameThenAddToSet
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.