/** * {@inheritDoc} * * @return {@inheritDoc} * @throws InitializationException {@inheritDoc} */ @Override protected RSBInformer<PointingRay3DFloatDistributionCollection> getInitializedInformer() throws InitializationException { try { Scope outScope = JPService.getProperty(JPPSCBaseScope.class).getValue().concat(JPService.getProperty(JPRayScope.class).getValue()); LOGGER.info("Initializing RSB Informer on scope: " + outScope); if (JPService.getProperty(JPLocalOutput.class).getValue()) { LOGGER.warn("RSB output set to socket and localhost."); return RSBFactoryImpl.getInstance().createSynchronizedInformer(outScope, PointingRay3DFloatDistributionCollection.class, getLocalConfig()); } else { return RSBFactoryImpl.getInstance().createSynchronizedInformer(outScope, PointingRay3DFloatDistributionCollection.class); } } catch (CouldNotPerformException | JPNotAvailableException ex) { throw new InitializationException(RSBConnection.class, ex); } }
/** * {@inheritDoc} * * @return {@inheritDoc} * @throws InitializationException {@inheritDoc} */ @Override protected RSBListener getInitializedListener() throws InitializationException { try { Scope inScope = JPService.getProperty(JPPSCBaseScope.class).getValue().concat(JPService.getProperty(JPRayScope.class).getValue()); LOGGER.info("Initializing RSB Listener on scope: " + inScope); if (JPService.getProperty(JPLocalInput.class).getValue()) { return RSBFactoryImpl.getInstance().createSynchronizedListener(inScope, getLocalConfig()); } else { return RSBFactoryImpl.getInstance().createSynchronizedListener(inScope); } } catch (CouldNotPerformException | JPNotAvailableException ex) { throw new InitializationException(RSBConnection.class, ex); } }