org.jclouds.vcloud.terremark.compute.strategy
Class TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy

java.lang.Object
  extended by org.jclouds.compute.strategy.impl.EncodeTagIntoNameRunNodesAndAddToSetStrategy
      extended by org.jclouds.vcloud.terremark.compute.strategy.TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy
All Implemented Interfaces:
RunNodesAndAddToSetStrategy

@Singleton
public class TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy
extends EncodeTagIntoNameRunNodesAndAddToSetStrategy

creates futures that correlate to

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.strategy.impl.EncodeTagIntoNameRunNodesAndAddToSetStrategy
addNodeWithTagStrategy, executor, listNodesStrategy, logger, nodeNamingConvention, utils
 
Constructor Summary
protected TerremarkEncodeTagIntoNameRunNodesAndAddToSetStrategy(AddNodeWithTagStrategy addNodeWithTagStrategy, ListNodesStrategy listNodesStrategy, String nodeNamingConvention, ComputeUtils utils, ExecutorService executor, CreateNewKeyPairUnlessUserSpecifiedOtherwise createNewKeyPairUnlessUserSpecifiedOtherwise)
           
 
Method Summary
 Map<?,Future<Void>> execute(String tag, int count, Template template, Set<NodeMetadata> nodes, Map<NodeMetadata,Exception> badNodes)
           
 
Methods inherited from class org.jclouds.compute.strategy.impl.EncodeTagIntoNameRunNodesAndAddToSetStrategy
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(AddNodeWithTagStrategy addNodeWithTagStrategy,
                                                                       ListNodesStrategy listNodesStrategy,
                                                                       @Named(value="NAMING_CONVENTION")
                                                                       String nodeNamingConvention,
                                                                       ComputeUtils utils,
                                                                       @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> nodes,
                                   Map<NodeMetadata,Exception> badNodes)
Specified by:
execute in interface RunNodesAndAddToSetStrategy
Overrides:
execute in class EncodeTagIntoNameRunNodesAndAddToSetStrategy


Copyright © 2009-2010 jclouds. All Rights Reserved.