Examples of constructKey()


Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

          true, null);

      ArrayWritable valueHolder = new ArrayWritable(LongWritable.class);

      boolean getResult = masterClient.getInformation(
          masterClient.constructKey(jobID, "info", "level3"), valueHolder);

      assertTrue(getResult);

      assertEquals(arrWritable.get()[0], valueHolder.get()[0]);
      assertEquals(arrWritable.get()[1], valueHolder.get()[1]);
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

      assertEquals(2, names.length);

      Log.info("Passed the child count test");

      masterClient.addKey(masterClient.constructKey(jobID, "peer", "1"), true,
          null);
      masterClient.addKey(masterClient.constructKey(jobID, "peer", "2"), true,
          null);

      String[] peerChild = masterClient.getChildKeySet(
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

      Log.info("Passed the child count test");

      masterClient.addKey(masterClient.constructKey(jobID, "peer", "1"), true,
          null);
      masterClient.addKey(masterClient.constructKey(jobID, "peer", "2"), true,
          null);

      String[] peerChild = masterClient.getChildKeySet(
          masterClient.constructKey(jobID, "peer"), null);
      Log.info("Found child count = " + peerChild.length);
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

          null);
      masterClient.addKey(masterClient.constructKey(jobID, "peer", "2"), true,
          null);

      String[] peerChild = masterClient.getChildKeySet(
          masterClient.constructKey(jobID, "peer"), null);
      Log.info("Found child count = " + peerChild.length);

      assertEquals(2, peerChild.length);

      Log.info(" Peer name " + peerChild[0]);
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

      Log.info(" Peer name " + peerChild[1]);

      Log.info("Passed the child key set test");

      masterClient.deregisterJob(jobID.toString());
      Log.info(masterClient.constructKey(jobID));

      Thread.sleep(200);

      assertEquals(false, masterClient.hasKey(masterClient.constructKey(jobID)));
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

      masterClient.deregisterJob(jobID.toString());
      Log.info(masterClient.constructKey(jobID));

      Thread.sleep(200);

      assertEquals(false, masterClient.hasKey(masterClient.constructKey(jobID)));

      Log.info("Passed the key presence test");

      boolean result = masterClient
          .getInformation(masterClient.constructKey(jobID, "info", "level3"),
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

      assertEquals(false, masterClient.hasKey(masterClient.constructKey(jobID)));

      Log.info("Passed the key presence test");

      boolean result = masterClient
          .getInformation(masterClient.constructKey(jobID, "info", "level3"),
              new IntWritable());

      assertEquals(false, result);

      Writable[] writableArr = new Writable[2];
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

      writableArr[0] = new LongWritable(3L);
      writableArr[1] = new LongWritable(5L);
      ArrayWritable arrWritable = new ArrayWritable(LongWritable.class);
      arrWritable.set(writableArr);
      masterClient.storeInformation(
          masterClient.constructKey(jobID, "info", "level3"), arrWritable,
          true, null);

      ArrayWritable valueHolder = new ArrayWritable(LongWritable.class);

      boolean getResult = masterClient.getInformation(
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.constructKey()

          true, null);

      ArrayWritable valueHolder = new ArrayWritable(LongWritable.class);

      boolean getResult = masterClient.getInformation(
          masterClient.constructKey(jobID, "info", "level3"), valueHolder);

      assertTrue(getResult);

      assertEquals(arrWritable.get()[0], valueHolder.get()[0]);
      assertEquals(arrWritable.get()[1], valueHolder.get()[1]);
View Full Code Here

Examples of org.apache.hama.bsp.sync.ZooKeeperSyncClientImpl.constructKey()

      peerClient.registerTask(jobID, "hamanode1", 5000L, task1);
      peerClient.registerTask(jobID, "hamanode2", 5000L, task2);

      peerClient.storeInformation(
          peerClient.constructKey(jobID, "info", "level2"), new IntWritable(5),
          true, null);

      String[] names = peerClient.getAllPeerNames(task1);

      Log.info("Found child count = " + names.length);
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.