org.jclouds.vcloud.functions
Class OrgsForLocations
java.lang.Object
org.jclouds.vcloud.functions.OrgsForLocations
- All Implemented Interfaces:
- com.google.common.base.Function<Iterable<org.jclouds.domain.Location>,Iterable<Org>>
@Singleton
public class OrgsForLocations
- extends Object
- implements com.google.common.base.Function<Iterable<org.jclouds.domain.Location>,Iterable<Org>>
- Author:
- Adrian Cole
|
Field Summary |
org.jclouds.logging.Logger |
logger
|
|
Method Summary |
Iterable<Org> |
apply(Iterable<org.jclouds.domain.Location> from)
Zones are assignable, but we want regions. |
| 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.Function |
equals |
logger
public org.jclouds.logging.Logger logger
apply
public Iterable<Org> apply(Iterable<org.jclouds.domain.Location> from)
- Zones are assignable, but we want regions. so we look for zones, whose
parent is region. then, we use a set to extract the unique set.
- Specified by:
apply in interface com.google.common.base.Function<Iterable<org.jclouds.domain.Location>,Iterable<Org>>
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.