org.apache.whirr.service
Class FirewallManager

java.lang.Object
  extended by org.apache.whirr.service.FirewallManager

public class FirewallManager
extends Object


Nested Class Summary
static class FirewallManager.Rule
           
 
Constructor Summary
FirewallManager(org.jclouds.compute.ComputeServiceContext computeServiceContext, ClusterSpec clusterSpec, Cluster cluster)
           
 
Method Summary
 void addRule(FirewallManager.Rule rule)
          Rules are additive.
 void addRules(FirewallManager.Rule... rules)
           
 void addRules(Set<FirewallManager.Rule> rules)
           
static void authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext, Set<Cluster.Instance> instances, ClusterSpec clusterSpec, List<String> cidrs, int... ports)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirewallManager

public FirewallManager(org.jclouds.compute.ComputeServiceContext computeServiceContext,
                       ClusterSpec clusterSpec,
                       Cluster cluster)
Method Detail

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.