org.apache.whirr.service.jclouds
Class FirewallSettings
java.lang.Object
org.apache.whirr.service.jclouds.FirewallSettings
public class FirewallSettings
- extends Object
Utility functions for controlling firewall settings for a cluster.
Method Summary |
static void |
authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Cluster.Instance instance,
ClusterSpec clusterSpec,
int... ports)
|
static void |
authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Cluster.Instance instance,
ClusterSpec clusterSpec,
String ip,
int... ports)
|
static void |
authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Set<Cluster.Instance> instances,
ClusterSpec clusterSpec,
int... ports)
|
static String |
getOriginatingIp()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FirewallSettings
public FirewallSettings()
getOriginatingIp
public static String getOriginatingIp()
throws IOException
- Returns:
- the IP address of the client on which this code is running.
- Throws:
IOException
authorizeIngress
public static void authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Cluster.Instance instance,
ClusterSpec clusterSpec,
int... ports)
throws IOException
- Throws:
IOException
authorizeIngress
public static void authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Cluster.Instance instance,
ClusterSpec clusterSpec,
String ip,
int... ports)
authorizeIngress
public static void authorizeIngress(org.jclouds.compute.ComputeServiceContext computeServiceContext,
Set<Cluster.Instance> instances,
ClusterSpec clusterSpec,
int... ports)
throws IOException
- Throws:
IOException
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.