@Named(value="jclouds.compute.timeout.node-running") public class PollNodeRunning extends Object implements com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>>
IllegalStateException
if
this cannot be achieved within the timeout.Constructor and Description |
---|
PollNodeRunning(com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning) |
Modifier and Type | Method and Description |
---|---|
AtomicReference<NodeMetadata> |
apply(AtomicReference<NodeMetadata> node) |
@Inject public PollNodeRunning(@Named(value="jclouds.compute.timeout.node-running") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning)
public AtomicReference<NodeMetadata> apply(AtomicReference<NodeMetadata> node) throws IllegalStateException
apply
in interface com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>>
node
- will be updated with the node which is running{@link
- IllegalStateException} if this cannot be achieved within
the timeout.IllegalStateException
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.