Package com.google.code.hs4j

Examples of com.google.code.hs4j.HSClientBuilder


  }

  private HSAB<User, byte[]> getHSAB() throws IOException, SQLException {
    DataSource ds = getDS();

    HSClientBuilder hsb = new HSClientBuilderImpl();
    hsb.setServerAddress("localhost", 9998);
    hsb.setConnectionPoolSize(100);
    return new HSAB<User, byte[]>(
        Executors.newCachedThreadPool(),
        ds,
        hsb.build(),
        "user",
        "profile",
        "avro_schemas",
        User.SCHEMA$,
        AvroFormat.JSON,
View Full Code Here


    this.hsClient.shutdown();
    assertFalse(started.get());
    assertFalse(stopped.get());
    assertEquals(0, connectedCount.get());

    HSClientBuilder builder = new HSClientBuilderImpl();
    builder.setServerAddress(this.hostName, 9999);
    builder.addStateListeners(listener);
    builder.setConnectionPoolSize(10);
    this.hsClient = builder.build();

    assertTrue(started.get());
    assertFalse(stopped.get());
    assertEquals(10, connectedCount.get());
View Full Code Here

TOP

Related Classes of com.google.code.hs4j.HSClientBuilder

Copyright © 2018 www.massapicom. 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.