org.jclouds.openstack.nova.v2_0.predicates
Class FindSecurityGroupWithNameAndReturnTrue

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.predicates.FindSecurityGroupWithNameAndReturnTrue
All Implemented Interfaces:
com.google.common.base.Predicate<AtomicReference<ZoneAndName>>

@Singleton
public class FindSecurityGroupWithNameAndReturnTrue
extends Object
implements com.google.common.base.Predicate<AtomicReference<ZoneAndName>>

AtomicReference is so that we can return the securityGroup that matched.


Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
FindSecurityGroupWithNameAndReturnTrue(NovaApi novaApi)
           
 
Method Summary
 boolean apply(AtomicReference<ZoneAndName> securityGroupInZoneRef)
           
 
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 org.jclouds.logging.Logger logger
Constructor Detail

FindSecurityGroupWithNameAndReturnTrue

@Inject
public FindSecurityGroupWithNameAndReturnTrue(NovaApi novaApi)
Method Detail

apply

public boolean apply(AtomicReference<ZoneAndName> securityGroupInZoneRef)
Specified by:
apply in interface com.google.common.base.Predicate<AtomicReference<ZoneAndName>>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.