Examples of addController()


Examples of javax.media.bean.playerbean.MediaPlayer.addController()

        assertEquals(p.getTimeBase(), null);
        assertEquals(p.getVisualComponent(), null);
        assertEquals(p.mapToTimeBase(new Time(5L)).getNanoseconds(), Long.MAX_VALUE);
        p.removeController(null);
        p.removeControllerListener(null);
        p.addController(null);
        p.addControllerListener(null);       
        assertEquals(p.getControl("abc"), null);
        assertEquals(p.getControlPanelComponent(), null);
        assertEquals(p.getControls().length, 0);
        assertEquals(p.getGainControl(), null);
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

                    .addDependency(getServiceNameBase(), ServiceBasedNamingStore.class, binderService.getNamingStoreInjector())
                    .addInjection(binderService.getManagedObjectInjector(), new ImmediateManagedReferenceFactory(object))
                    .setInitialMode(ServiceController.Mode.ACTIVE);
            final ServiceController<?> binderServiceController = builder.install();
            final StabilityMonitor monitor = new StabilityMonitor();
            monitor.addController(binderServiceController);
            try {
                monitor.awaitStability();
            } finally {
                monitor.removeController(binderServiceController);
            }
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

        if (controller == null) {
            throw NamingLogger.ROOT_LOGGER.cannotResolveService(bindName);
        }
        ((BinderService) controller.getService()).stopNow();
        final StabilityMonitor monitor = new StabilityMonitor();
        monitor.addController(controller);
        try {
            monitor.awaitStability();
        } catch (Exception e) {
            throw namingException("Failed to unbind [" + bindName + "]", e);
        } finally {
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

        } catch (ServiceNotFoundException e) {
            throw NamingLogger.ROOT_LOGGER.cannotResolveService(serviceName);
        }

        final StabilityMonitor monitor = new StabilityMonitor();
        monitor.addController(controller);
        try {
            monitor.awaitStability();
        } catch (InterruptedException e) {
            throw NamingLogger.ROOT_LOGGER.threadInterrupt(serviceName);
        } finally {
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

        } catch (ServiceNotFoundException e) {
            throw NamingLogger.ROOT_LOGGER.cannotResolveService(serviceName);
        }

        final StabilityMonitor monitor = new StabilityMonitor();
        monitor.addController(controller);
        try {
            monitor.awaitStability();
        } catch (InterruptedException e) {
            throw NamingLogger.ROOT_LOGGER.threadInterrupt(serviceName);
        } finally {
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

            return;
        }
        // remove the binding service
        bindingService.setMode(ServiceController.Mode.REMOVE);
        final StabilityMonitor monitor = new StabilityMonitor();
        monitor.addController(bindingService);
        try {
            monitor.awaitStability();
            ROOT_LOGGER.unboundJndiName(bindInfo.getAbsoluteJndiName());
        } catch (InterruptedException e) {
            ROOT_LOGGER.failedToUnbindJndiName(name, 5, SECONDS.toString().toLowerCase(Locale.US));
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

                Mode targetMode = modeToggle.get(targetState).get(targetController.getMode());
                if (targetMode != null) {
                    targetController.setMode(targetMode);
                }
            }
            monitor.addController(targetController);
            monitor.awaitStability();
            if (targetState == State.UP) {
                StartException exception = targetController.getStartException();
                if (exception != null) {
                    throw exception;
View Full Code Here

Examples of org.jboss.msc.service.StabilityMonitor.addController()

     */
    private static void waitForService(final ServiceController<?> controller) throws OperationFailedException {
        if (controller.getState() == ServiceController.State.UP) return;

        final StabilityMonitor monitor = new StabilityMonitor();
        monitor.addController(controller);
        try {
            monitor.awaitStability(100, MILLISECONDS);
        } catch (final InterruptedException e) {
            Thread.currentThread().interrupt();
            throw SecurityLogger.ROOT_LOGGER.interruptedWaitingForSecurityDomain(controller.getName().getSimpleName());
View Full Code Here

Examples of srsim.domain.Room.addController()

    room.getLocalContext().setTemperature(20.0D);
    room.getLocalContext().setPreference("targetTemperature", "21.5D");
    controller.attachSensor(sensor);
    controller.attachActuator(actuator);
    room.addActuator(actuator);
    room.addController(controller);
    room.addSensor(sensor);
    double temperature = room.getLocalContext().getTemperature();
    double previousTemperature = temperature;
    while (temperature < targetTemperature) {
      simulation.step();
View Full Code Here

Examples of srsim.domain.Room.addController()

    for (int i = 0; i < 10; i++) {
      lights[i] = new LightingActuator();
      controller.attachActuator(lights[i]);
      room.addActuator(lights[i]);
    }
    room.addController(controller);
    room.addSensor(sensor);
    double brightness = room.getLocalContext().getBrightness();
    double previousBrightness = brightness;
    while (brightness < targetBrightness) {
      simulation.step();
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.