private void init(Properties props) { Map<String, Exchange> map = new HashMap<String, Exchange>(); for (Object o : props.keySet()) { String key = (String) o; String marketIdentifierCode = (String) props.get(key); Exchange exch = Exchanges.getExchange(marketIdentifierCode); if (exch == null) { Messages.ERROR_EXCHANGE_DNE.error(this, marketIdentifierCode); } else { map.put(key, exch); } } init(map); }
@Override public void cancel(DataFlowID inFlowID, RequestID inRequestID) { ReportListener listener = mRequestTable.remove(inRequestID); try { getClient().removeReportListener(listener); } catch (ClientInitException e) { Messages.LOG_CLIENT_NOT_INIT_CANCEL_REQUEST.error(this, e, inRequestID.toString()); } }
} catch (InvalidMessage e) { Messages.ERROR_JMS_MESSAGE_CONVERSION.error(this, e.getMessage()); throw new MessageConversionException(Messages.ERROR_JMS_MESSAGE_CONVERSION.getText(e.getMessage()), e); Messages.ERROR_JMS_MESSAGE_CONVERSION.error(this, ex.getMessage()); throw new MessageConversionException(Messages.ERROR_JMS_MESSAGE_CONVERSION.getText(ex.getMessage()), ex);
int parseErrors = parseCommands(args[0]); if(parseErrors > 0) { Messages.LOG_COMMAND_PARSE_ERRORS.error(StrategyAgent.class, parseErrors); throw new IllegalArgumentException(Messages.LOG_COMMAND_PARSE_ERRORS.getText(parseErrors)); Messages.LOG_ERROR_CONFIGURE_AGENT.error(StrategyAgent.class, getMessage(e)); Messages.LOG_ERROR_CONFIGURE_AGENT.debug(StrategyAgent.class, init(); } catch (Exception e) { Messages.LOG_ERROR_INITIALIZING_AGENT.error(StrategyAgent.class, getMessage(e)); Messages.LOG_ERROR_INITIALIZING_AGENT.debug(StrategyAgent.class,
submitToken(token); } catch (TimeoutException e) { Messages.ERROR_TOKEN_RESUBMIT_FAILED.error(this, e, token); break; } catch (FeedException e) {
Capability requiredCapability = necessaryCapabilities.get(atom.getContent()); if(requiredCapability == null) { org.marketcetera.marketdata.core.Messages.UNKNOWN_MARKETDATA_CONTENT.error(this, atom.getContent()); throw new UnsupportedOperationException(org.marketcetera.marketdata.core.Messages.UNKNOWN_MARKETDATA_CONTENT.getText(atom.getContent()));