Class NetworkPredicates
- java.lang.Object
-
- org.jclouds.cloudstack.predicates.NetworkPredicates
-
public class NetworkPredicates extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkPredicates.CapabilitiesInclude
static class
NetworkPredicates.GuestIPTypeIs
static class
NetworkPredicates.HasFirewallServiceWhichSupportsPortForwarding
static class
NetworkPredicates.HasFirewallServiceWhichSupportsStaticNAT
static class
NetworkPredicates.HasLoadBalancerService
static class
NetworkPredicates.IsIsolatedNetwork
static class
NetworkPredicates.IsSharedNetwork
static class
NetworkPredicates.IsVirtualNetwork
static class
NetworkPredicates.NetworkServiceNamed
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<GuestIPType>
isIsolatedNetwork
static com.google.common.base.Predicate<NetworkService>
isLoadBalancerService
static com.google.common.base.Predicate<GuestIPType>
isSharedNetwork
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
Constructors Constructor Description NetworkPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<Network>
any()
static com.google.common.base.Predicate<Network>
defaultNetworkInZone(String zoneId)
Filters for default networks in a specific zone.static com.google.common.base.Predicate<Network>
hasLoadBalancerService()
static com.google.common.base.Predicate<Network>
isIsolatedNetwork()
static com.google.common.base.Predicate<Network>
isSharedNetwork()
static com.google.common.base.Predicate<Network>
isVirtualNetwork()
static com.google.common.base.Predicate<Network>
supportsPortForwarding()
static com.google.common.base.Predicate<Network>
supportsStaticNAT()
-
-
-
Field Detail
-
supportsStaticNAT
public static final com.google.common.base.Predicate<NetworkService> supportsStaticNAT
-
supportsPortForwarding
public static final com.google.common.base.Predicate<NetworkService> supportsPortForwarding
-
isLoadBalancerService
public static final com.google.common.base.Predicate<NetworkService> isLoadBalancerService
-
isVirtualNetwork
public static final com.google.common.base.Predicate<GuestIPType> isVirtualNetwork
-
isIsolatedNetwork
public static final com.google.common.base.Predicate<GuestIPType> isIsolatedNetwork
-
isSharedNetwork
public static final com.google.common.base.Predicate<GuestIPType> isSharedNetwork
-
-
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.
-
isIsolatedNetwork
public static com.google.common.base.Predicate<Network> isIsolatedNetwork()
- Returns:
- true, if the network is an isolated network.
-
isSharedNetwork
public static com.google.common.base.Predicate<Network> isSharedNetwork()
- Returns:
- true, if the network is a shared network.
-
defaultNetworkInZone
public static com.google.common.base.Predicate<Network> defaultNetworkInZone(String 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.
-
-