Tabnine Logo
MapConfigKey.subKey
Code IndexAdd Tabnine to your IDE (free)

How to use
subKey
method
in
brooklyn.event.basic.MapConfigKey

Best Java code snippets using brooklyn.event.basic.MapConfigKey.subKey (Showing top 7 results out of 315)

origin: io.brooklyn/brooklyn-software-base

public static ConfigKey<String> javaSysProp(String propertyName) { return UsesJava.JAVA_SYSPROPS.subKey(propertyName); }

origin: io.brooklyn/brooklyn-software-base

/** replaces the attributes underneath the rootAttribute parameter with the given value;
 * see {@link #addLaunchAttributesMap(EntitySpec, Map)} for richer functionality */
public static void setLaunchAttribute(EntityInternal entity, String rootAttribute, Object value) {
  entity.setConfig(ChefSoloDriver.CHEF_LAUNCH_ATTRIBUTES.subKey(rootAttribute), value);
}
origin: io.brooklyn/brooklyn-software-base

/** replaces the attributes underneath the rootAttribute parameter with the given value;
 * see {@link #addLaunchAttributesMap(EntitySpec, Map)} for richer functionality */
public static void setLaunchAttribute(EntitySpec<?> entity, String rootAttribute, Object value) {
  entity.configure(ChefSoloDriver.CHEF_LAUNCH_ATTRIBUTES.subKey(rootAttribute), value);
}

origin: io.brooklyn/brooklyn-core

public ConfigKey<V> subKey(String subName) {
  return subKey(subName, "sub-element of " + getName() + ", named " + subName);
}
// it is not possible to supply default values
origin: io.brooklyn/brooklyn-software-base

public static void addToCookbooksFromGithub(EntitySpec<?> entity, String cookbookName, String cookbookUrl) {
  entity.configure(ChefSoloDriver.CHEF_COOKBOOKS.subKey(cookbookName), cookbookUrl);
}
origin: io.brooklyn/brooklyn-software-base

public static void addToCookbooksFromGithub(EntityInternal entity, String cookbookName, String cookbookUrl) {
  entity.setConfig(ChefSoloDriver.CHEF_COOKBOOKS.subKey(cookbookName), cookbookUrl);
}
origin: io.brooklyn/brooklyn-core

@SuppressWarnings({ "rawtypes", "unchecked" })
protected Object applyEntryValueToMap(Entry value, Map target) {
  Object k = value.getKey();
  if (isSubKey(k)) {
    // do nothing
  } else if (k instanceof String) {
    k = subKey((String)k);
  } else {
    log.warn("Unexpected subkey "+k+" being inserted into "+this+"; ignoring");
    k = null;
  }
  if (k!=null)
    return target.put(k, value.getValue());
  else 
    return null;
}
brooklyn.event.basicMapConfigKeysubKey

Popular methods of MapConfigKey

  • applyEntryValueToMap
  • applyValueToMap
  • equals
  • extractSubKeyName
  • getName
  • isSubKey
  • rawValue
    returns the entries in the map against this config key and any sub-config-keys, without resolving (l

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Reference (javax.naming)
  • JCheckBox (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
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