Package com.linkedin.d2.discovery.stores

Examples of com.linkedin.d2.discovery.stores.PropertyStringSerializer


    {
      callback.get(10, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
      throw new PropertyStoreException(e);
    }
  }
View Full Code Here


    {
      callback.get(10, TimeUnit.SECONDS);
    }
    catch (Exception e)
    {
      throw new PropertyStoreException(e);
    }
  }
View Full Code Here

      ZKConnection client = new ZKConnection("localhost:" + PORT, 30000);
      client.start();

      ZooKeeperPermanentStore<String> store = new ZooKeeperPermanentStore<String>(
              client,
              new PropertyStringSerializer(),
              "/test-path");
      FutureCallback<None> callback = new FutureCallback<None>();
      store.start(callback);
      callback.get();
      return store;
View Full Code Here

  {
    ZKConnection zkClient = new ZKConnection("localhost:2181", 1000);
    Set<String> listenTos = new HashSet<String>();
    ZooKeeperPermanentStore<String> zk =
        new ZooKeeperPermanentStore<String>(zkClient,
                                            new PropertyStringSerializer(),
                                            "/test/lb/test-property");

    listenTos.add("foo12");
    ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
    PropertyEventBus<String> bus = new PropertyEventBusImpl<String>(executorService, zk);
View Full Code Here

  {
    try
    {
      return new FileStore<String>(createTempDirectory("file-store-test").toString(),
                                   ".ini",
                                   new PropertyStringSerializer());
    }
    catch (IOException e)
    {
      fail("unable to create file store");
    }
View Full Code Here

    client.start();


    ZooKeeperEphemeralStore<String> store = new ZooKeeperEphemeralStore<String>(
            client,
            new PropertyStringSerializer(),
            new PropertyStringMerger(),
            "/test-path");
    FutureCallback<None> callback = new FutureCallback<None>();
    store.start(callback);
    callback.get();
View Full Code Here

    ZKConnection zkClient = new ZKConnection("localhost:2181", 30000);
    PropertyStringMerger merger = new PropertyStringMerger();
    Set<String> listenTos = new HashSet<String>();
    ZooKeeperEphemeralStore<String> zk =
        new ZooKeeperEphemeralStore<String>(zkClient,
                                            new PropertyStringSerializer(),
                                            merger,
                                            "/test/lb/test-property-ephemeral");

    listenTos.add("foo12");
View Full Code Here

{
  @Override
  protected ZooKeeperStore<String> getStore()
  {
    ZooKeeperPermanentStore<String> store = new ZooKeeperPermanentStore<String>(
            getConnection(), new PropertyStringSerializer(), "/testing/testPath");
    try
    {
      FutureCallback<None> callback = new FutureCallback<None>();
      store.start(callback);
      callback.get(30, TimeUnit.SECONDS);
View Full Code Here

{
  @Override
  protected ZooKeeperStore<String> getStore()
  {
    ZooKeeperEphemeralStore<String> store = new ZooKeeperEphemeralStore<String>(
            getConnection(), new PropertyStringSerializer(),
            new ZooKeeperEphemeralStoreTest.PropertyStringMerger(), "/testing/testPath");
    try
    {
      FutureCallback<None> callback = new FutureCallback<None>();
      store.start(callback);
View Full Code Here

                   boolean useDeltaWrite,
                   int maxOutstandingWrites)
  {
    _retryLimit = retryLimit;
    // use retry zkConnection
    _zkConnection = new ZKConnection(zkHosts, sessionTimeout, _retryLimit, false, null, 0);
    _basePath = basePath;
    _timeout = timeout;
    _clusterServiceConfigurations = Arrays.asList(clusterServiceConfigurations, extraClusterServiceConfigurations);
    _clusterDefaults = clusterDefaults;
    _serviceDefaults = serviceDefaults;
View Full Code Here

TOP

Related Classes of com.linkedin.d2.discovery.stores.PropertyStringSerializer

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.