org.apache.reef.io.network.naming.NameServerConfiguration Java Examples
The following examples show how to use
org.apache.reef.io.network.naming.NameServerConfiguration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JobLauncher.java From incubator-nemo with Apache License 2.0 | 5 votes |
/** * Get driver ncs configuration. * * @return driver ncs configuration. */ private static Configuration getDriverNcsConf() { return Configurations.merge(NameServerConfiguration.CONF.build(), LocalNameResolverConfiguration.CONF.build(), TANG.newConfigurationBuilder() .bindImplementation(IdentifierFactory.class, StringIdentifierFactory.class) .build()); }
Example #2
Source File: JobLauncher.java From nemo with Apache License 2.0 | 5 votes |
/** * Get driver ncs configuration. * @return driver ncs configuration. * @throws InjectionException exception while injection. */ private static Configuration getDriverNcsConf() throws InjectionException { return Configurations.merge(NameServerConfiguration.CONF.build(), LocalNameResolverConfiguration.CONF.build(), TANG.newConfigurationBuilder() .bindImplementation(IdentifierFactory.class, StringIdentifierFactory.class) .build()); }
Example #3
Source File: JobClient.java From reef with Apache License 2.0 | 4 votes |
private static Configuration getNameServerConfiguration() { return NameServerConfiguration.CONF .set(NameServerConfiguration.NAME_SERVICE_PORT, 0) .build(); }