Tabnine Logo
SshEffectorTasks.getSshFlags
Code IndexAdd Tabnine to your IDE (free)

How to use
getSshFlags
method
in
org.apache.brooklyn.core.effector.ssh.SshEffectorTasks

Best Java code snippets using org.apache.brooklyn.core.effector.ssh.SshEffectorTasks.getSshFlags (Showing top 2 results out of 315)

origin: org.apache.brooklyn/brooklyn-core

private static void applySshFlags(ConfigBag config, Entity entity, Location machine) {
  if (entity!=null) {
    if (!config.get(IGNORE_ENTITY_SSH_FLAGS)) {
      config.putIfAbsent(getSshFlags(entity, machine));
    }
  }
}
origin: org.apache.brooklyn/brooklyn-software-base

protected Map<String, Object> getSshFlags() {
  return SshEffectorTasks.getSshFlags(getEntity(), getMachine());
}
org.apache.brooklyn.core.effector.sshSshEffectorTasksgetSshFlags

Javadoc

extracts the values for the main brooklyn.ssh.config.* config keys (i.e. those declared in ConfigKeys) as declared on the entity, and inserts them in a map using the unprefixed state, for ssh.

currently this is computed for each call, which may be wasteful, but it is reliable in the face of config changes. we could cache the Map. note that we do _not_ cache (or even own) the SshTool; the SshTool is created or re-used by the SshMachineLocation making use of these properties

Popular methods of SshEffectorTasks

  • ssh
  • put
  • isPidFromFileRunning
    as #codePidFromFileRunning(String) but returning boolean
  • codePidRunning
    task which returns 0 if pid is running
  • isPidRunning
    as #codePidRunning(Integer) but returning boolean
  • codePidFromFileRunning
    task which returns 0 if pid in the given file is running; method accepts wildcards so long as they m
  • requirePidRunning
    task which fails if the given PID is not running
  • fetch
  • requirePidFromFileRunning
    task which fails if the pid in the given file is not running (or if there is no such PID file); meth

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • 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
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text 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