org.jclouds.compute.strategy
Class CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap

java.lang.Object
  extended by org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap
All Implemented Interfaces:
com.google.common.base.Function<AtomicReference<NodeMetadata>,Void>, Callable<Void>

public class CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap
extends Object
implements Callable<Void>, com.google.common.base.Function<AtomicReference<NodeMetadata>,Void>


Nested Class Summary
static interface CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory
           
 
Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>> pollNodeRunning, GetNodeMetadataStrategy getNode, OpenSocketFinder openSocketFinder, com.google.common.base.Function<TemplateOptions,org.jclouds.scriptbuilder.domain.Statement> templateOptionsToStatement, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, TemplateOptions options, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
           
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>> pollNodeRunning, OpenSocketFinder openSocketFinder, com.google.common.base.Function<TemplateOptions,org.jclouds.scriptbuilder.domain.Statement> templateOptionsToStatement, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, TemplateOptions options, AtomicReference<NodeMetadata> node, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
           
 
Method Summary
 Void apply(AtomicReference<NodeMetadata> input)
           
 Void call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
Constructor Detail

CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap

public CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(@Named(value="jclouds.compute.timeout.node-running")
                                                            com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>> pollNodeRunning,
                                                            OpenSocketFinder openSocketFinder,
                                                            com.google.common.base.Function<TemplateOptions,org.jclouds.scriptbuilder.domain.Statement> templateOptionsToStatement,
                                                            InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
                                                            TemplateOptions options,
                                                            AtomicReference<NodeMetadata> node,
                                                            Set<NodeMetadata> goodNodes,
                                                            Map<NodeMetadata,Exception> badNodes,
                                                            com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)

CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap

public CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(@Named(value="jclouds.compute.timeout.node-running")
                                                            com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>> pollNodeRunning,
                                                            GetNodeMetadataStrategy getNode,
                                                            OpenSocketFinder openSocketFinder,
                                                            com.google.common.base.Function<TemplateOptions,org.jclouds.scriptbuilder.domain.Statement> templateOptionsToStatement,
                                                            InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
                                                            TemplateOptions options,
                                                            Set<NodeMetadata> goodNodes,
                                                            Map<NodeMetadata,Exception> badNodes,
                                                            com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
Method Detail

call

public Void call()
Specified by:
call in interface Callable<Void>

apply

public Void apply(AtomicReference<NodeMetadata> input)
Specified by:
apply in interface com.google.common.base.Function<AtomicReference<NodeMetadata>,Void>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.