Codota Logo
SocketOptionsXBean
Code IndexAdd Codota to your IDE (free)

How to use
SocketOptionsXBean
in
org.metricssampler.config.loader.xbeans

Best Java code snippets using org.metricssampler.config.loader.xbeans.SocketOptionsXBean (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: com.github.dimovelev/metrics-sampler-core

protected SocketOptionsConfig createSocketOptionsConfig() {
  return getSocketOptions() != null ? getSocketOptions().toConfig() : null;
}
origin: dimovelev/metrics-sampler

protected SocketOptionsConfig createSocketOptionsConfig() {
  return getSocketOptions() != null ? getSocketOptions().toConfig() : null;
}
origin: com.github.dimovelev/metrics-sampler-extension-jmx

  @Override
  protected InputConfig createConfig() {
    List<Pattern> ignorePatterns;
    if (ignore != null) {
      ignorePatterns = new ArrayList<Pattern>(ignore.size());
      for (final IgnoreObjectNameXBean ignoreObjectName : ignore) {
        try {
          ignorePatterns.add(Pattern.compile(ignoreObjectName.getRegexp()));
        } catch (final PatternSyntaxException e) {
          throw new ConfigurationException("Pattern "+ignoreObjectName+" cannot compile: " + e.getMessage());
        }
      }
    } else {
      ignorePatterns = Collections.emptyList();
    }
    final Map<String, String> configConnectionProperties = new HashMap<>();
    if (connectionProperties != null) {
      for (final EntryXBean entry : connectionProperties) {
        configConnectionProperties.put(entry.getKey(), entry.getValue());
      }
    }

    final SocketOptionsConfig soConfig = socketOptions != null ? socketOptions.toConfig() : null;
    final boolean boolPersistentConnection = getPersistentConnection() != null ? getPersistentConnection() : true;
    return new JmxInputConfig(getName(), getVariablesConfig(), getUrl(), getUsername(), getPassword(), getProviderPackages(), boolPersistentConnection, ignorePatterns, configConnectionProperties, soConfig);
  }
}
origin: dimovelev/metrics-sampler

  @Override
  protected InputConfig createConfig() {
    List<Pattern> ignorePatterns;
    if (ignore != null) {
      ignorePatterns = new ArrayList<Pattern>(ignore.size());
      for (final IgnoreObjectNameXBean ignoreObjectName : ignore) {
        try {
          ignorePatterns.add(Pattern.compile(ignoreObjectName.getRegexp()));
        } catch (final PatternSyntaxException e) {
          throw new ConfigurationException("Pattern "+ignoreObjectName+" cannot compile: " + e.getMessage());
        }
      }
    } else {
      ignorePatterns = Collections.emptyList();
    }
    final Map<String, String> configConnectionProperties = new HashMap<>();
    if (connectionProperties != null) {
      for (final EntryXBean entry : connectionProperties) {
        configConnectionProperties.put(entry.getKey(), entry.getValue());
      }
    }

    final SocketOptionsConfig soConfig = socketOptions != null ? socketOptions.toConfig() : null;
    final boolean boolPersistentConnection = getPersistentConnection() != null ? getPersistentConnection() : true;
    return new JmxInputConfig(getName(), getVariablesConfig(), getUrl(), getUsername(), getPassword(), getProviderPackages(), boolPersistentConnection, ignorePatterns, configConnectionProperties, soConfig);
  }
}
origin: com.github.dimovelev/metrics-sampler-extension-memcached

@Override
protected InputConfig createConfig() {
  return new MemcachedInputConfig(getName(), getVariablesConfig(), getHost(), getPort(),
      getSocketOptions() != null ? getSocketOptions().toConfig() : null);
}
org.metricssampler.config.loader.xbeansSocketOptionsXBean

Most used methods

  • toConfig

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now