Class CreateResourcesThenCreateNodes
java.lang.Object
org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
org.jclouds.azurecompute.arm.compute.strategy.CreateResourcesThenCreateNodes
- All Implemented Interfaces:
CreateNodesInGroupThenAddToSet
@Singleton
public class CreateResourcesThenCreateNodes
extends CreateNodesWithGroupEncodedIntoNameThenAddToSet
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
CreateNodesWithGroupEncodedIntoNameThenAddToSet.AddNode
-
Field Summary
FieldsFields inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, listNodesStrategy, namingConvention, userExecutor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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, AzurePredicatesModule.NetworkAvailablePredicateFactory networkAvailable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createDefaultNetworkIfNeeded
(String group, String location, AzureTemplateOptions options) 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.Methods inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
createNodeInGroupWithNameAndTemplate, getNextNames
-
Field Details
-
logger
-
-
Constructor Details
-
CreateResourcesThenCreateNodes
@Inject protected CreateResourcesThenCreateNodes(CreateNodeWithGroupEncodedIntoName addNodeWithGroupStrategy, ListNodesStrategy listNodesStrategy, GroupNamingConvention.Factory namingConvention, @Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, AzureComputeApi api, @Named("jclouds.azurecompute.arm.vnet.addressprefix") String defaultVnetAddressPrefix, @Named("jclouds.azurecompute.arm.subnet.addressprefix") String defaultSubnetAddressPrefix, com.google.common.cache.LoadingCache<ResourceGroupAndNameAndIngressRules, String> securityGroupMap, TemplateToAvailabilitySet templateToAvailabilitySet, PasswordGenerator.Config passwordGenerator, AzurePredicatesModule.NetworkAvailablePredicateFactory networkAvailable)
-
-
Method Details
-
execute
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) Description copied from class:CreateNodesWithGroupEncodedIntoNameThenAddToSet
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.- Specified by:
execute
in interfaceCreateNodesInGroupThenAddToSet
- Overrides:
execute
in classCreateNodesWithGroupEncodedIntoNameThenAddToSet
-
createDefaultNetworkIfNeeded
protected void createDefaultNetworkIfNeeded(String group, String location, AzureTemplateOptions options)
-