org.jclouds.trmk.vcloud_0_8.compute.strategy
Class TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy

java.lang.Object
  extended by org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
      extended by org.jclouds.trmk.vcloud_0_8.compute.strategy.TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy
All Implemented Interfaces:
CreateNodesInGroupThenAddToSet

@Singleton
public class TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy
extends CreateNodesWithGroupEncodedIntoNameThenAddToSet

creates futures that correlate to

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet
addNodeWithGroupStrategy, customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, executor, listNodesStrategy, logger, nodeNamingConvention
 
Constructor Summary
protected TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy(CreateNodeWithGroupEncodedIntoName addNodeWithTagStrategy, ListNodesStrategy listNodesStrategy, String nodeNamingConvention, CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory, ExecutorService executor, CreateNewKeyPairUnlessUserSpecifiedOtherwise createNewKeyPairUnlessUserSpecifiedOtherwise)
           
 
Method Summary
 Map<?,Future<Void>> execute(String tag, 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
getNextName, getNextNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy

@Inject
protected TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy(CreateNodeWithGroupEncodedIntoName addNodeWithTagStrategy,
                                                                       ListNodesStrategy listNodesStrategy,
                                                                       @Named(value="NAMING_CONVENTION")
                                                                       String nodeNamingConvention,
                                                                       CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory customizeNodeAndAddToGoodMapOrPutExceptionIntoBadMapFactory,
                                                                       @Named(value="jclouds.user-threads")
                                                                       ExecutorService executor,
                                                                       CreateNewKeyPairUnlessUserSpecifiedOtherwise createNewKeyPairUnlessUserSpecifiedOtherwise)
Method Detail

execute

public Map<?,Future<Void>> execute(String tag,
                                   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.