Tabnine Logo
JavaSystemConfig.getSystemNames
Code IndexAdd Tabnine to your IDE (free)

How to use
getSystemNames
method
in
org.apache.samza.config.JavaSystemConfig

Best Java code snippets using org.apache.samza.config.JavaSystemConfig.getSystemNames (Showing top 6 results out of 315)

origin: org.apache.samza/samza-core_2.12

/**
 * Get {@link SystemFactory} instances for all the systems defined in this config.
 *
 * @return a map from system name to {@link SystemFactory}
 */
public Map<String, SystemFactory> getSystemFactories() {
 Map<String, SystemFactory> systemFactories = getSystemNames().stream().collect(Collectors.toMap(
  systemName -> systemName,
  systemName -> {
   String systemFactoryClassName = getSystemFactory(systemName);
   if (systemFactoryClassName == null) {
    throw new SamzaException(
      String.format("A stream uses system %s, which is missing from the configuration.", systemName));
   }
   return Util.getObj(systemFactoryClassName, SystemFactory.class);
  }));
 return systemFactories;
}
origin: apache/samza

/**
 * Get {@link SystemFactory} instances for all the systems defined in this config.
 *
 * @return a map from system name to {@link SystemFactory}
 */
public Map<String, SystemFactory> getSystemFactories() {
 Map<String, SystemFactory> systemFactories = getSystemNames().stream().collect(Collectors.toMap(
  systemName -> systemName,
  systemName -> {
   String systemFactoryClassName = getSystemFactory(systemName);
   if (systemFactoryClassName == null) {
    throw new SamzaException(
      String.format("A stream uses system %s, which is missing from the configuration.", systemName));
   }
   return Util.getObj(systemFactoryClassName, SystemFactory.class);
  }));
 return systemFactories;
}
origin: org.apache.samza/samza-core_2.10

/**
 * Get {@link SystemFactory} instances for all the systems defined in this config.
 *
 * @return a map from system name to {@link SystemFactory}
 */
public Map<String, SystemFactory> getSystemFactories() {
 Map<String, SystemFactory> systemFactories = getSystemNames().stream().collect(Collectors.toMap(
  systemName -> systemName,
  systemName -> {
   String systemFactoryClassName = getSystemFactory(systemName);
   if (systemFactoryClassName == null) {
    throw new SamzaException(
      String.format("A stream uses system %s, which is missing from the configuration.", systemName));
   }
   return Util.getObj(systemFactoryClassName, SystemFactory.class);
  }));
 return systemFactories;
}
origin: org.apache.samza/samza-core

/**
 * Get {@link SystemFactory} instances for all the systems defined in this config.
 *
 * @return a map from system name to {@link SystemFactory}
 */
public Map<String, SystemFactory> getSystemFactories() {
 Map<String, SystemFactory> systemFactories = getSystemNames().stream().collect(Collectors.toMap(
  systemName -> systemName,
  systemName -> {
   String systemFactoryClassName = getSystemFactory(systemName);
   if (systemFactoryClassName == null) {
    throw new SamzaException(
      String.format("A stream uses system %s, which is missing from the configuration.", systemName));
   }
   return Util.getObj(systemFactoryClassName, SystemFactory.class);
  }));
 return systemFactories;
}
origin: org.apache.samza/samza-core_2.11

/**
 * Get {@link SystemFactory} instances for all the systems defined in this config.
 *
 * @return a map from system name to {@link SystemFactory}
 */
public Map<String, SystemFactory> getSystemFactories() {
 Map<String, SystemFactory> systemFactories = getSystemNames().stream().collect(Collectors.toMap(
  systemName -> systemName,
  systemName -> {
   String systemFactoryClassName = getSystemFactory(systemName);
   if (systemFactoryClassName == null) {
    throw new SamzaException(
      String.format("A stream uses system %s, which is missing from the configuration.", systemName));
   }
   return Util.getObj(systemFactoryClassName, SystemFactory.class);
  }));
 return systemFactories;
}
origin: apache/samza

 @Test
 public void testGetSystemNames() {
  Map<String, String> map = new HashMap<String, String>();
  map.put(MOCK_SYSTEM_FACTORY_NAME1, MOCK_SYSTEM_FACTORY_CLASSNAME1);
  map.put(MOCK_SYSTEM_FACTORY_NAME2, MOCK_SYSTEM_FACTORY_CLASSNAME2);
  JavaSystemConfig systemConfig = new JavaSystemConfig(new MapConfig(map));

  assertEquals(2, systemConfig.getSystemNames().size());
  assertTrue(systemConfig.getSystemNames().contains(MOCK_SYSTEM_NAME1));
  assertTrue(systemConfig.getSystemNames().contains(MOCK_SYSTEM_NAME2));
 }
}
org.apache.samza.configJavaSystemConfiggetSystemNames

Javadoc

Get a list of system names.

Popular methods of JavaSystemConfig

  • <init>
  • getSystemFactory
  • get
  • getSystemAdmin
    Get SystemAdmin instance for given system name.
  • getSystemAdmins
    Get SystemAdmin instances for all the systems defined in this config.
  • getSystemFactories
    Get SystemFactory instances for all the systems defined in this config.
  • subset
  • getSystemOffsetDefault
    Get system offset default value. systems.'system'.default.stream.samza.offset.default is the config.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 14 Best Plugins for Eclipse
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