/** * {@inheritDoc} * * @throws InitializationException {@inheritDoc} * @throws InterruptedException {@inheritDoc} */ @Override public void init() throws InitializationException, InterruptedException { if (!initialized) { try { LOGGER.info("Initializing ControlController."); controllableObjectRegistry = new SynchronizableRegistryImpl<>(); registryFlags = JPService.getProperty(JPPscUnitFilterList.class).getValue(); LOGGER.info("Selected Control Registry flags: " + registryFlags.toString()); threshold = JPService.getProperty(JPControlThreshold.class).getValue(); LOGGER.info("Selected Control threshold: " + threshold); initializeRegistryConnection(); rsbConnection = new RSBConnection(this); rsbConnection.init(); initialized = true; } catch (JPNotAvailableException | CouldNotPerformException ex) { throw new InitializationException(ControlController.class, ex); } } }
@Override public void init() throws InitializationException, InterruptedException { if (!initialized) { try { initSelector(); registryFlags = JPService.getProperty(JPPscUnitFilterList.class).getValue(); initializeRegistryConnection(); rsbConnection = new RSBConnection(this); rsbConnection.init(); initialized = true; } catch (JPNotAvailableException | CouldNotPerformException ex) { throw new InitializationException(IdentificationController.class, ex); } } }