org.jclouds.deltacloud.predicates
Class InstanceState

java.lang.Object
  extended by org.jclouds.deltacloud.predicates.InstanceState
All Implemented Interfaces:
com.google.common.base.Predicate<Instance>
Direct Known Subclasses:
InstanceFinished, InstanceRunning

@Singleton
public abstract class InstanceState
extends Object
implements com.google.common.base.Predicate<Instance>

Tests to see if a instance is at a specific state

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
InstanceState(DeltacloudClient client)
           
 
Method Summary
 boolean apply(Instance instance)
           
protected abstract  Instance.State getState()
           
 
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.Predicate
equals
 

Field Detail

logger

protected Logger logger
Constructor Detail

InstanceState

@Inject
public InstanceState(DeltacloudClient client)
Method Detail

apply

public boolean apply(Instance instance)
Specified by:
apply in interface com.google.common.base.Predicate<Instance>

getState

protected abstract Instance.State getState()


Copyright © 2009-2012 jclouds. All Rights Reserved.