Examples of syncStart()


Examples of com.linkedin.helix.mock.controller.ClusterController.syncStart()

                            "MasterSlave",
                            true); // do rebalance

    ClusterController controller =
        new ClusterController(clusterName, "controller_0", ZK_ADDR);
    controller.syncStart();

    // start participants
    EnablePartitionTransition transition = new EnablePartitionTransition();
    MockParticipant[] participants = new MockParticipant[5];
    for (int i = 0; i < 5; i++)
View Full Code Here

Examples of com.linkedin.helix.mock.storage.MockParticipant.syncStart()

        new MockParticipant(participants[0].getClusterName(),
                            participants[0].getInstanceName(),
                            ZK_ADDR,
                            null);
    System.err.println("Restart " + participant.getInstanceName());
    participant.syncStart();
    result =
        ClusterStateVerifier.verifyByZkCallback(new BestPossAndExtViewZkVerifier(ZK_ADDR,
                                                                                 clusterName));
    Assert.assertTrue(result);
View Full Code Here

Examples of javax.media.Clock.syncStart()

      {
        if (renderer instanceof Clock)
        {
          final Clock rendererAsClock = (Clock) renderer;
          // TODO: what do we set the time to be?
          rendererAsClock.syncStart(new Time(rendererAsClock.getMediaNanoseconds()));
        }
        setPrefetched(true);
      }
    }
   
View Full Code Here

Examples of javax.media.Controller.syncStart()

                controller.setRate(fastForwardRate);

    // Always must start, since if controller was
                // started, it needed to be stopped to setRate.
     Time now = controller.getTimeBase().getTime();
                controller.syncStart(now);
            }

    /* Reset previous rate and restart controller.
    */
            @Override
View Full Code Here

Examples of javax.media.Controller.syncStart()

        resetControllerError();

        //  SyncStart each managed Controller
        for(int i = 0; i < controllers.size(); i++) {
            Controller c = (Controller)controllers.elementAt(i);
            c.syncStart(t);
        }
       
        //  SyncStart this Player.  If it fails, then assume a
        //  ControllerErrorEvent was posted and return false.
        if( ! doPlayerSyncStart(t) ) {
View Full Code Here

Examples of javax.media.Controller.syncStart()

      StateWaiter w = new StateWaiter(controller);
      w.blockingPrefetch();
        }

        TimeBase tb = controller.getTimeBase();
                  controller.syncStart(tb.getTime());
          }
      };
    }
}
View Full Code Here

Examples of javax.media.Controller.syncStart()

             controller.setMediaTime(new Time(mediaNanos));

    if (priorState == Controller.Started) {
        Time now = controller.getTimeBase().getTime();
        controller.syncStart(now);
    }
           }
        };
    }
View Full Code Here

Examples of javax.media.Controller.syncStart()

        if (priorState == Controller.Started) {
       controller.stop();
        }
              controller.setRate(-1.0f * saveRate);
        Time now = controller.getTimeBase().getTime();
                  controller.syncStart(now);
              }
      }
      @Override
    public void mouseReleased(MouseEvent event) {
              if (isOperational()) {
View Full Code Here

Examples of javax.media.Controller.syncStart()

        if (priorState == Controller.Started) {
       controller.stop();
        }
              controller.setRate(-1.0f * saveRate);
        Time now = controller.getTimeBase().getTime();
                  controller.syncStart(now);
              }
      }
      public void mouseReleased(MouseEvent event) {
              if (isOperational()) {
        Controller controller = getController();
View Full Code Here

Examples of javax.media.Controller.syncStart()

        resetControllerError();

        //  SyncStart each managed Controller
        for(int i = 0; i < controllers.size(); i++) {
            Controller c = (Controller)controllers.elementAt(i);
            c.syncStart(t);
        }
       
        //  SyncStart this Player.  If it fails, then assume a
        //  ControllerErrorEvent was posted and return false.
        if( ! doPlayerSyncStart(t) ) {
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.