Class RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid
- java.lang.Object
-
- org.jclouds.compute.predicates.internal.RefreshAndDoubleCheckOnFailUnlessStatusInvalid<NodeMetadata.Status,NodeMetadata>
-
- org.jclouds.compute.predicates.internal.RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid
-
- All Implemented Interfaces:
com.google.common.base.Predicate<AtomicReference<NodeMetadata>>
,Predicate<AtomicReference<NodeMetadata>>
- Direct Known Subclasses:
AtomicNodeRunning
,AtomicNodeSuspended
@Singleton public class RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid extends RefreshAndDoubleCheckOnFailUnlessStatusInvalid<NodeMetadata.Status,NodeMetadata>
The point of RefreshAndDoubleCheckOnFailUnlessStateInvalid is to keep an atomic reference to a node, so as to eliminate a redundantComputeService#getNodeMetadata
call after the predicate passes.
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.predicates.internal.RefreshAndDoubleCheckOnFailUnlessStatusInvalid
logger
-
-
Constructor Summary
Constructors Constructor Description RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid(NodeMetadata.Status intended, Set<NodeMetadata.Status> invalids, GetNodeMetadataStrategy client)
RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid(NodeMetadata.Status intended, GetNodeMetadataStrategy client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodeMetadata
refreshOrNull(NodeMetadata resource)
-
Methods inherited from class org.jclouds.compute.predicates.internal.RefreshAndDoubleCheckOnFailUnlessStatusInvalid
apply, checkStatus
-
-
-
-
Constructor Detail
-
RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid
@Inject public RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid(NodeMetadata.Status intended, GetNodeMetadataStrategy client)
-
RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid
public RefreshNodeAndDoubleCheckOnFailUnlessStatusInvalid(NodeMetadata.Status intended, Set<NodeMetadata.Status> invalids, GetNodeMetadataStrategy client)
-
-
Method Detail
-
refreshOrNull
protected NodeMetadata refreshOrNull(NodeMetadata resource)
- Specified by:
refreshOrNull
in classRefreshAndDoubleCheckOnFailUnlessStatusInvalid<NodeMetadata.Status,NodeMetadata>
-
-