public MarketIncrementalProcessor(ChannelUMDFState state, ChannelUMDFConfig config, MonitorConfig monitorConfig) : base(config.MDIncrementalHost, config.MDIncrementalPorta, config.TemplateFile, config.ChannelID, config.LocalInterfaceAddress) { this.channelConfig = config; this.channelState = state; this.processorType = ProcessorType.MarketIncremental; this.monitorConfig = monitorConfig; ProcessamentoMensagensEnabled = false; ProcessamentoMensagensLockObject = new object(); ReplayLockObject = new object(); logger = LogManager.GetLogger("MarketIncrementalProcessor-" + config.ChannelID); MDSUtils.AddAppender("MarketIncrementalProcessor-" + config.ChannelID, logger.Logger); //if (int.Parse(channelConfig.ChannelID) <= 10) // tcpReplayBMF = TCPReplayBMF.GetInstance(this, channelConfig, config.TemplateFile, qUdpPkt, ReplayLockObject); //else // tcpReplayBovespa = new TCPReplayBovespa(this, channelConfig, config.TemplateFile, qUdpPkt, ReplayLockObject); //if (channelConfig.IsPuma) // tcpReplayBMF = TCPReplayBMF.GetInstance(this, channelConfig, config.TemplateFile, qUdpPktReplay, ReplayLockObject); //else // tcpReplayBovespa = new TCPReplayBovespa(this, channelConfig, config.TemplateFile, qUdpPktReplay, ReplayLockObject); fixInitiator = new FixInitiator(this, channelConfig, config.TemplateFile, qUdpPktReplay, ReplayLockObject); }
public MarketRecoveryProcessor(ChannelUMDFState state, ChannelUMDFConfig config, MonitorConfig monitorConfig) : base(config.MDRecoveryHost, config.MDRecoveryPorta, config.MDRecoveryHostSec, config.MDRecoveryPortaSec, config.TemplateFile, config.ChannelID, config.LocalInterfaceAddress) { this.channelConfig = config; this.channelState = state; this.processorType = ProcessorType.MarketRecovery; this.monitorConfig = monitorConfig; logger = LogManager.GetLogger("MarketRecoveryProcessor-" + config.ChannelID); MDSUtils.AddAppender("MarketRecoveryProcessor-" + config.ChannelID, logger.Logger); }
public SecurityListProcessor(ChannelUMDFState state, ChannelUMDFConfig config, MonitorConfig monitorConfig) : base(config.SecurityListHost, config.SecurityListPorta, config.SecurityListHostSec, config.SecurityListPortaSec, config.TemplateFile, config.ChannelID, config.LocalInterfaceAddress) { this.channelConfig = config; this.channelState = state; this.processorType = ProcessorType.SecurityList; this.monitorConfig = monitorConfig; logger = LogManager.GetLogger("SecurityList-" + config.ChannelID); MDSUtils.AddAppender("SecurityList-" + config.ChannelID, logger.Logger); }
public ChannelUDMF(ChannelUMDFConfig config, MonitorConfig monitorConfig) { channelState = new ChannelUMDFState(); channelConfig = config; this.monitorConfig = monitorConfig; }