Examples of stringPropertyNames()


Examples of kafka.etl.Props.stringPropertyNames()

    // initialize kafka producer to generate count events
    String nodePath = KafkaETLCommons.getNodesPath(_props);
    System.out.println("node path=" + nodePath);
    Props nodesProps = KafkaETLUtils.readProps(nodePath);
    _producers = new ArrayList<SimpleProducer>();
    for (String key : nodesProps.stringPropertyNames()) {
      URI uri = nodesProps.getUri(key);
      System.out.println("server uri:" + uri.toString());
      _producers.add(new SimpleProducer(uri.getHost(), uri.getPort(),
          TCP_BUFFER_SIZE, CONNECT_TIMEOUT, RECONNECT_INTERVAL));
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.util.properties.TypedProperties.stringPropertyNames()

        TypedProperties props = TwitLogic.getConfiguration();

        // Note: this doesn't really need to be an order-preserving collection,
        // because Java properties are not order-preserving.
        Set<String> terms = new LinkedHashSet<String>();
        for (String key : props.stringPropertyNames()) {
            if (key.startsWith(TwitLogic.TRACKTERMS)) {
                String listVal = props.getString(key);
                String[] these = listVal.split(",");
                for (String t : these) {
                    t = t.trim();
View Full Code Here

Examples of org.apache.openejb.util.SuperProperties.stringPropertyNames()

                final int equal = s.indexOf('=');
                if (equal < s.length() - 1) {
                    final SuperProperties props = new SuperProperties();
                    try {
                        props.load(new ByteArrayInputStream(s.getBytes()));
                        for (final String key : props.stringPropertyNames()) {
                            if (!key.isEmpty()) {
                                dataSource.property(key, props.getProperty(key));
                            }
                        }
                    } catch (final IOException e) {
View Full Code Here

Examples of org.jetbrains.osgi.jps.util.OrderedProperties.stringPropertyNames()

    Enumeration<?> propertyNames = props.propertyNames();
    assertThat((String)propertyNames.nextElement(), equalTo("Foo"));
    assertThat((String)propertyNames.nextElement(), equalTo("Bar"));
    assertThat((String)propertyNames.nextElement(), equalTo("Baz"));

    Iterator<String> iterator = props.stringPropertyNames().iterator();
    assertThat(iterator.next(), equalTo("Foo"));
    assertThat(iterator.next(), equalTo("Bar"));
    assertThat(iterator.next(), equalTo("Baz"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.