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
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.