@Singleton public class RefreshAndDoubleCheckOnFailUnlessStateInvalid extends Object implements com.google.common.base.Predicate<AtomicReference<NodeMetadata>>
Constructor and Description |
---|
RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended,
GetNodeMetadataStrategy client) |
RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended,
Set<NodeState> invalids,
GetNodeMetadataStrategy client) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(AtomicReference<NodeMetadata> atomicNode) |
boolean |
checkState(NodeMetadata node) |
protected Logger logger
@Inject public RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended, GetNodeMetadataStrategy client)
public RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended, Set<NodeState> invalids, GetNodeMetadataStrategy client)
public boolean apply(AtomicReference<NodeMetadata> atomicNode)
apply
in interface com.google.common.base.Predicate<AtomicReference<NodeMetadata>>
public boolean checkState(NodeMetadata node)
Copyright © 2009-2012 jclouds. All Rights Reserved.