This project has retired. For details please refer to its
Attic page.
org.apache.whirr.service
Class FirewallManager
java.lang.Object
org.apache.whirr.service.FirewallManager
public class FirewallManager
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FirewallManager
public FirewallManager(org.jclouds.compute.ComputeServiceContext computeServiceContext,
ClusterSpec clusterSpec,
Cluster cluster)
addRules
public void addRules(FirewallManager.Rule... rules)
throws IOException
- Throws:
IOException
addRules
public void addRules(Set<FirewallManager.Rule> rules)
throws IOException
- Throws:
IOException
addRule
public void addRule(FirewallManager.Rule rule)
throws IOException
- Rules are additive. If no source is set then it will default
to
ClusterSpec.getClientCidrs(), or, if that is not set,
to the client's originating IP. If no destinations or ports
are set then the rule has not effect.
- Parameters:
rule - The rule to add to the firewall.
- Throws:
IOException
authorizeIngress
public static void authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Set<Cluster.Instance> instances,
ClusterSpec clusterSpec,
List<String> cidrs,
int... ports)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.