/** * {@inheritDoc} * * @param scope {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * @param scope * @throws InitializationException * @throws InterruptedException */ public void init(final rsb.Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * {@inheritDoc} * * @param scope {@inheritDoc} * @throws org.openbase.jul.exception.InitializationException {@inheritDoc} * @throws java.lang.InterruptedException {@inheritDoc} */ @Override public void init(final rsb.Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
/** * @param scope * @throws InitializationException * @throws InterruptedException */ public void init(final Scope scope) throws InitializationException, InterruptedException { init(scope, RSBSharedConnectionConfig.getParticipantConfig()); }
internalInit(scope, RSBSharedConnectionConfig.getParticipantConfig()); } catch (final CouldNotPerformException ex) { throw new CouldNotPerformException("Could not reinit " + this + "!", ex);
@Override public void init() throws InitializationException, InterruptedException { try { remoteServer = RSBFactoryImpl.getInstance().createSynchronizedRemoteServer(JPService.getProperty(JPAuthenticationScope.class).getValue(), RSBSharedConnectionConfig.getParticipantConfig()); serverWatchDog = new WatchDog(remoteServer, "AuthenticatorWatchDog"); } catch (JPNotAvailableException | CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
public SoundScapeApp() throws CouldNotPerformException, InterruptedException { super(SoundScapeApp.class); logger.debug("Creating sound scape app with scope [" + themeScope.toString() + "]!"); this.listener = RSBFactoryImpl.getInstance().createSynchronizedListener(themeScope, RSBSharedConnectionConfig.getParticipantConfig()); this.listenerWatchDog = new WatchDog(listener, "RSBListener[" + themeScope.concat(RSBCommunicationService.SCOPE_SUFFIX_STATUS) + "]"); listener.addHandler((Event event) -> { logger.debug("Got data [" + event.getData() + "]"); if (event.getData() instanceof String) { try { controlAmbienAgents(SoundScape.valueOf(StringProcessor.transformToUpperCase((String) event.getData()))); } catch (CouldNotPerformException ex) { logger.error("Could not de/activate ambient color agents"); } catch (IllegalArgumentException ex) { logger.error("Unable to parse [" + event.getData() + "] as sound scape!"); } } }, false); }