@Override public void init(Scope scope) throws InitializationException, InterruptedException { try { init(ScopeTransformer.transform(scope)); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
/** * @param scope * @param participantConfig * @throws InitializationException * @throws InterruptedException */ public void init(final rsb.Scope scope, final ParticipantConfig participantConfig) throws InitializationException, InterruptedException { try { init(ScopeTransformer.transform(scope), participantConfig); } catch (CouldNotTransformException ex) { throw new InitializationException(this, ex); } }
/** * {@inheritDoc} * * @param scope * @throws org.openbase.jul.exception.InitializationException * @throws java.lang.InterruptedException */ @Override public void init(final Scope scope) throws InitializationException, InterruptedException { try { this.init(ScopeTransformer.transform(scope)); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
/** * {@inheritDoc} * * @param scope {@inheritDoc} * @param participantConfig {@inheritDoc} * @throws InitializationException {@inheritDoc} * @throws InterruptedException {@inheritDoc} */ @Override public void init(final rsb.Scope scope, final ParticipantConfig participantConfig) throws InitializationException, InterruptedException { try { init(ScopeTransformer.transform(scope), participantConfig); } catch (CouldNotTransformException ex) { throw new InitializationException(this, ex); } }
@Override public ScopeType.Scope getDefaultConfig() throws NotAvailableException { try { return ScopeTransformer.transform(JPService.getProperty(jpScopePropery).getValue()); } catch (JPNotAvailableException | CouldNotTransformException ex) { throw new NotAvailableException("DefaultConfig", ex); } }
Scope scope = ScopeTransformer.transform(new rsb.Scope(text)); Registries.getUnitRegistry().getUnitConfigByScope(scope); validScope = true;
throw new NotAvailableException("UnitScope"); return getUnitByScope(ScopeTransformer.transform(scope), waitForData); } catch (CouldNotPerformException ex) { throw new NotAvailableException("Unit[" + scope + "]", ex);
@Override public Void call() throws Exception { try { scopeTextField.setForeground(Color.BLACK); Scope scope = ScopeTransformer.transform(new rsb.Scope(scopeTextField.getText().toLowerCase())); unitConfigObservable.notifyObservers(Registries.getUnitRegistry().getUnitConfigByScope(scope)); scopeTextField.setText(ScopeGenerator.generateStringRep(unitConfigObservable.getValue().getScope())); } catch (CouldNotPerformException ex) { scopeTextField.setForeground(Color.RED); statusPanel.setError(ExceptionPrinter.printHistoryAndReturnThrowable(ex, logger)); } return null; } }));
synchronized (connectionMonitor) { if (connectionState == CONNECTED) { logger.warn("Remote connection to Controller[" + ScopeTransformer.transform(getScope()) + "] lost!");
ExceptionPrinter.printVerboseMessage("Remote connection to Controller[" + ScopeTransformer.transform(getScope()) + "] was detached because the controller shutdown was initiated.", logger); setConnectionState(CONNECTING);