congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConfigKey.values
Code IndexAdd Tabnine to your IDE (free)

How to use
values
method
in
org.jolokia.config.ConfigKey

Best Java code snippets using org.jolokia.config.ConfigKey.values (Showing top 9 results out of 315)

origin: rhuss/jolokia

/**
 * Update this global configuration from a string-string. Only the known keys are taken
 * from this map
 *
 * @param pConfig config map from where to take the configuration
 */
public void updateGlobalConfiguration(Map<String, String> pConfig) {
  for (ConfigKey c : ConfigKey.values()) {
    if (c.isGlobalConfig()) {
      String value = pConfig.get(c.getKeyValue());
      if (value != null) {
        globalConfig.put(c,value);
      }
    }
  }
}
origin: rhuss/jolokia

private JSONObject configToJSONObject() {
  JSONObject info = new JSONObject();
  if (config != null) {
    for (ConfigKey key : ConfigKey.values()) {
      if (key.isGlobalConfig()) {
        String value = config.get(key);
        if (value != null) {
          info.put(key.getKeyValue(), value);
        }
      }
    }
  }
  return info;
}
origin: rhuss/jolokia

private Dictionary<String,String> getConfiguration() {
  Dictionary<String,String> config = new Hashtable<String,String>();
  for (ConfigKey key : ConfigKey.values()) {
    String value = getConfiguration(key);
    if (value != null) {
      config.put(key.getKeyValue(),value);
    }
  }
  String jolokiaId = NetworkUtil.replaceExpression(config.get(ConfigKey.AGENT_ID.getKeyValue()));
  if (jolokiaId == null) {
    config.put(ConfigKey.AGENT_ID.getKeyValue(),
          NetworkUtil.getAgentId(hashCode(),"osgi"));
  }
  config.put(ConfigKey.AGENT_TYPE.getKeyValue(),"osgi");
  return config;
}
origin: io.hawt/hawtio-system

public static boolean containsEnum(String test) {
  for (ConfigKey c : ConfigKey.values()) {
    if (c.getKeyValue().equals(test)) {
      return true;
    }
  }
  return false;
}
origin: org.jolokia/jolokia-core

/**
 * Update this global configuration from a string-string. Only the known keys are taken
 * from this map
 *
 * @param pConfig config map from where to take the configuration
 */
public void updateGlobalConfiguration(Map<String, String> pConfig) {
  for (ConfigKey c : ConfigKey.values()) {
    if (c.isGlobalConfig()) {
      String value = pConfig.get(c.getKeyValue());
      if (value != null) {
        globalConfig.put(c,value);
      }
    }
  }
}
origin: org.jolokia/jolokia-osgi

/**
 * Update this global configuration from a string-string. Only the known keys are taken
 * from this map
 *
 * @param pConfig config map from where to take the configuration
 */
public void updateGlobalConfiguration(Map<String, String> pConfig) {
  for (ConfigKey c : ConfigKey.values()) {
    if (c.isGlobalConfig()) {
      String value = pConfig.get(c.getKeyValue());
      if (value != null) {
        globalConfig.put(c,value);
      }
    }
  }
}
origin: org.jolokia/jolokia-core

private JSONObject configToJSONObject() {
  JSONObject info = new JSONObject();
  if (config != null) {
    for (ConfigKey key : ConfigKey.values()) {
      if (key.isGlobalConfig()) {
        String value = config.get(key);
        if (value != null) {
          info.put(key.getKeyValue(), value);
        }
      }
    }
  }
  return info;
}
origin: org.jolokia/jolokia-osgi

private JSONObject configToJSONObject() {
  JSONObject info = new JSONObject();
  if (config != null) {
    for (ConfigKey key : ConfigKey.values()) {
      if (key.isGlobalConfig()) {
        String value = config.get(key);
        if (value != null) {
          info.put(key.getKeyValue(), value);
        }
      }
    }
  }
  return info;
}
origin: org.jolokia/jolokia-osgi

private Dictionary<String,String> getConfiguration() {
  Dictionary<String,String> config = new Hashtable<String,String>();
  for (ConfigKey key : ConfigKey.values()) {
    String value = getConfiguration(key);
    if (value != null) {
      config.put(key.getKeyValue(),value);
    }
  }
  String jolokiaId = NetworkUtil.replaceExpression(config.get(ConfigKey.AGENT_ID.getKeyValue()));
  if (jolokiaId == null) {
    config.put(ConfigKey.AGENT_ID.getKeyValue(),
          NetworkUtil.getAgentId(hashCode(),"osgi"));
  }
  config.put(ConfigKey.AGENT_TYPE.getKeyValue(),"osgi");
  return config;
}
org.jolokia.configConfigKeyvalues

Popular methods of ConfigKey

  • getKeyValue
    Get the string value of a key
  • getDefaultValue
    Get the default value
  • getGlobalConfigKey
    Get the configuration key for a global configuration
  • getRequestConfigKey
    Get the configuration key for a request configuration
  • isGlobalConfig
    Whether this key is a global configuration key
  • isRequestConfig
    Whether this key is a request configuration key

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JFrame (javax.swing)
  • 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