org.jclouds.cloudstack.predicates
Class NetworkPredicates
java.lang.Object
org.jclouds.cloudstack.predicates.NetworkPredicates
public class NetworkPredicates
- extends Object
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
supportsStaticNAT
public static com.google.common.base.Predicate<NetworkService> supportsStaticNAT
supportsPortForwarding
public static com.google.common.base.Predicate<NetworkService> supportsPortForwarding
isLoadBalancerService
public static com.google.common.base.Predicate<NetworkService> isLoadBalancerService
isVirtualNetwork
public static com.google.common.base.Predicate<GuestIPType> isVirtualNetwork
NetworkPredicates
public NetworkPredicates()
supportsStaticNAT
public static com.google.common.base.Predicate<Network> supportsStaticNAT()
- Returns:
- true, if the network supports static NAT.
supportsPortForwarding
public static com.google.common.base.Predicate<Network> supportsPortForwarding()
- Returns:
- true, if the network supports port forwarding.
hasLoadBalancerService
public static com.google.common.base.Predicate<Network> hasLoadBalancerService()
- Returns:
- true, if the network supports load balancing.
isVirtualNetwork
public static com.google.common.base.Predicate<Network> isVirtualNetwork()
- Returns:
- true, if the network is a virtual network.
defaultNetworkInZone
public static com.google.common.base.Predicate<Network> defaultNetworkInZone(long zoneId)
- Filters for default networks in a specific zone.
- Parameters:
zoneId
- the ID of the required zone.
- Returns:
- networks in the zone that have the default flag set.
any
public static com.google.common.base.Predicate<Network> any()
- Returns:
- always returns true.
Copyright © 2009-2012 jclouds. All Rights Reserved.