@Beta @Singleton public class AssignDataCenterToTemplate extends CreateNodesWithGroupEncodedIntoNameThenAddToSet
CreateNodesWithGroupEncodedIntoNameThenAddToSet.AddNode
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, listNodesStrategy, namingConvention, userExecutor
Modifier | Constructor and Description |
---|---|
protected |
AssignDataCenterToTemplate(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy,
ListNodesStrategy listNodesStrategy,
GroupNamingConvention.Factory namingConvention,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory,
ProfitBricksApi api,
com.google.common.base.Predicate<String> waitDcUntilAvailable) |
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 AssignDataCenterToTemplate(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy, ListNodesStrategy listNodesStrategy, GroupNamingConvention.Factory namingConvention, @Named(value="jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, ProfitBricksApi api, @Named(value="jclouds.profitbricks.predicate.datacenter") com.google.common.base.Predicate<String> waitDcUntilAvailable)
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.