org.jclouds.cloudstack.predicates
Class NetworkPredicates

java.lang.Object
  extended by org.jclouds.cloudstack.predicates.NetworkPredicates

public class NetworkPredicates
extends Object

Author:
Adrian Cole

Nested Class Summary
static class NetworkPredicates.CapabilitiesInclude
           
static class NetworkPredicates.GuestIPTypeIs
           
static class NetworkPredicates.HasFirewallServiceWhichSupportsPortForwarding
           
static class NetworkPredicates.HasFirewallServiceWhichSupportsStaticNAT
           
static class NetworkPredicates.HasLoadBalancerService
           
static class NetworkPredicates.IsVirtualNetwork
           
static class NetworkPredicates.NetworkServiceNamed
           
 
Field Summary
static com.google.common.base.Predicate<NetworkService> isLoadBalancerService
           
static com.google.common.base.Predicate<GuestIPType> isVirtualNetwork
           
static com.google.common.base.Predicate<NetworkService> supportsPortForwarding
           
static com.google.common.base.Predicate<NetworkService> supportsStaticNAT
           
 
Constructor Summary
NetworkPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<Network> any()
           
static com.google.common.base.Predicate<Network> defaultNetworkInZone(long zoneId)
          Filters for default networks in a specific zone.
static com.google.common.base.Predicate<Network> hasLoadBalancerService()
           
static com.google.common.base.Predicate<Network> isVirtualNetwork()
           
static com.google.common.base.Predicate<Network> supportsPortForwarding()
           
static com.google.common.base.Predicate<Network> supportsStaticNAT()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NetworkPredicates

public NetworkPredicates()
Method Detail

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.