org.jclouds.joyent.cloudapi.v6_5.compute.strategy
Class ApplyJoyentCloudTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet

java.lang.Object
  extended by org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
      extended by org.jclouds.joyent.cloudapi.v6_5.compute.strategy.ApplyJoyentCloudTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet
All Implemented Interfaces:
CreateNodesInGroupThenAddToSet

@Singleton
public class ApplyJoyentCloudTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet
extends CreateNodesWithGroupEncodedIntoNameThenAddToSet

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
CreateNodesWithGroupEncodedIntoNameThenAddToSet.AddNode
 
Field Summary
 
Fields inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, executor, listNodesStrategy, logger, namingConvention
 
Constructor Summary
protected ApplyJoyentCloudTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet(CreateNodeWithGroupEncodedIntoName addNodeWithTagStrategy, ListNodesStrategy listNodesStrategy, GroupNamingConvention.Factory namingConvention, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, ExecutorService executor, com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyCache)
           
 
Method Summary
 Map<?,Future<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.
 
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
 

Constructor Detail

ApplyJoyentCloudTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet

@Inject
protected ApplyJoyentCloudTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet(CreateNodeWithGroupEncodedIntoName addNodeWithTagStrategy,
                                                                                                ListNodesStrategy listNodesStrategy,
                                                                                                GroupNamingConvention.Factory namingConvention,
                                                                                                CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory,
                                                                                                @Named(value="jclouds.user-threads")
                                                                                                ExecutorService executor,
                                                                                                com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyCache)
Method Detail

execute

public Map<?,Future<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 interface CreateNodesInGroupThenAddToSet
Overrides:
execute in class CreateNodesWithGroupEncodedIntoNameThenAddToSet


Copyright © 2009-2012 jclouds. All Rights Reserved.