@Override public void init(final TriggerConfig triggerConfig) throws InitializationException, InterruptedException { try { this.triggerConfig = triggerConfig; activationObservable.notifyObservers(ActivationState.State.UNKNOWN); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
public void init() throws InitializationException, InterruptedException { try { init(DEVICE_MANAGER_ITEM_FILTER, new DeviceOpenHABRemote()); } catch (InstantiationException | JPNotAvailableException ex) { throw new InitializationException(this, ex); } }
public void init(final String label, final ScopeProvider location) throws InitializationException, InterruptedException { try { init(ScopeGenerator.generateScope(label, getClass().getSimpleName(), location.getScope())); } catch (CouldNotPerformException | NullPointerException ex) { throw new InitializationException(this, ex); } }
public void init(final String itemFilter, final OpenHABRemote openHABRemote) throws InitializationException, InterruptedException { try { this.openHABRemote = openHABRemote; this.openHABRemote.init(itemFilter); this.openHABRemote.activate(); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override protected void registerRegistryRemotes() throws InitializationException, InterruptedException { try { unitRegistry = CachedUnitRegistryRemote.getRegistry(); registerRegistryRemote(unitRegistry); } catch (NotAvailableException ex) { throw new InitializationException(this, ex); } }
@Override public void init(ProtoBufRegistry<String, UnitConfig, Builder> registry) throws InitializationException, InterruptedException { super.init(registry); try { setupRootLocationIfNeeded(); } catch (RejectedException ex) { throw new InitializationException(this, ex); } }
@Override public void init(Scope scope) throws InitializationException, InterruptedException { try { init(ScopeTransformer.transform(scope)); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(Scope scope, ParticipantConfig participantConfig) throws InitializationException, InterruptedException { super.init(scope, participantConfig); try { RPCHelper.registerInterface(AuthenticatedRequestable.class, this, server); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(Scope scope, ParticipantConfig participantConfig) throws InitializationException, InterruptedException { super.init(scope, participantConfig); try { RPCHelper.registerInterface(AuthenticatedRequestable.class, this, server); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override protected void registerRegistryRemotes() throws InitializationException, InterruptedException { try { unitRegistry = CachedUnitRegistryRemote.getRegistry(); registerRegistryRemote(unitRegistry); } catch (NotAvailableException ex) { throw new InitializationException(this, ex); } }
public void init() throws InitializationException { try { this.loadStore(); this.setStorePermissions(); } catch (CouldNotPerformException ex) { throw new InitializationException(CredentialStore.class, ex); } }
@Override protected void registerRegistryRemotes() throws InitializationException, InterruptedException { try { unitRegistry = CachedUnitRegistryRemote.getRegistry(); registerRegistryRemote(unitRegistry); } catch (NotAvailableException ex) { throw new InitializationException(this, ex); } }
@Override protected void registerRegistryRemotes() throws InitializationException, InterruptedException { try { unitRegistry = CachedUnitRegistryRemote.getRegistry(); registerRegistryRemote(unitRegistry); } catch (NotAvailableException ex) { throw new InitializationException(this, ex); } }
/** * @param scope * @throws InitializationException * @throws InterruptedException */ public void init(final String scope) throws InitializationException, InterruptedException { try { init(new rsb.Scope(scope)); } catch (CouldNotPerformException | NullPointerException ex) { throw new InitializationException(this, ex); } }
@Override protected void registerRegistryRemotes() throws InitializationException, InterruptedException { try { unitRegistry = CachedUnitRegistryRemote.getRegistry(); registerRegistryRemote(unitRegistry); } catch (NotAvailableException ex) { throw new InitializationException(this, ex); } }
public CredentialStore(final String filename) throws InitializationException { try { this.filename = filename; this.credentialFile = new File(JPService.getProperty(JPCredentialsDirectory.class).getValue(), filename); this.credentials = new HashMap<>(); this.fileProcessor = new ProtoBufFileProcessor<>(LoginCredentialsCollection.newBuilder()); this.encoder = Base64.getEncoder(); this.decoder = Base64.getDecoder(); } catch (JPNotAvailableException ex) { throw new InitializationException(this, ex); } }
@Deprecated public void init(final String label, final ScopeProvider location) throws InitializationException, InterruptedException { try { init(ScopeGenerator.generateScope(label, getDataClass().getSimpleName(), location.getScope())); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override protected void registerRegistryRemotes() throws InitializationException, InterruptedException { try { unitRegistry = CachedUnitRegistryRemote.getRegistry(); registerRegistryRemote(CachedUnitRegistryRemote.getRegistry()); } catch (NotAvailableException ex) { throw new InitializationException(this, ex); } }
@Override protected void postInit() throws InitializationException, InterruptedException { try { super.postInit(); if (!initialized) { Registries.getUnitRegistry().addDataObserver(unitRegistryObserver); initialized = true; } } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(final UnitConfig config) throws InitializationException, InterruptedException { LOGGER.debug("Init connection [" + config.getLabel() + "]"); try { Registries.getUnitRegistry().waitForData(); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } super.init(config); }