Tabnine Logo
IptablesCommands.iptablesServiceStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
iptablesServiceStatus
method
in
org.apache.brooklyn.util.ssh.IptablesCommands

Best Java code snippets using org.apache.brooklyn.util.ssh.IptablesCommands.iptablesServiceStatus (Showing top 1 results out of 315)

origin: org.apache.brooklyn/brooklyn-software-base

protected void stopIptablesImpl(final SshMachineLocation machine) {
  log.info("Stopping iptables for {} at {}", entity(), machine);
  List<String> cmds = ImmutableList.<String>of();
  Task<Integer> checkFirewall = checkLocationFirewall(machine);
  if (checkFirewall.getUnchecked() == 0) {
    cmds = ImmutableList.of(IptablesCommands.firewalldServiceStop(), IptablesCommands.firewalldServiceStatus());
  } else {
    cmds = ImmutableList.of(IptablesCommands.iptablesServiceStop(), IptablesCommands.iptablesServiceStatus());
  }
  subTaskHelperAllowingNonZeroExitCode("execute stop iptables", machine, cmds.toArray(new String[cmds.size()]));
}
org.apache.brooklyn.util.sshIptablesCommandsiptablesServiceStatus

Popular methods of IptablesCommands

  • insertIptablesRule
  • addFirewalldRule
    Returns the command that adds firewalld direct rule.
  • appendIptablesRule
  • firewalldService
  • firewalldServiceIsActive
  • firewalldServiceStatus
  • firewalldServiceStop
  • saveIptablesRules
    Returns the command that saves iptables rules on file.
  • addIptablesRule
  • cleanUpIptablesRules
    Returns the command that cleans up iptables rules.
  • firewalldServiceRestart
  • firewalldServiceStart
  • firewalldServiceRestart,
  • firewalldServiceStart,
  • iptablesService,
  • iptablesServiceStop,
  • listIptablesRule

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now