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;
}
Aggregations