Examples of progress()


Examples of bear.console.ConsoleCallback.progress()

                        command.append(text);

                        if (userCallback != null) {
                            try {
                                ConsoleCallbackResult progress = userCallback.progress(console, textAdded, buffer.wholeText());
                                switch (progress.type) {
                                    case CONTINUE:
                                        break;
                                    case DONE:
                                        return progress;
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.avro.generated.IterativeReduceService.progress()

    ProgressReport progress = ProgressReport.newBuilder()
        .setWorkerId(workerOne)
        .setReport(counters)
        .build();
   
    assertEquals(true, masterPrc.progress(workerOne, progress));
    assertEquals(true, masterPrc.progress(workerTwo, progress));
   
    // Waiting without an update, should come back as 0 (or last update ID)
    assertEquals(0, masterPrc.waiting(workerOne, 0, 0));
    assertEquals(0, masterPrc.waiting(workerTwo, 0, 0));
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.avro.generated.IterativeReduceService.progress()

        .setWorkerId(workerOne)
        .setReport(counters)
        .build();
   
    assertEquals(true, masterPrc.progress(workerOne, progress));
    assertEquals(true, masterPrc.progress(workerTwo, progress));
   
    // Waiting without an update, should come back as 0 (or last update ID)
    assertEquals(0, masterPrc.waiting(workerOne, 0, 0));
    assertEquals(0, masterPrc.waiting(workerTwo, 0, 0));
   
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.avro.generated.IterativeReduceService.progress()

    // Waiting without an update, should come back as 0 (or last update ID)
    assertEquals(0, masterPrc.waiting(workerOne, 0, 0));
    assertEquals(0, masterPrc.waiting(workerTwo, 0, 0));
   
    // Put workers back in running state
    assertEquals(true, masterPrc.progress(workerOne, progress));
    assertEquals(true, masterPrc.progress(workerTwo, progress));
   
    // Update
    UpdateableInt uInt = new UpdateableInt();
    uInt.set(100);
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.avro.generated.IterativeReduceService.progress()

    assertEquals(0, masterPrc.waiting(workerOne, 0, 0));
    assertEquals(0, masterPrc.waiting(workerTwo, 0, 0));
   
    // Put workers back in running state
    assertEquals(true, masterPrc.progress(workerOne, progress));
    assertEquals(true, masterPrc.progress(workerTwo, progress));
   
    // Update
    UpdateableInt uInt = new UpdateableInt();
    uInt.set(100);
    assertEquals(true, masterPrc.update(workerOne, uInt.toBytes()));
View Full Code Here

Examples of com.cloudera.iterativereduce.yarn.avro.generated.IterativeReduceService.progress()

    // We should not be in RUNNING state on master, so we get a false
    assertEquals(false, masterPrc.update(workerOne, uInt.toBytes()));

    // Obnoxiously put ourself back into WORKING state, but master refuses our
    // update, because we already provided an update in this round
    assertEquals(true, masterPrc.progress(workerOne, progress));
    assertEquals(false, masterPrc.update(workerOne, uInt.toBytes()));

    // Waiting, we have a partial update in progress, should get back -1
    assertEquals(-1, masterPrc.waiting(workerOne, 0, 0));
   
View Full Code Here

Examples of com.google.gwt.query.client.Promise.progress()

          if (newArgs instanceof Promise) {
            // If filter function returns a promise we pipeline it.
            final Promise p = (Promise) newArgs;
            if (type == PROGRESS) {
              p.progress(new Function(){public void f() {
                settle(PROGRESS, getArguments());
              }});
            } else {
              p.always(new Function(){public void f() {
                settle((type == DONE || type == FAIL && cont) && p.isResolved() ? DONE : FAIL, getArguments());
View Full Code Here

Examples of com.google.gwt.query.client.Promise.progress()

          if (newArgs instanceof Promise) {
            // If filter function returns a promise we pipeline it.
            final Promise p = (Promise) newArgs;
            if (type == PROGRESS) {
              p.progress(new Function(){public void f() {
                settle(PROGRESS, getArguments());
              }});
            } else {
              p.always(new Function(){public void f() {
                settle((type == DONE || type == FAIL && cont) && p.isResolved() ? DONE : FAIL, getArguments());
View Full Code Here

Examples of com.google.gwt.query.client.plugins.deferred.PromiseFunction.progress()

          }
        }.scheduleRepeating(50);
      }
    };
   
    doSomething.progress(new Function() {
      public void f() {
        progress = this.<Integer>getArgument(0);
      }
    }).done(new Function() {
      public void f() {
View Full Code Here

Examples of com.leapmotion.leap.CircleGesture.progress()

        // Calculate angle swept since last frame
        double sweptAngle = 0;
        if (circle.state() != State.STATE_START) {
          CircleGesture previousUpdate =
              new CircleGesture(controller.frame(1).gesture(circle.id()));
          sweptAngle = (circle.progress() - previousUpdate.progress()) * 2 * Math.PI;
        }

        System.out.println("Circle id: " + circle.id() + ", " + circle.state() + ", progress: "
            + circle.progress() + ", radius: " + circle.radius() + ", angle: "
            + Math.toDegrees(sweptAngle) + ", " + clockwiseness);
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.