@Singleton public class CreateResourcesThenCreateNodes extends CreateNodesWithGroupEncodedIntoNameThenAddToSet
CreateNodesWithGroupEncodedIntoNameThenAddToSet.AddNode
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, listNodesStrategy, namingConvention, userExecutor
Modifier | Constructor and Description |
---|---|
protected |
CreateResourcesThenCreateNodes(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy,
ListNodesStrategy listNodesStrategy,
GroupNamingConvention.Factory namingConvention,
com.google.common.util.concurrent.ListeningExecutorService userExecutor,
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory,
AzureComputeApi api,
String defaultVnetAddressPrefix,
String defaultSubnetAddressPrefix,
com.google.common.cache.LoadingCache<ResourceGroupAndNameAndIngressRules,String> securityGroupMap,
TemplateToAvailabilitySet templateToAvailabilitySet,
PasswordGenerator.Config passwordGenerator) |
Modifier and Type | Method and Description |
---|---|
protected void |
createDefaultNetworkIfNeeded(String group,
String location,
AzureTemplateOptions options) |
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 CreateResourcesThenCreateNodes(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy, ListNodesStrategy listNodesStrategy, GroupNamingConvention.Factory namingConvention, @Named(value="jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, AzureComputeApi api, @Named(value="jclouds.azurecompute.arm.vnet.addressprefix") String defaultVnetAddressPrefix, @Named(value="jclouds.azurecompute.arm.subnet.addressprefix") String defaultSubnetAddressPrefix, com.google.common.cache.LoadingCache<ResourceGroupAndNameAndIngressRules,String> securityGroupMap, TemplateToAvailabilitySet templateToAvailabilitySet, PasswordGenerator.Config passwordGenerator)
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
protected void createDefaultNetworkIfNeeded(String group, String location, AzureTemplateOptions options)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.