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

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

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

origin: org.apache.brooklyn/brooklyn-utils-common

@Test
public void testFirewalldServiceStop() {
  Assert.assertEquals(IptablesCommands.firewalldServiceStop(), firewalldServiceStop);
}
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.sshIptablesCommandsfirewalldServiceStop

Popular methods of IptablesCommands

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

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
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