@Beta
public class MachineInitTasks
extends java.lang.Object
Constructor and Description |
---|
MachineInitTasks() |
Modifier and Type | Method and Description |
---|---|
Task<java.lang.Boolean> |
dontRequireTtyForSudoAsync(SshMachineLocation machine)
See docs in
BashCommands.dontRequireTtyForSudo() |
boolean |
isLocationFirewalldEnabled(SshMachineLocation location) |
Task<java.lang.Void> |
openIptablesAsync(java.lang.Iterable<java.lang.Integer> inboundPorts,
SshMachineLocation machine)
Returns a queued
Task which opens the given ports in iptables on the given machine. |
Task<java.lang.Void> |
stopIptablesAsync(SshMachineLocation machine)
Returns a queued
Task which stops iptables on the given machine. |
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.Void> stopIptablesAsync(SshMachineLocation machine)
Task
which stops iptables on the given machine.public Task<java.lang.Boolean> dontRequireTtyForSudoAsync(SshMachineLocation machine)
BashCommands.dontRequireTtyForSudo()
public boolean isLocationFirewalldEnabled(SshMachineLocation location)