Class NetworkPredicates


  • public class NetworkPredicates
    extends Object
    • 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
    • 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.
      • 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.