org.jclouds.compute.strategy
Class CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap

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

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

Author:
Adrian Cole

Nested Class Summary
static interface CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.Factory
           
 
Field Summary
protected  Logger logger
           
 
Constructor Summary
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(com.google.common.base.Predicate<NodeMetadata> nodeRunning, GetNodeMetadataStrategy getNode, RetryIfSocketNotYetOpen socketTester, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<TemplateOptions,Statement> templateOptionsToStatement, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, TemplateOptions options, NodeMetadata node, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
           
CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(com.google.common.base.Predicate<NodeMetadata> nodeRunning, GetNodeMetadataStrategy getNode, RetryIfSocketNotYetOpen socketTester, ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Function<TemplateOptions,Statement> templateOptionsToStatement, InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory, TemplateOptions options, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
           
 
Method Summary
 Void apply(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 Logger logger
Constructor Detail

CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap

public CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(@Named(value="NODE_RUNNING")
                                                            com.google.common.base.Predicate<NodeMetadata> nodeRunning,
                                                            GetNodeMetadataStrategy getNode,
                                                            RetryIfSocketNotYetOpen socketTester,
                                                            ComputeServiceConstants.Timeouts timeouts,
                                                            com.google.common.base.Function<TemplateOptions,Statement> templateOptionsToStatement,
                                                            InitializeRunScriptOnNodeOrPlaceInBadMap.Factory initScriptRunnerFactory,
                                                            TemplateOptions options,
                                                            @Nullable
                                                            NodeMetadata node,
                                                            Set<NodeMetadata> goodNodes,
                                                            Map<NodeMetadata,Exception> badNodes,
                                                            com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)

CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap

public CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap(@Named(value="NODE_RUNNING")
                                                            com.google.common.base.Predicate<NodeMetadata> nodeRunning,
                                                            GetNodeMetadataStrategy getNode,
                                                            RetryIfSocketNotYetOpen socketTester,
                                                            ComputeServiceConstants.Timeouts timeouts,
                                                            com.google.common.base.Function<TemplateOptions,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(NodeMetadata input)
Specified by:
apply in interface com.google.common.base.Function<NodeMetadata,Void>


Copyright © 2009-2011 jclouds. All Rights Reserved.