Search in sources :

Example 1 with ApiFirewallSupport

use of io.fabric8.service.jclouds.firewall.ApiFirewallSupport in project fabric8 by jboss-fuse.

the class FirewallManagerFactoryImpl method getFirewallManager.

/**
 * Returns a {@link FirewallManager} for the specified {@link ComputeService}.
 */
@Override
public FirewallManager getFirewallManager(ComputeService computeService) throws FirewallNotSupportedOnProviderException {
    assertValid();
    ApiFirewallSupport firewallSupport = findApiFirewallSupport(computeService);
    if (firewallSupport == null) {
        throw new FirewallNotSupportedOnProviderException("Service is currently not supported for firewall operations");
    }
    FirewallManager firewallManager = new FirewallManager(computeService, firewallSupport);
    return firewallManager;
}
Also used : ApiFirewallSupport(io.fabric8.service.jclouds.firewall.ApiFirewallSupport) FirewallManager(io.fabric8.service.jclouds.firewall.FirewallManager) FirewallNotSupportedOnProviderException(io.fabric8.service.jclouds.firewall.FirewallNotSupportedOnProviderException)

Aggregations

ApiFirewallSupport (io.fabric8.service.jclouds.firewall.ApiFirewallSupport)1 FirewallManager (io.fabric8.service.jclouds.firewall.FirewallManager)1 FirewallNotSupportedOnProviderException (io.fabric8.service.jclouds.firewall.FirewallNotSupportedOnProviderException)1