/** * Connects the strategy to the ORS, if necessary. * * If the strategy is already connected to the ORS, this method does nothing * * @throws ModuleException if the data flow cannot be established */ private void establishORSRouting() throws ModuleException { SLF4JLoggerProxy.debug(this, "Establishing connection to ORS"); //$NON-NLS-1$ try(CloseableLock closeableLock = CloseableLock.create(dataFlowLock.writeLock())) { closeableLock.lock(); if(orsFlow == null) { // no current routing, establish one orsFlow = dataFlowSupport.createDataFlow(new DataRequest[] { new DataRequest(getURN(), OutputType.ORDERS), new DataRequest(ClientModuleFactory.INSTANCE_URN) }, false); new RequestContainer(orsFlow, counter.incrementAndGet()); } } } /**
DataRequest sourceRequest = new DataRequest(inSourceUrn, inMarketDataRequest); DataRequest targetRequest = new DataRequest(getURN()); DataFlowID dataFlowId = dataFlowSupport.createDataFlow(new DataRequest[] { sourceRequest, targetRequest }, false);
inRequest = null; return new DataRequest(urn, coupling, inRequest);
closeableLock.lock(); DataFlowID cepFlow = dataFlowSupport.createDataFlow(new DataRequest[] { new DataRequest(getURN(),new InternalRequest(inCEPModule)),new DataRequest(inCEPModule) }, false); new RequestContainer(cepFlow,
closeableLock.lock(); try { DataFlowID flowID = dataFlowSupport.createDataFlow(new DataRequest[] { new DataRequest(providerURN, determineCepStatements(inSource, inStatements)), new DataRequest(getURN()) }, false); new RequestContainer(flowID,
try(CloseableLock closeableLock = CloseableLock.create(dataFlowLock.writeLock())) { closeableLock.lock(); DataFlowID dataFlowID = dataFlowSupport.createDataFlow(new DataRequest[] { new DataRequest(marketDataURN, inRequest), new DataRequest(cepDataURN, determineCepStatements(inCEPSource, inStatements)), new DataRequest(getURN()) }, false); new RequestContainer(dataFlowID,
createDataFlow(new DataRequest[] { new DataRequest(getURN(), OutputType.ALL), new DataRequest(outputDestination) }, false); closeableLock.lock(); try { DataFlowID reportsDataFlow = dataFlowSupport.createDataFlow(new DataRequest[] { new DataRequest(ClientModuleFactory.INSTANCE_URN), new DataRequest(getURN()) }, false); new RequestContainer(reportsDataFlow,
inRequest, marketDataURN); DataFlowID dataFlowID = dataFlowSupport.createDataFlow(new DataRequest[] { new DataRequest(marketDataURN, inRequest), new DataRequest(getURN()) }, false); new RequestContainer(dataFlowID,
inRequests[inRequests.length - 1] = new DataRequest( SinkModuleFactory.INSTANCE_URN);