Package org.kiji.schema.layout.impl.TestZooKeeperMonitor

Examples of org.kiji.schema.layout.impl.TestZooKeeperMonitor.QueueingLayoutUpdateHandler


    ZooKeeperUtils.setTableLayout(mZKClient, tableURI, layout1);

    BlockingQueue<byte[]> layoutQueue = Queues.newSynchronousQueue();
    LayoutTracker tracker =
        zkMonitor.newTableLayoutTracker(tableURI, new QueueingLayoutUpdateHandler(layoutQueue));
    try {
      tracker.open();
      Assert.assertEquals(layout1, Bytes.toString(layoutQueue.poll(5, TimeUnit.SECONDS)));

      ZooKeeperUtils.setTableLayout(mZKClient, tableURI, layout2);
View Full Code Here

TOP

Related Classes of org.kiji.schema.layout.impl.TestZooKeeperMonitor.QueueingLayoutUpdateHandler

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.