/** * {@inheritDoc} * * @return {@inheritDoc} * @throws InitializationException {@inheritDoc} */ @Override protected RSBListener getInitializedListener() throws InitializationException { try { LOGGER.info("Initializing RSB Listener on scope: " + baseScope); if (JPService.getProperty(JPLocalInput.class).getValue()) { LOGGER.warn("RSB input set to socket and localhost."); return RSBFactoryImpl.getInstance().createSynchronizedListener(baseScope, getLocalConfig()); } else { return RSBFactoryImpl.getInstance().createSynchronizedListener(baseScope); } } 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(JPPostureScope.class).getValue()); LOGGER.info("Initializing RSB Listener on scope: " + inScope); if (JPService.getProperty(JPLocalInput.class).getValue()) { LOGGER.warn("RSB input set to socket and localhost."); return RSBFactoryImpl.getInstance().createSynchronizedListener(inScope, getLocalConfig()); } else { return RSBFactoryImpl.getInstance().createSynchronizedListener(inScope); } } catch (CouldNotPerformException | JPNotAvailableException ex) { throw new InitializationException(RSBConnection.class, ex); } }
/** * {@inheritDoc} * * @return {@inheritDoc} * @throws InitializationException {@inheritDoc} */ @Override protected RSBListener getInitializedListener() throws InitializationException { try { Scope selectedUnitScope = JPService.getProperty(JPPSCBaseScope.class).getValue().concat(JPService.getProperty(JPSelectedUnitScope.class).getValue()); LOGGER.info("Initializing RSB Selected Unit Listener on scope: " + selectedUnitScope); if (JPService.getProperty(JPLocalInput.class).getValue()) { LOGGER.warn("RSB input set to socket and localhost."); return RSBFactoryImpl.getInstance().createSynchronizedListener(selectedUnitScope, getLocalConfig()); } else { return RSBFactoryImpl.getInstance().createSynchronizedListener(selectedUnitScope); } } 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); } }