congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SocketOptionsXBean.toConfig
Code IndexAdd Tabnine to your IDE (free)

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

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

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.xbeansSocketOptionsXBeantoConfig

Popular methods of SocketOptionsXBean

    Popular in Java

    • Reading from database using SQL prepared statement
    • getSystemService (Context)
    • getSharedPreferences (Context)
    • startActivity (Activity)
    • Window (java.awt)
      A Window object is a top-level window with no borders and no menubar. The default layout for a windo
    • PrintWriter (java.io)
      Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • Top 17 Free Sublime Text Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now