Brooklyn

brooklyn.util.ssh
[Java] Class IptablesCommands

java.lang.Object
  brooklyn.util.ssh.IptablesCommands

public class IptablesCommands

Nested Class Summary
enum IptablesCommands.Chain

enum IptablesCommands.Policy

enum IptablesCommands.Protocol

 
Method Summary
static java.lang.String appendIptablesRule(IptablesCommands.Chain chain, java.lang.String networkInterface, IptablesCommands.Protocol protocol, int port, IptablesCommands.Policy policy)

Returns the command that appends a rule to iptables.

static java.lang.String cleanUpIptablesRules()

Returns the command that cleans up iptables rules.

static java.lang.String insertIptablesRule(IptablesCommands.Chain chain, java.lang.String networkInterface, IptablesCommands.Protocol protocol, int port, IptablesCommands.Policy policy)

Returns the command that inserts a rule on top of the iptables' rules.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

appendIptablesRule

public static java.lang.String appendIptablesRule(IptablesCommands.Chain chain, java.lang.String networkInterface, IptablesCommands.Protocol protocol, int port, IptablesCommands.Policy policy)
Returns the command that appends a rule to iptables.
Returns:
Returns the command that appends a rule to iptables.


cleanUpIptablesRules

public static java.lang.String cleanUpIptablesRules()
Returns the command that cleans up iptables rules.
Returns:
Returns the command that cleans up iptables rules.


insertIptablesRule

public static java.lang.String insertIptablesRule(IptablesCommands.Chain chain, java.lang.String networkInterface, IptablesCommands.Protocol protocol, int port, IptablesCommands.Policy policy)
Returns the command that inserts a rule on top of the iptables' rules.
Returns:
Returns the command that inserts a rule on top of the iptables' rules.


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.