public class MachineInitTasks
extends java.lang.Object
| Constructor and Description | 
|---|
| MachineInitTasks() | 
| Modifier and Type | Method and Description | 
|---|---|
| Task<java.lang.Integer> | checkLocationFirewall(SshMachineLocation machine)Returns a queued  Taskwhich checks if location firewall is enabled. | 
| Task<java.lang.Boolean> | dontRequireTtyForSudoAsync(SshMachineLocation machine)See docs in  BashCommands.dontRequireTtyForSudo() | 
| Task<java.lang.Void> | openIptablesAsync(java.lang.Iterable<java.lang.Integer> inboundPorts,
                 SshMachineLocation machine)Returns a queued  Taskwhich opens the given ports in iptables on the given machine. | 
| Task<java.lang.Void> | stopIptablesAsync(SshMachineLocation machine)Returns a queued  Taskwhich stops iptables on the given machine. | 
public Task<java.lang.Void> stopIptablesAsync(SshMachineLocation machine)
Task which stops iptables on the given machine.public Task<java.lang.Boolean> dontRequireTtyForSudoAsync(SshMachineLocation machine)
BashCommands.dontRequireTtyForSudo()public Task<java.lang.Void> openIptablesAsync(java.lang.Iterable<java.lang.Integer> inboundPorts, SshMachineLocation machine)
Task which opens the given ports in iptables on the given machine.public Task<java.lang.Integer> checkLocationFirewall(SshMachineLocation machine)
Task which checks if location firewall is enabled.